From 9138efc2c3b94b97a3e94365960789dc4f985660 Mon Sep 17 00:00:00 2001 From: Andras Banki-Horvath Date: Mon, 22 Jun 2020 19:36:48 +0200 Subject: [PATCH] build: extend itest with etcd=1 param which will run itests on etcd --- make/testing_flags.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/make/testing_flags.mk b/make/testing_flags.mk index 33bcaa3e..a4de6e5a 100644 --- a/make/testing_flags.mk +++ b/make/testing_flags.mk @@ -2,6 +2,7 @@ DEV_TAGS = dev RPC_TAGS = autopilotrpc chainrpc invoicesrpc routerrpc signrpc verrpc walletrpc watchtowerrpc wtclientrpc LOG_TAGS = TEST_FLAGS = +ITEST_FLAGS = COVER_PKG = $$(go list -deps ./... | grep '$(PKG)' | grep -v lnrpc) NUM_ITEST_TRANCHES = 6 ITEST_PARALLELISM = $(NUM_ITEST_TRANCHES) @@ -41,6 +42,12 @@ ifneq ($(icase),) TEST_FLAGS += -test.run="TestLightningNetworkDaemon/.*-of-.*/.*/$(icase)" endif +# Run itests with etcd backend. +ifeq ($(etcd),1) +ITEST_FLAGS += -etcd +DEV_TAGS += kvdb_etcd +endif + ifneq ($(tags),) DEV_TAGS += ${tags} endif @@ -89,4 +96,4 @@ endif # Construct the integration test command with the added build flags. ITEST_TAGS := $(DEV_TAGS) $(RPC_TAGS) rpctest $(backend) -ITEST := rm lntest/itest/*.log; date; $(GOTEST) -v ./lntest/itest -tags="$(ITEST_TAGS)" $(TEST_FLAGS) -logoutput -goroutinedump +ITEST := rm -f lntest/itest/*.log; date; $(GOTEST) -v ./lntest/itest -tags="$(ITEST_TAGS)" $(TEST_FLAGS) $(ITEST_FLAGS) -logoutput -goroutinedump