mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
tools/test/Makefile: disable unless we're in DEVELOPER mode.
Because it required update-mocks, which is a hack which relies on the format of linker errors (!) I'd prefer to make this --enable-developer only. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
c74c1e56cc
commit
278b12982d
@ -13,7 +13,12 @@ TOOL_GEN_OBJS := $(TOOL_GEN_SRC:.c=.o)
|
||||
TOOL_GEN_HEADER := tools/test/gen_test.h tools/test/gen_print.h
|
||||
TOOL_TEST_SRC := $(wildcard tools/test/run-*.c)
|
||||
TOOL_TEST_OBJS := $(TOOL_TEST_SRC:.c=.o)
|
||||
# Don't require update-mocks hack unless developer mode.
|
||||
ifeq ($(DEVELOPER),1)
|
||||
TOOL_TEST_PROGRAMS := $(TOOL_TEST_OBJS:.o=)
|
||||
else
|
||||
TOOL_TEST_PROGRAMS :=
|
||||
endif
|
||||
|
||||
TOOL_TEST_COMMON_OBJS := \
|
||||
common/utils.o
|
||||
@ -41,7 +46,6 @@ tools/test/gen_print.c: $(TOOLS_WIRE_DEPS)
|
||||
echo '#include "gen_test.h"' > $@
|
||||
$(BOLT_GEN) -P --page impl ${@:.c=.h} test_type < tools/test/test_cases >> $@
|
||||
|
||||
|
||||
ALL_TEST_PROGRAMS += $(TOOL_TEST_PROGRAMS)
|
||||
|
||||
check-tools: $(TOOL_TEST_PROGRAMS:%=unittest/%)
|
||||
|
Loading…
Reference in New Issue
Block a user