mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 01:24:42 +01:00
7ef6dd04d9
gossmap equivalent of gossipd/test/run-overlong.c. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
22 lines
728 B
Plaintext
22 lines
728 B
Plaintext
# Note that these actually #include everything they need, except ccan/ and bitcoin/.
|
|
# That allows for unit testing of statics, and special effects.
|
|
PLUGIN_TEST_SRC := $(wildcard plugins/test/run-*.c)
|
|
PLUGIN_TEST_OBJS := $(PLUGIN_TEST_SRC:.c=.o)
|
|
PLUGIN_TEST_PROGRAMS := $(PLUGIN_TEST_OBJS:.o=)
|
|
|
|
ALL_C_SOURCES += $(PLUGIN_TEST_SRC)
|
|
ALL_TEST_PROGRAMS += $(PLUGIN_TEST_PROGRAMS)
|
|
|
|
update-mocks: $(PLUGIN_TEST_SRC:%=update-mocks/%)
|
|
|
|
$(PLUGIN_TEST_PROGRAMS): $(CCAN_OBJS) $(BITCOIN_OBJS) $(WIRE_OBJS) $(PLUGIN_COMMON_OBJS)
|
|
|
|
$(PLUGIN_TEST_OBJS): $(PLUGIN_ALL_HEADERS) $(PLUGIN_ALL_SRC)
|
|
|
|
check-units: $(PLUGIN_TEST_PROGRAMS:%=unittest/%)
|
|
|
|
plugins/test/run-route-overlong: \
|
|
common/dijkstra.o \
|
|
common/gossmap.o \
|
|
common/route.o
|