Skip to content

Commit 37534fb

Browse files
MarcoFalkeMunkybooty
authored andcommitted
Merge bitcoin#14092: tests: Dry run bench_bitcoin as part "make check" to allow for quick identification of assertion/sanitizer failures in benchmarking code
dfef0df 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 (practicalswift) 00c6306 Remove RUN_BENCH logic (practicalswift) Pull request description: 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 or crashes in benchmarking code. This is already tested in Travis but it is nice to have it locally too. The cost is near zero. Tree-SHA512: 1f51b86b34bf97f75785f2694891d80f1bfb3e050211e6f6c35d8d9bc80c75bdebaa5ebfa51855ac0cf76d8773c3026bc576f60d0227afb0e646d728b83abde7
1 parent ca0acee commit 37534fb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Makefile.test.include

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,15 @@ CLEAN_BITCOIN_TEST = test/*.gcda test/*.gcno test/fuzz/*.gcda test/fuzz/*.gcno t
497497

498498
CLEANFILES += $(CLEAN_BITCOIN_TEST)
499499

500+
if TARGET_WINDOWS
500501
dash_test: $(TEST_BINARY)
502+
else
503+
if ENABLE_BENCH
504+
dash_test: $(TEST_BINARY) $(BENCH_BINARY)
505+
else
506+
dash_test: $(TEST_BINARY)
507+
endif
508+
endif
501509

502510
dash_test_check: $(TEST_BINARY) FORCE
503511
$(MAKE) check-TESTS TESTS=$^
@@ -512,6 +520,13 @@ if BUILD_BITCOIN_TX
512520
endif
513521
@echo "Running test/util/rpcauth-test.py..."
514522
$(PYTHON) $(top_builddir)/test/util/rpcauth-test.py
523+
if TARGET_WINDOWS
524+
else
525+
if ENABLE_BENCH
526+
@echo "Running bench/bench_dash"
527+
$(BENCH_BINARY)
528+
endif
529+
endif
515530
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C secp256k1 check
516531
if EMBEDDED_UNIVALUE
517532
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C univalue check

0 commit comments

Comments
 (0)