Merge pull request #5038 from cfromknecht/debug-unit
make: add unit-debug target
This commit is contained in:
commit
c9ed5927f6
5
Makefile
5
Makefile
@ -194,6 +194,10 @@ unit: btcd
|
|||||||
@$(call print, "Running unit tests.")
|
@$(call print, "Running unit tests.")
|
||||||
$(UNIT)
|
$(UNIT)
|
||||||
|
|
||||||
|
unit-debug: btcd
|
||||||
|
@$(call print, "Running debug unit tests.")
|
||||||
|
$(UNIT_DEBUG)
|
||||||
|
|
||||||
unit-cover: $(GOACC_BIN)
|
unit-cover: $(GOACC_BIN)
|
||||||
@$(call print, "Running unit coverage tests.")
|
@$(call print, "Running unit coverage tests.")
|
||||||
$(GOACC_BIN) $(COVER_PKG) -- -tags="$(DEV_TAGS) $(LOG_TAGS)"
|
$(GOACC_BIN) $(COVER_PKG) -- -tags="$(DEV_TAGS) $(LOG_TAGS)"
|
||||||
@ -318,6 +322,7 @@ clean-mobile:
|
|||||||
itest-only \
|
itest-only \
|
||||||
itest \
|
itest \
|
||||||
unit \
|
unit \
|
||||||
|
unit-debug \
|
||||||
unit-cover \
|
unit-cover \
|
||||||
unit-race \
|
unit-race \
|
||||||
goveralls \
|
goveralls \
|
||||||
|
@ -86,11 +86,13 @@ UNIT_TARGETED ?= no
|
|||||||
# targeted case. Otherwise, default to running all tests.
|
# targeted case. Otherwise, default to running all tests.
|
||||||
ifeq ($(UNIT_TARGETED), yes)
|
ifeq ($(UNIT_TARGETED), yes)
|
||||||
UNIT := $(GOTEST) -tags="$(DEV_TAGS) $(LOG_TAGS)" $(TEST_FLAGS) $(UNITPKG)
|
UNIT := $(GOTEST) -tags="$(DEV_TAGS) $(LOG_TAGS)" $(TEST_FLAGS) $(UNITPKG)
|
||||||
|
UNIT_DEBUG := $(GOTEST) -v -tags="$(DEV_TAGS) $(LOG_TAGS)" $(TEST_FLAGS) $(UNITPKG)
|
||||||
UNIT_RACE := $(GOTEST) -tags="$(DEV_TAGS) $(LOG_TAGS) lowscrypt" $(TEST_FLAGS) -race $(UNITPKG)
|
UNIT_RACE := $(GOTEST) -tags="$(DEV_TAGS) $(LOG_TAGS) lowscrypt" $(TEST_FLAGS) -race $(UNITPKG)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(UNIT_TARGETED), no)
|
ifeq ($(UNIT_TARGETED), no)
|
||||||
UNIT := $(GOLIST) | $(XARGS) env $(GOTEST) -tags="$(DEV_TAGS) $(LOG_TAGS)" $(TEST_FLAGS)
|
UNIT := $(GOLIST) | $(XARGS) env $(GOTEST) -tags="$(DEV_TAGS) $(LOG_TAGS)" $(TEST_FLAGS)
|
||||||
|
UNIT_DEBUG := $(GOLIST) | $(XARGS) env $(GOTEST) -v -tags="$(DEV_TAGS) $(LOG_TAGS)" $(TEST_FLAGS)
|
||||||
UNIT_RACE := $(UNIT) -race
|
UNIT_RACE := $(UNIT) -race
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user