Skip to content

Commit 18fea2a

Browse files
committed
Fix go test commands
1 parent 688748c commit 18fea2a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ build-go:
4848
go build ./...
4949

5050
test:
51-
RUST_BACKTRACE=1 go test -v
51+
# Use package list mode to include all subdirectores. The -count=1 turns off caching.
52+
RUST_BACKTRACE=1 go test -v -count=1 ./...
5253

5354
test-safety:
54-
GODEBUG=cgocheck=2 go test -race -v -count 1
55+
# Use package list mode to include all subdirectores. The -count=1 turns off caching.
56+
GODEBUG=cgocheck=2 go test -race -v -count=1 ./...
5557

5658
# Creates a release build in a containerized build environment of the static library for Alpine Linux (.a)
5759
release-build-alpine:
@@ -61,8 +63,9 @@ release-build-alpine:
6163
cp libwasmvm/target/release/examples/libmuslc.a api/libwasmvm_muslc.a
6264
make update-bindings
6365
# try running go tests using this lib with muslc
64-
docker run --rm -u $(USER_ID):$(USER_GROUP) -v $(shell pwd):/mnt/testrun -w /mnt/testrun $(ALPINE_TESTER) go build -tags muslc .
65-
docker run --rm -u $(USER_ID):$(USER_GROUP) -v $(shell pwd):/mnt/testrun -w /mnt/testrun $(ALPINE_TESTER) go test -tags muslc ./api ./types
66+
docker run --rm -u $(USER_ID):$(USER_GROUP) -v $(shell pwd):/mnt/testrun -w /mnt/testrun $(ALPINE_TESTER) go build -tags muslc ./...
67+
# Use package list mode to include all subdirectores. The -count=1 turns off caching.
68+
docker run --rm -u $(USER_ID):$(USER_GROUP) -v $(shell pwd):/mnt/testrun -w /mnt/testrun $(ALPINE_TESTER) go test -tags muslc -count=1 ./...
6669

6770
# Creates a release build in a containerized build environment of the shared library for glibc Linux (.so)
6871
release-build-linux:

0 commit comments

Comments
 (0)