make: replace ITEST goal with script
To make the Makefile a bit easier to understand, we remove the implicit ITEST goal/command variable and switch all itest execution over to explicit goals in the main Makefile.
This commit is contained in:
parent
36756c012d
commit
b91b7434f6
5
Makefile
5
Makefile
@ -170,7 +170,8 @@ check: unit itest
|
|||||||
|
|
||||||
itest-only:
|
itest-only:
|
||||||
@$(call print, "Running integration tests with ${backend} backend.")
|
@$(call print, "Running integration tests with ${backend} backend.")
|
||||||
$(ITEST)
|
rm -rf lntest/itest/*.log lntest/itest/.logs-*; date
|
||||||
|
scripts/itest_part.sh 0 1 $(TEST_FLAGS) $(ITEST_FLAGS)
|
||||||
lntest/itest/log_check_errors.sh
|
lntest/itest/log_check_errors.sh
|
||||||
|
|
||||||
itest: btcd build-itest itest-only
|
itest: btcd build-itest itest-only
|
||||||
@ -226,7 +227,7 @@ travis-cover: btcd unit-cover goveralls
|
|||||||
|
|
||||||
flakehunter: build-itest
|
flakehunter: build-itest
|
||||||
@$(call print, "Flake hunting ${backend} integration tests.")
|
@$(call print, "Flake hunting ${backend} integration tests.")
|
||||||
while [ $$? -eq 0 ]; do $(ITEST); done
|
while [ $$? -eq 0 ]; do make itest-only icase='${icase}' backend='${backend}'; done
|
||||||
|
|
||||||
flake-unit:
|
flake-unit:
|
||||||
@$(call print, "Flake hunting unit tests.")
|
@$(call print, "Flake hunting unit tests.")
|
||||||
|
@ -95,5 +95,3 @@ 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) $(RPC_TAGS) rpctest $(backend)
|
ITEST_TAGS := $(DEV_TAGS) $(RPC_TAGS) rpctest $(backend)
|
||||||
|
|
||||||
ITEST := rm -f lntest/itest/*.log; date; $(GOTEST) -v ./lntest/itest -tags="$(ITEST_TAGS)" $(TEST_FLAGS) $(ITEST_FLAGS) -logoutput -goroutinedump
|
|
||||||
|
Loading…
Reference in New Issue
Block a user