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:
Oliver Gugger 2020-12-03 11:30:25 +01:00
parent 36756c012d
commit b91b7434f6
No known key found for this signature in database
GPG Key ID: 8E4256593F177720
2 changed files with 3 additions and 4 deletions

@ -170,7 +170,8 @@ check: unit itest
itest-only:
@$(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
itest: btcd build-itest itest-only
@ -226,7 +227,7 @@ travis-cover: btcd unit-cover goveralls
flakehunter: build-itest
@$(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:
@$(call print, "Flake hunting unit tests.")

@ -95,5 +95,3 @@ endif
# Construct the integration test command with the added build flags.
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