2017-12-12 04:42:37 +01:00
|
|
|
WALLET_TEST_SRC := $(wildcard wallet/test/run-*.c)
|
|
|
|
WALLET_TEST_OBJS := $(WALLET_TEST_SRC:.c=.o)
|
|
|
|
WALLET_TEST_PROGRAMS := $(WALLET_TEST_OBJS:.o=)
|
|
|
|
|
2018-02-05 05:09:27 +01:00
|
|
|
WALLET_TEST_COMMON_OBJS := \
|
2018-05-10 01:18:19 +02:00
|
|
|
common/base32.o \
|
2018-07-23 04:23:02 +02:00
|
|
|
common/derive_basepoints.o \
|
2017-12-12 04:42:37 +01:00
|
|
|
common/htlc_state.o \
|
2018-09-04 09:02:35 +02:00
|
|
|
common/htlc_wire.o \
|
2017-12-12 04:42:37 +01:00
|
|
|
common/type_to_string.o \
|
2017-12-15 14:26:06 +01:00
|
|
|
common/memleak.o \
|
2018-03-07 01:06:07 +01:00
|
|
|
common/key_derive.o \
|
2017-12-12 04:42:37 +01:00
|
|
|
common/pseudorand.o \
|
2018-01-23 02:02:10 +01:00
|
|
|
common/timeout.o \
|
2017-12-12 04:42:37 +01:00
|
|
|
common/utils.o \
|
2018-02-05 05:09:27 +01:00
|
|
|
common/wireaddr.o \
|
2018-02-17 05:41:08 +01:00
|
|
|
common/version.o \
|
2017-12-18 11:10:43 +01:00
|
|
|
wire/towire.o \
|
2018-02-05 05:09:27 +01:00
|
|
|
wire/fromwire.o
|
2017-12-12 04:42:37 +01:00
|
|
|
|
|
|
|
# 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)
|
2018-04-03 09:19:41 +02:00
|
|
|
$(WALLET_TEST_OBJS): $(WALLET_LIB_HEADERS) $(WALLET_LIB_SRC)
|
2017-12-12 04:42:37 +01:00
|
|
|
|
|
|
|
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/%)
|