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 6b5fd03Copy full SHA for 6b5fd03
Makefile
@@ -80,7 +80,14 @@ 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" ]; then \
85
+ CGO_ENABLED=1 go test -race $(BUILD_TAGS) ./...; \
86
+ elif [ "$$OS" = "darwin" ]; then \
87
+ CGO_ENABLED=0 go test -race $(BUILD_TAGS) ./...; \
88
+ else \
89
+ CGO_ENABLED=0 go test $(BUILD_TAGS) ./...; \
90
+ fi
91
92
porcelain::
93
gofmt -w -l $$(find . -name '*.go')
0 commit comments