-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
49 lines (34 loc) · 905 Bytes
/
Copy pathjustfile
File metadata and controls
49 lines (34 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
test pkg="./...":
go test {{pkg}}
build:
go build -o erc .
install: build
mv ./erc ~/bin
run image: build
./erc run {{image}}
quick image: build
./erc run --speed 5 {{image}}
debug image: build
./erc run --debug-image {{image}}
lint:
golangci-lint run
format-list:
x=$(gofmt -l .); if [ "$x" ]; then echo "$x"; fi; test -z "$x"
gocomments -l .
bats:
bats tests/
cicd-test: lint format-list test bats
# Produce hexdumps that we can use to compute a diff of all the data that
# changed before and after some execution
hexa image:
xxd {{image}} {{image}}-a
hexb image:
xxd {{image}} {{image}}-b
hexdiff image:
diff -u {{image}}-a {{image}}-b > {{image}}.hex.diff
asma image:
cp {{image}}.asm {{image}}.asm-a
asmb image:
cp {{image}}.asm {{image}}.asm-b
asmdiff image:
diff -u {{image}}.asm-a {{image}}.asm-b > {{image}}.asm.diff