mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-26 15:44:58 +01:00
Add a test that checks `get_route` and `uncertainty_update` behaviour's handling of missing channel capacities. Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
24 lines
943 B
Makefile
24 lines
943 B
Makefile
# Note that these actually #include everything they need, except ccan/ and bitcoin/.
|
|
# That allows for unit testing of statics, and special effects.
|
|
PLUGIN_RENEPAY_TEST_SRC := $(wildcard plugins/renepay/test/run-*.c)
|
|
PLUGIN_RENEPAY_TEST_OBJS := $(PLUGIN_RENEPAY_TEST_SRC:.c=.o)
|
|
PLUGIN_RENEPAY_TEST_PROGRAMS := $(PLUGIN_RENEPAY_TEST_OBJS:.o=)
|
|
|
|
ALL_C_SOURCES += $(PLUGIN_RENEPAY_TEST_SRC)
|
|
ALL_TEST_PROGRAMS += $(PLUGIN_RENEPAY_TEST_PROGRAMS)
|
|
$(PLUGIN_RENEPAY_TEST_OBJS): $(PLUGIN_RENEPAY_SRC)
|
|
|
|
PLUGIN_RENEPAY_TEST_COMMON_OBJS := \
|
|
plugins/renepay/dijkstra.o \
|
|
plugins/renepay/chan_extra.o \
|
|
bitcoin/chainparams.o \
|
|
common/gossmap.o \
|
|
common/fp16.o \
|
|
common/dijkstra.o \
|
|
gossipd/gossip_store_wiregen.o
|
|
|
|
$(PLUGIN_RENEPAY_TEST_PROGRAMS): $(PLUGIN_RENEPAY_TEST_COMMON_OBJS) $(PLUGIN_LIB_OBJS) $(PLUGIN_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS)
|
|
|
|
check-renepay: $(PLUGIN_RENEPAY_TEST_PROGRAMS:%=unittest/%)
|
|
|
|
check-units: check-renepay
|