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