-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: disable race detector on 32-bit
Signed-off-by: Dave Henderson <[email protected]>
- Loading branch information
1 parent
c5ddd52
commit 2ed9108
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ BROWSERTEST_VERSION = v0.7 | |
LINT_VERSION = 1.50.1 | ||
GO_BIN = $(shell printf '%s/bin' "$$(go env GOPATH)") | ||
SHELL = bash | ||
ENABLE_RACE = true | ||
|
||
.PHONY: all | ||
all: lint test | ||
|
@@ -31,14 +32,18 @@ test-deps: | |
fi | ||
@go install github.com/mattn/[email protected] | ||
|
||
ifeq ($(ENABLE_RACE),true) | ||
TEST_ARGS=-race | ||
endif | ||
|
||
.PHONY: test | ||
test: test-deps | ||
go test . # Run library-level checks first, for more helpful build tag failure messages. | ||
go test -race -coverprofile=native-cover.out ./... | ||
go test $(TEST_ARGS) -coverprofile=native-cover.out ./... | ||
if [[ "$$CI" != true || $$(uname -s) == Linux ]]; then \ | ||
set -ex; \ | ||
GOOS=js GOARCH=wasm go test -coverprofile=js-cover.out -covermode=atomic ./...; \ | ||
cd examples && go test -race ./...; \ | ||
cd examples && go test $(TEST_ARGS) ./...; \ | ||
fi | ||
{ echo 'mode: atomic'; cat *-cover.out | grep -v '^mode:'; } > cover.out && rm *-cover.out | ||
go tool cover -func cover.out | grep total: | ||
|