diff --git a/Makefile b/Makefile index 750f3bc97..69440b5dc 100644 --- a/Makefile +++ b/Makefile @@ -323,7 +323,7 @@ libwally-core/src/libwallycore.% libwally-core/src/secp256k1/libsecp256k1.%: $(L lightning.pb-c.c lightning.pb-c.h: lightning.proto @if $(CHANGED_FROM_GIT); then echo $(PROTOCC) lightning.proto --c_out=.; $(PROTOCC) lightning.proto --c_out=.; else touch $@; fi -$(TEST_PROGRAMS): % : %.o $(BITCOIN_OBJS) $(LIBBASE58_OBJS) $(WIRE_OBJS) $(CCAN_OBJS) utils.o version.o libwallycore.a libsecp256k1.a libsodium.a +$(TEST_PROGRAMS): % : %.o $(BITCOIN_OBJS) $(LIBBASE58_OBJS) $(WIRE_OBJS) $(CCAN_OBJS) lightningd/sphinx.o utils.o version.o libwallycore.a libsecp256k1.a libsodium.a ccan/config.h: ccan/tools/configurator/configurator if $< > $@.new; then mv $@.new $@; else rm $@.new; exit 1; fi @@ -393,6 +393,8 @@ update-mocks/%: % tail -n +$$END $< >> $$BASE.new; mv $$BASE.new $<; \ fi +test/test_sphinx: libsodium.a + unittest/%: % $(VALGRIND) $(VALGRIND_TEST_ARGS) $* diff --git a/test/test_sphinx.c b/test/test_sphinx.c index de3016af2..26b3f9235 100644 --- a/test/test_sphinx.c +++ b/test/test_sphinx.c @@ -9,8 +9,9 @@ #include #include -#include "daemon/sphinx.h" -#include "daemon/sphinx.c" +#include "lightningd/sphinx.h" + +secp256k1_context *secp256k1_ctx; int main(int argc, char **argv) {