Browse Source

build: add target for running tests with race detector

pull/3037/head
Frank Schroeder 8 years ago
parent
commit
53fd15070d
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
  1. 4
      GNUmakefile

4
GNUmakefile

@ -50,6 +50,10 @@ test: dev
go test -tags "$(GOTAGS)" -i -run '^$$' ./... go test -tags "$(GOTAGS)" -i -run '^$$' ./...
( set -o pipefail ; go test -tags "$(GOTAGS)" -v ./... 2>&1 | tee test.log ) ( set -o pipefail ; go test -tags "$(GOTAGS)" -v ./... 2>&1 | tee test.log )
test-race: dev
go test -tags "$(GOTAGS)" -i -run '^$$' ./...
( set -o pipefail ; go test -race -tags "$(GOTAGS)" -v ./... 2>&1 | tee test-race.log )
cover: cover:
go test $(GOFILES) --cover go test $(GOFILES) --cover

Loading…
Cancel
Save