lndk/Makefile
Orbital 8b00be5dd4
itests: add walletrpc subserver to lnd Makefile/README
For the integration tests to work we need to add the walletrpc subservice to
the lnd make process so we can use the DeriveKey RPC call.
2024-03-06 15:20:56 -06:00

18 lines
545 B
Makefile

# This Makefile is used to compile an LND binary for the integration tests.
GO_BUILD := go build
CARGO_TEST := cargo test
LND_PKG := github.com/lightningnetwork/lnd
TMP_DIR := "/tmp"
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
TMP_DIR=${TMPDIR}
endif
itest:
@$(call print, "Building lnd for itests.")
git submodule update --init --recursive
cd lnd/cmd/lnd; $(GO_BUILD) -tags="peersrpc signrpc walletrpc dev" -o $(TMP_DIR)/lndk-tests/bin/lnd-itest$(EXEC_SUFFIX)
$(CARGO_TEST) -- -- test '*' --test-threads=1 --nocapture