We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 359643f commit bc03751Copy full SHA for bc03751
Makefile
@@ -80,7 +80,13 @@ test-ui::
80
81
test::
82
@echo "Running testsuite"
83
- CGO_ENABLED=0 go test $(BUILD_TAGS) ./...
+ @OS=$$(go env GOOS); \
84
+ if [ "$$OS" = "linux" ] || [ "$$OS" = "darwin" ]; then \
85
+ echo "Running tests on $$OS"; \
86
+ CGO_ENABLED=1 go test -race $(BUILD_TAGS) ./...; \
87
+ else \
88
+ CGO_ENABLED=0 go test $(BUILD_TAGS) ./...; \
89
+ fi
90
91
porcelain::
92
gofmt -w -l $$(find . -name '*.go')
0 commit comments