From b1b32d902697cb8bd5434afb4869f15a738e4939 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Fri, 15 Mar 2024 12:54:38 +0100 Subject: [PATCH] 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. --- make/testing_flags.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/make/testing_flags.mk b/make/testing_flags.mk index df20cdb7e..3fecb073a 100644 --- a/make/testing_flags.mk +++ b/make/testing_flags.mk @@ -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)/./')