mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 13:25:43 +01:00
6c1233de44
This simplifies things, and means it's always in the database. Our previous approach to creating it on the fly had holes when it was created for onchaind, causing us to use another every time we restarted. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
33 lines
928 B
Makefile
33 lines
928 B
Makefile
WALLET_TEST_SRC := $(wildcard wallet/test/run-*.c)
|
|
WALLET_TEST_OBJS := $(WALLET_TEST_SRC:.c=.o)
|
|
WALLET_TEST_PROGRAMS := $(WALLET_TEST_OBJS:.o=)
|
|
|
|
WALLET_TEST_COMMON_OBJS := \
|
|
common/htlc_state.o \
|
|
common/type_to_string.o \
|
|
common/memleak.o \
|
|
common/key_derive.o \
|
|
common/pseudorand.o \
|
|
common/timeout.o \
|
|
common/utils.o \
|
|
common/wireaddr.o \
|
|
common/version.o \
|
|
wire/towire.o \
|
|
wire/fromwire.o
|
|
|
|
# Make sure these depend on everything.
|
|
ALL_TEST_PROGRAMS += $(WALLET_TEST_PROGRAMS)
|
|
ALL_OBJS += $(WALLET_LIB_OBJS) $(WALLET_TEST_OBJS)
|
|
|
|
$(WALLET_TEST_PROGRAMS): $(BITCOIN_OBJS) $(WALLET_TEST_COMMON_OBJS)
|
|
$(WALLET_TEST_OBJS): $(WALLET_LIB_HEADERS)
|
|
|
|
wallet/tests: $(WALLET_TEST_PROGRAMS:%=unittest/%)
|
|
|
|
$(WALLET_TEST_PROGRAMS): $(WALLET_TEST_COMMON_OBJS) $(BITCOIN_OBJS)
|
|
$(WALLET_TEST_OBJS): $(WALLET_SRC)
|
|
|
|
update-mocks: $(WALLET_TEST_SRC:%=update-mocks/%)
|
|
|
|
check: $(WALLET_TEST_PROGRAMS:%=unittest/%)
|