2017-02-02 04:04:08 +01:00
|
|
|
check: lightningd/tests
|
2017-01-10 06:08:33 +01:00
|
|
|
|
|
|
|
# Note that these actually #include everything they need, except ccan/ and bitcoin/.
|
|
|
|
# That allows for unit testing of statics, and special effects.
|
|
|
|
LIGHTNINGD_TEST_SRC := $(wildcard lightningd/test/run-*.c)
|
|
|
|
LIGHTNINGD_TEST_OBJS := $(LIGHTNINGD_TEST_SRC:.c=.o)
|
|
|
|
LIGHTNINGD_TEST_PROGRAMS := $(LIGHTNINGD_TEST_OBJS:.o=)
|
|
|
|
|
|
|
|
update-mocks: $(LIGHTNINGD_TEST_SRC:%=update-mocks/%)
|
|
|
|
|
2017-04-01 12:58:30 +02:00
|
|
|
$(LIGHTNINGD_TEST_PROGRAMS): $(CCAN_OBJS) $(CCAN_SHACHAIN48_OBJ) $(CORE_OBJS) $(CORE_TX_OBJS) $(BITCOIN_OBJS) $(WIRE_OBJS) $(LIBBASE58_OBJS) $(LIGHTNINGD_OLD_LIB_OBJS) utils.o libsecp256k1.a libsodium.a libwallycore.a
|
2017-01-10 06:08:33 +01:00
|
|
|
|
2017-02-21 05:45:28 +01:00
|
|
|
$(LIGHTNINGD_TEST_OBJS): $(LIGHTNINGD_HEADERS) $(LIGHTNINGD_SRC) $(LIGHTNINGD_LIB_SRC)
|
2017-01-10 06:08:33 +01:00
|
|
|
|
|
|
|
lightningd/tests: $(LIGHTNINGD_TEST_PROGRAMS:%=unittest/%)
|
|
|
|
|
2017-02-07 02:44:22 +01:00
|
|
|
check-source-bolt: $(LIGHTNINGD_TEST_SRC:%=bolt-check/%)
|
2017-02-21 05:45:28 +01:00
|
|
|
check-whitespace: $(LIGHTNINGD_TEST_SRC:%=check-whitespace/%)
|