From 53fd15070df3529f4b43d68648d2e91c0ebfa844 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Mon, 22 May 2017 21:24:38 +0200 Subject: [PATCH] build: add target for running tests with race detector --- GNUmakefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 533b89c051..41c3c7d457 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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