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 2024-03-15 12:54:38 +01:00
parent aa811c784a
commit b1b32d9026
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

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)/./')