diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-12-14 15:52:39 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-12-14 16:55:56 +0100 |
commit | fa13e1b0c52738492310b6b421d8e38cb04da5b1 (patch) | |
tree | 61d52e5545a70dd21ad1b36861a5463397d4ab1f /src/Makefile.test.include | |
parent | 44444ba759480237172d83f42374c5c29c76eda0 (diff) |
build: Add option --enable-danger-fuzz-link-all
Diffstat (limited to 'src/Makefile.test.include')
-rw-r--r-- | src/Makefile.test.include | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile.test.include b/src/Makefile.test.include index 5cb125df04..cbfe93df0a 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -10,6 +10,7 @@ endif TEST_SRCDIR = test TEST_BINARY=test/test_bitcoin$(EXEEXT) +FUZZ_BINARY=test/fuzz/fuzz$(EXEEXT) JSON_TEST_FILES = \ test/data/script_tests.json \ @@ -320,6 +321,11 @@ if EMBEDDED_UNIVALUE $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C univalue check endif +if ENABLE_FUZZ_LINK_ALL +all-local: $(FUZZ_BINARY) + bash ./test/fuzz/danger_link_all.sh +endif + %.cpp.test: %.cpp @echo Running tests: `cat $< | grep -E "(BOOST_FIXTURE_TEST_SUITE\\(|BOOST_AUTO_TEST_SUITE\\()" | cut -d '(' -f 2 | cut -d ',' -f 1 | cut -d ')' -f 1` from $< $(AM_V_at)$(TEST_BINARY) --catch_system_errors=no -l test_suite -t "`cat $< | grep -E "(BOOST_FIXTURE_TEST_SUITE\\(|BOOST_AUTO_TEST_SUITE\\()" | cut -d '(' -f 2 | cut -d ',' -f 1 | cut -d ')' -f 1`" -- DEBUG_LOG_OUT > $<.log 2>&1 || (cat $<.log && false) |