From b17ed28deaa525219a62a632470508fe67bb9ff4 Mon Sep 17 00:00:00 2001 From: Andras Banki-Horvath Date: Tue, 16 Jun 2020 14:41:34 +0200 Subject: [PATCH] build: add all subservers to dev build --- make/testing_flags.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/make/testing_flags.mk b/make/testing_flags.mk index aab09bb5..80637a23 100644 --- a/make/testing_flags.mk +++ b/make/testing_flags.mk @@ -1,8 +1,14 @@ DEV_TAGS = dev +RPC_TAGS = autopilotrpc chainrpc invoicesrpc routerrpc signrpc verrpc walletrpc watchtowerrpc wtclientrpc LOG_TAGS = TEST_FLAGS = COVER_PKG = $$(go list -deps ./... | grep '$(PKG)' | grep -v lnrpc) +# If rpc option is set also add all extra RPC tags to DEV_TAGS +ifneq ($(with-rpc),) +DEV_TAGS += $(RPC_TAGS) +endif + # If specific package is being unit tested, construct the full name of the # subpackage. ifneq ($(pkg),) @@ -61,6 +67,6 @@ backend = btcd endif # Construct the integration test command with the added build flags. -ITEST_TAGS := $(DEV_TAGS) rpctest chainrpc walletrpc signrpc invoicesrpc autopilotrpc watchtowerrpc $(backend) +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