aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index dd4a857..e1fc38a 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -68,6 +68,14 @@ lint:
vet:
@go vet `go list ./... | grep -v 'vendor'`
+test-short:
+ @for pkg in `go list ./... | grep -v 'vendor'`; do \
+ if ! go test -race -short $$pkg; then \
+ echo 'Some test failed, abort'; \
+ exit 1; \
+ fi; \
+ done
+
test:
@for pkg in `go list ./... | grep -v 'vendor'`; do \
if ! go test -race $$pkg; then \