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
This commit is contained in:
parent
00c6306a61
commit
dfef0df840
1 changed files with 15 additions and 0 deletions
|
@ -154,7 +154,15 @@ CLEAN_BITCOIN_TEST = test/*.gcda test/*.gcno $(GENERATED_TEST_FILES)
|
||||||
|
|
||||||
CLEANFILES += $(CLEAN_BITCOIN_TEST)
|
CLEANFILES += $(CLEAN_BITCOIN_TEST)
|
||||||
|
|
||||||
|
if TARGET_WINDOWS
|
||||||
bitcoin_test: $(TEST_BINARY)
|
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
|
bitcoin_test_check: $(TEST_BINARY) FORCE
|
||||||
$(MAKE) check-TESTS TESTS=$^
|
$(MAKE) check-TESTS TESTS=$^
|
||||||
|
@ -167,6 +175,13 @@ check-local: $(BITCOIN_TESTS:.cpp=.cpp.test)
|
||||||
$(PYTHON) $(top_builddir)/test/util/bitcoin-util-test.py
|
$(PYTHON) $(top_builddir)/test/util/bitcoin-util-test.py
|
||||||
@echo "Running test/util/rpcauth-test.py..."
|
@echo "Running test/util/rpcauth-test.py..."
|
||||||
$(PYTHON) $(top_builddir)/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
|
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C secp256k1 check
|
||||||
if EMBEDDED_UNIVALUE
|
if EMBEDDED_UNIVALUE
|
||||||
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C univalue check
|
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C univalue check
|
||||||
|
|
Loading…
Reference in a new issue