fuzz: Introduce BITCOINFUZZ environment variable

The `BITCOINFUZZ` environment variable allows to override the default
path to the fuzz binary.

It complements the already existing set of variables used by tests:
 - BITCOIND
 - BITCOINCLI
 - BITCOINUTIL
 - BITCOINWALLET
This commit is contained in:
Hennadii Stepanov 2024-04-06 16:06:52 +01:00
parent 1573e9a11e
commit 47cedee776
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -104,7 +104,7 @@ def main():
logging.error("Must have fuzz executable built")
sys.exit(1)
fuzz_bin=os.path.join(config["environment"]["BUILDDIR"], 'src', 'test', 'fuzz', 'fuzz')
fuzz_bin=os.getenv("BITCOINFUZZ", default=os.path.join(config["environment"]["BUILDDIR"], 'src', 'test', 'fuzz', 'fuzz'))
# Build list of tests
test_list_all = parse_test_list(