-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
executable file
·49 lines (35 loc) · 1.17 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
export GLOG = warn
export BINLOG = warn
export HTTPLOG = warn
test: test_hw0 test_hw1 test_hw2 test_hw3
xtest: setbin test
setbin:
GOOS=darwin GOARCH=amd64 go build -o ./peer/tests/integration/node.darwin.amd64 ./gui/; \
GOOS=linux GOARCH=amd64 go build -o ./peer/tests/integration/node.linux.amd64 ./gui/;
test_hw0: test_unit_hw0 test_int_hw0
test_hw1: test_unit_hw1 test_int_hw1
test_hw2: test_unit_hw2 test_int_hw2
test_hw3: test_unit_hw3 test_int_hw3
test_unit_hw0:
go test -v -race -run Test_HW0 ./peer/tests/unit
test_unit_hw1:
go test -v -race -run Test_HW1 ./peer/tests/unit
test_unit_hw2:
go test -v -race -run Test_HW2 ./peer/tests/unit
test_unit_hw3:
go test -v -race -run Test_HW3 ./peer/tests/unit
test_int_hw0:
go test -timeout 40m -v -race -run Test_HW0 ./peer/tests/integration
test_int_hw1:
go test -timeout 40m -v -race -run Test_HW1 ./peer/tests/integration
test_int_hw2:
go test -timeout 5m -v -race -run Test_HW2 ./peer/tests/integration
test_int_hw3:
go test -timeout 5m -v -race -run Test_HW3 ./peer/tests/integration
lint:
# Coding style static check.
@go get -v honnef.co/go/tools/cmd/staticcheck
@go mod tidy
staticcheck ./...
vet:
go vet ./...