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:
Oliver Gugger committed 2024-03-18 17:07:26 +01:00
1 parent aa811c784a
commit b1b32d9026
1 file changed
+8
+8
View File
@@ -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)/./')