build: add target for running tests with race detector

This commit is contained in:
Frank Schroeder 2017-05-22 21:24:38 +02:00
parent dba20d02eb
commit 96cdf3b9ae
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
1 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,10 @@ test: dev
go test -tags "$(GOTAGS)" -i -run '^$$' ./...
( 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:
go test $(GOFILES) --cover