-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
32 lines (28 loc) · 846 Bytes
/
makefile
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
all: build, test
.PHONY: build
build:
go build -o build/start ./main
# need to be serial
.PHONY: buildtest
buildtest:
go test -c -o build/config.test ./config
go test -c -o build/core.test ./core
go test -c -o build/rbc.test ./rbc
go test -c -o build/aba.test ./aba
go test -c -o build/idchannel.test ./idchannel
go test -c -o build/acs.test ./acs
go test -c -o build/crypto.test ./crypto
go test -c -o build/consensus.test ./consensus
.PHONY: runtest
runtest:
AACDEUBG=1 && cd ./build && ./config.test
AACDEUBG=1 && cd ./build && ./core.test
AACDEUBG=1 && cd ./build && ./rbc.test
AACDEUBG=1 && cd ./build && ./aba.test
AACDEUBG=1 && cd ./build && ./idchannel.test
AACDEUBG=1 && cd ./build && ./acs.test
AACDEUBG=1 && cd ./build && ./crypto.test
AACDEUBG=1 && cd ./build && ./consensus.test
.PHONY: clean
clean:
rm build/*