make: add backend tag for itests
Defaults to running itests with btcd.
This commit is contained in:
parent
8e8bb9ff09
commit
3df0821aa3
4
Makefile
4
Makefile
@ -115,7 +115,7 @@ scratch: build
|
|||||||
check: unit itest
|
check: unit itest
|
||||||
|
|
||||||
itest-only:
|
itest-only:
|
||||||
@$(call print, "Running integration tests.")
|
@$(call print, "Running integration tests with ${backend} backend.")
|
||||||
$(ITEST)
|
$(ITEST)
|
||||||
|
|
||||||
itest: btcd build-itest itest-only
|
itest: btcd build-itest itest-only
|
||||||
@ -148,7 +148,7 @@ travis-itest: lint itest
|
|||||||
# =============
|
# =============
|
||||||
|
|
||||||
flakehunter: build-itest
|
flakehunter: build-itest
|
||||||
@$(call print, "Flake hunting integration tests.")
|
@$(call print, "Flake hunting ${backend} integration tests.")
|
||||||
while [ $$? -eq 0 ]; do $(ITEST); done
|
while [ $$? -eq 0 ]; do $(ITEST); done
|
||||||
|
|
||||||
flake-unit:
|
flake-unit:
|
||||||
|
@ -55,4 +55,12 @@ endif
|
|||||||
|
|
||||||
# Construct the integration test command with the added build flags.
|
# Construct the integration test command with the added build flags.
|
||||||
ITEST_TAGS := $(DEV_TAGS) rpctest chainrpc walletrpc signrpc invoicesrpc autopilotrpc routerrpc
|
ITEST_TAGS := $(DEV_TAGS) rpctest chainrpc walletrpc signrpc invoicesrpc autopilotrpc routerrpc
|
||||||
|
|
||||||
|
# Default to btcd backend if not set.
|
||||||
|
ifneq ($(backend),)
|
||||||
|
ITEST_TAGS += ${backend}
|
||||||
|
else
|
||||||
|
ITEST_TAGS += btcd
|
||||||
|
endif
|
||||||
|
|
||||||
ITEST := rm output*.log; date; $(GOTEST) -tags="$(ITEST_TAGS)" $(TEST_FLAGS) -logoutput
|
ITEST := rm output*.log; date; $(GOTEST) -tags="$(ITEST_TAGS)" $(TEST_FLAGS) -logoutput
|
||||||
|
Loading…
Reference in New Issue
Block a user