mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-09 23:27:17 +01:00
4f6ae3209b
It isn't currently included in make check, so fix it to build and do that. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
19 lines
521 B
Makefile
19 lines
521 B
Makefile
COMMON_TEST_SRC := \
|
|
common/test/test_sphinx.c
|
|
COMMON_TEST_OBJS := $(COMMON_TEST_SRC:.c=.o)
|
|
COMMON_TEST_PROGRAMS := $(COMMON_TEST_OBJS:.o=)
|
|
|
|
COMMON_TEST_COMMON_OBJS := \
|
|
common/sphinx.o \
|
|
common/utils.o
|
|
|
|
$(COMMON_TEST_PROGRAMS): $(COMMON_TEST_COMMON_OBJS) $(BITCOIN_OBJS)
|
|
$(COMMON_TEST_OBJS): $(COMMON_HEADERS) $(COMMON_SRC)
|
|
|
|
ALL_TEST_PROGRAMS += $(COMMON_TEST_PROGRAMS)
|
|
ALL_OBJS += $(COMMON_TEST_PROGRAMS:=.o)
|
|
|
|
update-mocks: $(COMMON_TEST_SRC:%=update-mocks/%)
|
|
|
|
check: $(COMMON_TEST_PROGRAMS:%=unittest/%)
|