make: add nocache and verbose arguments
To make it easy to add "-test.v" and "-test.count=1" to the unit tests, we add two new make flags.
This commit is contained in:
1 file changed
+8
@@ -93,6 +93,14 @@ else
|
||||
TEST_FLAGS += -test.timeout=180m
|
||||
endif
|
||||
|
||||
ifneq ($(verbose),)
|
||||
TEST_FLAGS += -test.v
|
||||
endif
|
||||
|
||||
ifneq ($(nocache),)
|
||||
TEST_FLAGS += -test.count=1
|
||||
endif
|
||||
|
||||
GOLIST := go list -tags="$(DEV_TAGS)" -deps $(PKG)/... | grep '$(PKG)'| grep -v '/vendor/'
|
||||
GOLISTCOVER := $(shell go list -tags="$(DEV_TAGS)" -deps -f '{{.ImportPath}}' ./... | grep '$(PKG)' | sed -e 's/^$(ESCPKG)/./')
|
||||
|
||||
|
||||
Reference in new issue
Block a user