Makefile: add testing_flags to coverage test

This commit is contained in:
yyforyongyu 2023-03-09 02:40:15 +08:00
parent 098bb36114
commit 941a33af31
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868
2 changed files with 4 additions and 1 deletions

View File

@ -190,7 +190,7 @@ unit-debug: $(BTCD_BIN)
unit-cover: $(GOACC_BIN)
@$(call print, "Running unit coverage tests.")
$(GOACC_BIN) $(COVER_PKG) -- -tags="$(DEV_TAGS) $(LOG_TAGS)"
$(GOACC)
unit-race:
@$(call print, "Running unit race tests.")

View File

@ -116,3 +116,6 @@ endif
# Construct the integration test command with the added build flags.
ITEST_TAGS := $(DEV_TAGS) $(RPC_TAGS) integration $(backend)
# Construct the coverage test command with the added build flags.
GOACC := $(GOACC_BIN) $(COVER_PKG) -- -tags="$(DEV_TAGS) $(LOG_TAGS)" $(TEST_FLAGS)