From b91b7434f6b92ebe3a297ae4d9303cc37378396d Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Thu, 3 Dec 2020 11:30:25 +0100 Subject: [PATCH] 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. --- Makefile | 5 +++-- make/testing_flags.mk | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 22d7b9d8..79d6abdc 100644 --- a/Makefile +++ b/Makefile @@ -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.") diff --git a/make/testing_flags.mk b/make/testing_flags.mk index a4de6e5a..e5f309fe 100644 --- a/make/testing_flags.mk +++ b/make/testing_flags.mk @@ -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