diff --git a/make/testing_flags.mk b/make/testing_flags.mk index 308f83f9d..1b8114f8d 100644 --- a/make/testing_flags.mk +++ b/make/testing_flags.mk @@ -1,4 +1,6 @@ -TEST_TAGS = debug +DEV_TAGS = dev +PROD_TAGS = prod +LOG_TAGS = TEST_FLAGS = # If specific package is being unit tested, construct the full name of the @@ -34,16 +36,16 @@ UNIT_TARGETED ?= no # If a specific package/test case was requested, run the unit test for the # targeted case. Otherwise, default to running all tests. ifeq ($(UNIT_TARGETED), yes) -UNIT := $(GOTEST) -tags="$(TEST_TAGS)" $(TEST_FLAGS) $(UNITPKG) -UNIT_RACE := $(GOTEST) -tags="$(TEST_TAGS)" $(TEST_FLAGS) -race $(UNITPKG) +UNIT := $(GOTEST) -tags="$(DEV_TAGS)" $(TEST_FLAGS) $(UNITPKG) +UNIT_RACE := $(GOTEST) -tags="$(DEV_TAGS)" $(TEST_FLAGS) -race $(UNITPKG) endif ifeq ($(UNIT_TARGETED), no) -UNIT := $(GOLIST) | $(XARGS) $(GOTEST) -tags="$(TEST_TAGS)" $(TEST_FLAGS) +UNIT := $(GOLIST) | $(XARGS) $(GOTEST) -tags="$(DEV_TAGS)" $(TEST_FLAGS) UNIT_RACE := $(UNIT) -race endif # Construct the integration test command with the added build flags. -ITEST_TAGS := $(TEST_TAGS) rpctest +ITEST_TAGS := $(DEV_TAGS) rpctest ITEST := rm output*.log; date; $(GOTEST) -tags="$(ITEST_TAGS)" $(TEST_FLAGS) -logoutput