aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7fbab5c..98c4805 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: build run test vet lint clean
+.PHONY: build run test test-race vet lint clean
BINARY=thoi
DATA_DIR=$(PWD)/data
@@ -12,6 +12,10 @@ run: build
test:
DATA_DIR=$(DATA_DIR) go test ./... -timeout 60s
+# Race suite: the concurrency tests are only meaningful with -race.
+test-race:
+ DATA_DIR=$(DATA_DIR) go test -race ./... -timeout 300s
+
vet:
go vet ./...