-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (17 loc) · 826 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
autobahn-image:
@docker build . -f autobahn/Dockerfile -t wszero-autobahn --iidfile $@
.PHONY: autobahn-image
autobahn-report: autobahn-image
@mkdir -p autobahn/report && docker run --rm -it -v ./autobahn/report:/report $$(cat $<)
@dest=$$PWD/$@; cd autobahn/report && echo *case*.json | xargs -rn1 sh -c 'x=$$(jq -r .behavior <"$$1"); [ $$x = OK -o $$x = INFORMATIONAL ] || echo "$$x $$1"' sh | sort >$$dest
@cat $@
@! test -s $@
.PHONY: autobahn-report
gocovmerge:
go build -modfile tests.go.mod -o $@ go.shabbyrobe.org/gocovmerge/cmd/gocovmerge
wszero.coverage:
go test -modfile tests.go.mod -coverprofile=$@ ./.
wszero_tls.coverage:
WSZERO_TEST_TLS=1 go test -modfile tests.go.mod -coverprofile=$@ ./.
all.coverage: gocovmerge wszero.coverage wszero_tls.coverage autobahn/report/autobahn.coverage
./$^ > $@