mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
e0e879c003
This means including <common/utils.h> where it was indirectly included. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
24 lines
806 B
Makefile
24 lines
806 B
Makefile
# Note that these actually #include everything they need, except ccan/ and bitcoin/.
|
|
# That allows for unit testing of statics, and special effects.
|
|
CONNECTD_TEST_SRC := $(wildcard connectd/test/run-*.c)
|
|
CONNECTD_TEST_OBJS := $(CONNECTD_TEST_SRC:.c=.o)
|
|
CONNECTD_TEST_PROGRAMS := $(CONNECTD_TEST_OBJS:.o=)
|
|
|
|
CONNECTD_TEST_COMMON_OBJS := \
|
|
common/autodata.o \
|
|
common/features.o \
|
|
common/pseudorand.o \
|
|
common/setup.o \
|
|
common/utils.o
|
|
|
|
ALL_C_SOURCES += $(CONNECTD_TEST_SRC)
|
|
ALL_TEST_PROGRAMS += $(CONNECTD_TEST_PROGRAMS)
|
|
|
|
$(CONNECTD_TEST_PROGRAMS): $(CONNECTD_TEST_COMMON_OBJS) $(BITCOIN_OBJS)
|
|
|
|
# Test objects depend on ../ src and headers.
|
|
$(CONNECTD_TEST_OBJS): $(CONNECTD_HEADERS) $(CONNECTD_SRC) $(WEBSOCKETD_HEADERS) $(WEBSOCKETD_SRC)
|
|
|
|
check-units: $(CONNECTD_TEST_PROGRAMS:%=unittest/%)
|
|
|