-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
33 lines (23 loc) · 867 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
33
certgen:
@cd v1/ao/internal/reporter && ./certgen.sh
runtest:
@cd v1 && go test -race -timeout 3m -count=1 -short ./... && echo "All tests passed."
runtestfast:
@cd v1 && go test -race -timeout 3m -short ./... && echo "All tests passed."
removecert:
@cd v1/ao/internal/reporter && rm for_test.crt for_test.key
test: certgen runtest removecert
testfast: certgen runtestfast removecert
examples:
@cd examples && go test -race -timeout 1m -short ./... && echo "All examples passed."
CONTRIB = v1/contrib
contrib: $(CONTRIB)/*
@for dir in $^ ; do \
cd $$dir && go test -race -timeout 1m -short ./... && cd ~-; \
done && echo "Contrib tests passed"
vet:
@go vet -composites=false ./... && echo "Go vet analysis passed."
clean:
@go clean -testcache ./...
sure: clean test examples contrib vet
.PHONY: certgen test removecert examples vet contrib clean