mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
7ecccd50b9
* Add port parsing support to parse_wireaddr. This is in preparation for storing addresses in the peers table. This also makes parse_wireaddr a proper inverse of fmt_wireaddr. * Move parse_wireaddr to common/wireaddr.c this seems like a better place for it. I bring along parse_ip_port with it for convenience. This also fixes some issues with the upcoming ip/port parsing tests. Signed-off-by: William Casarin <jb55@jb55.com>
32 lines
911 B
Makefile
32 lines
911 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/pseudorand.o \
|
|
common/utils.o \
|
|
common/wireaddr.o \
|
|
wire/towire.o \
|
|
wire/fromwire.o \
|
|
lightningd/htlc_end.o \
|
|
lightningd/log.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/%)
|