test: Pass bench exe into test framework utils

This teaches the test framework about the bench executable, which is
required for the next commit.
This commit is contained in:
MarcoFalke committed 2026-01-01 20:38:59 +01:00
1 parent 315fdb4066
commit fa9fdbce79
5 files changed
+17

No files matched your search

@@ -943,6 +943,11 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
if not self.is_bitcoin_chainstate_compiled():
raise SkipTest("bitcoin-chainstate has not been compiled")
def skip_if_no_bitcoin_bench(self):
"""Skip the running test if bench_bitcoin has not been compiled."""
if not self.is_bench_compiled():
raise SkipTest("bench_bitcoin has not been compiled")
def skip_if_no_cli(self):
"""Skip the running test if bitcoin-cli has not been compiled."""
if not self.is_cli_compiled():
@@ -976,6 +981,10 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
if self.options.valgrind:
raise SkipTest("This test is not compatible with Valgrind.")
def is_bench_compiled(self):
"""Checks whether bench_bitcoin was compiled."""
return self.config["components"].getboolean("BUILD_BENCH")
def is_cli_compiled(self):
"""Checks whether bitcoin-cli was compiled."""
return self.config["components"].getboolean("ENABLE_CLI")