It's used by common/gossip_store.c, which is used by many things other than gossipd. This file belongs in common. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
25 lines
758 B
Makefile
25 lines
758 B
Makefile
# Note that these actually #include everything they need, except ccan/, bitcoin/ and wire/
|
|
# 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)
|
|
|
|
plugins/test/run-route-overlong: \
|
|
plugins/channel_hint.o
|
|
|
|
plugins/test/run-route-calc: \
|
|
common/fp16.o \
|
|
common/gossmap.o \
|
|
common/node_id.o \
|
|
common/route.o \
|
|
plugins/channel_hint.o
|
|
|
|
$(PLUGIN_TEST_PROGRAMS): libcommon.a
|
|
|
|
$(PLUGIN_TEST_OBJS): $(PLUGIN_ALL_HEADER) $(PLUGIN_ALL_SRC) plugins/test/Makefile
|
|
|
|
check-units: $(PLUGIN_TEST_PROGRAMS:%=unittest/%)
|