aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b35ae16..25b5b4d 100644
--- a/Makefile
+++ b/Makefile
@@ -70,10 +70,12 @@ build-awwan-test:
## time without rebuilding again.
.PHONY: test-integration
+test-integration: CGO_ENABLED=1
test-integration:
- go test -tags=integration -c .
+ go test -race -tags=integration -c .
machinectl shell awwan@awwan-test \
- /bin/sh -c "cd src; ./awwan.test"
+ /bin/sh -c "cd src; \
+ ./awwan.test -test.failfast -test.timeout=2m -test.v"
.PHONY: test-all
test-all: CGO_ENABLED=1
@@ -85,7 +87,7 @@ test-all:
go test -failfast -timeout=2m -race \
-coverprofile=$(COVER_OUT) \
-tags=integration \
- ./...
+ ./..."
go tool cover -html=$(COVER_OUT) -o $(COVER_HTML)
#}}}