Sitelet https://github.com/Fantom-foundation/Sonic/commit/2e00cc47d188d270bad3bdbb011b0623561fdf6b
Skip to content

Commit 2e00cc4

Browse files
committed
Makefile: add TESTCOUNT and VERBOSE environment variable
1 parent b16d847 commit 2e00cc4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export PROTOC?=protoc
88
export RM?=rm
99
export SED?=sed
1010
export SH?=sh
11+
export TESTCOUNT?=1
12+
export VERBOSE?=0
1113
export XARGS?=xargs
1214
ifeq ($(OS),Windows_NT)
1315
export BROWSER?=start
@@ -61,7 +63,7 @@ dist:
6163
@BUILD_TAGS='$(BUILD_TAGS)' $(SH) -c "'$(CURDIR)/scripts/dist.sh'"
6264

6365
test: buildtests
64-
$(GLIDE) novendor | $(GREP) -v -e "^\.$$" | CGO_ENABLED=1 $(XARGS) $(GO) test -run "Test.*" -count=1 -tags test -race -timeout 600s
66+
$(GLIDE) novendor | $(GREP) -v -e "^\.$$" | CGO_ENABLED=1 $(XARGS) $(GO) test -run "Test.*" -count=$(TESTCOUNT) -v=$(VERBOSE) -tags test -race -timeout 600s
6567

6668
cover:
6769
$(GLIDE) novendor | $(GREP) -v -e "^\.$$" | CGO_ENABLED=1 $(XARGS) $(GO) test -run "Test.*" -coverprofile=coverage.out -count=1 -tags test -race -timeout 600s || true

0 commit comments

Comments
 (0)