aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.test.include
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-08-28 13:50:41 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-08-30 22:54:42 +0200
commitdfef0df8406528915aaa718e761ce9eaab14ee37 (patch)
tree8b2553da84e990cfd03ea9abcb1756906e57c917 /src/Makefile.test.include
parent00c6306a61aafc8161155bc555cca2d0998c6a5d (diff)
downloadbitcoin-dfef0df8406528915aaa718e761ce9eaab14ee37.tar.xz
tests: Dry run bench_bitcoin (-evals=1 -scaling=0: <1 second running time) as part "make check" to allow for quick identification of assertion/sanitizer failures in benchmarking code
Diffstat (limited to 'src/Makefile.test.include')
-rw-r--r--src/Makefile.test.include15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Makefile.test.include b/src/Makefile.test.include
index abfd66efad..5da531768a 100644
--- a/src/Makefile.test.include
+++ b/src/Makefile.test.include
@@ -154,7 +154,15 @@ CLEAN_BITCOIN_TEST = test/*.gcda test/*.gcno $(GENERATED_TEST_FILES)
CLEANFILES += $(CLEAN_BITCOIN_TEST)
+if TARGET_WINDOWS
bitcoin_test: $(TEST_BINARY)
+else
+if ENABLE_BENCH
+bitcoin_test: $(TEST_BINARY) $(BENCH_BINARY)
+else
+bitcoin_test: $(TEST_BINARY)
+endif
+endif
bitcoin_test_check: $(TEST_BINARY) FORCE
$(MAKE) check-TESTS TESTS=$^
@@ -167,6 +175,13 @@ check-local: $(BITCOIN_TESTS:.cpp=.cpp.test)
$(PYTHON) $(top_builddir)/test/util/bitcoin-util-test.py
@echo "Running test/util/rpcauth-test.py..."
$(PYTHON) $(top_builddir)/test/util/rpcauth-test.py
+if TARGET_WINDOWS
+else
+if ENABLE_BENCH
+ @echo "Running bench/bench_bitcoin -evals=1 -scaling=0..."
+ $(BENCH_BINARY) -evals=1 -scaling=0 > /dev/null
+endif
+endif
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C secp256k1 check
if EMBEDDED_UNIVALUE
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C univalue check