aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2024-03-07 10:18:32 +0000
committerdergoegge <n.goeggi@gmail.com>2024-03-07 10:28:20 +0000
commit738a53720e7df70a23709f7a26e4467bbe36db9c (patch)
treede1654b17e361ec24a799a5c5a5ce57b3b593e62 /test
parent59567d7b9aaee46efc373ee5129cb8cfb3825eb5 (diff)
downloadbitcoin-738a53720e7df70a23709f7a26e4467bbe36db9c.tar.xz
[fuzz] Apply fuzz env (suppressions, etc.) when fetching harness list
Diffstat (limited to 'test')
-rwxr-xr-xtest/fuzz/test_runner.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/fuzz/test_runner.py b/test/fuzz/test_runner.py
index ff3b6e6b6d..b3edb0e253 100755
--- a/test/fuzz/test_runner.py
+++ b/test/fuzz/test_runner.py
@@ -105,7 +105,10 @@ def main():
sys.exit(1)
# Build list of tests
- test_list_all = parse_test_list(fuzz_bin=os.path.join(config["environment"]["BUILDDIR"], 'src', 'test', 'fuzz', 'fuzz'))
+ test_list_all = parse_test_list(
+ fuzz_bin=os.path.join(config["environment"]["BUILDDIR"], 'src', 'test', 'fuzz', 'fuzz'),
+ source_dir=config['environment']['SRCDIR'],
+ )
if not test_list_all:
logging.error("No fuzz targets found")
@@ -383,11 +386,12 @@ def run_once(*, fuzz_pool, corpus, test_list, src_dir, build_dir, using_libfuzze
print(f"{t}{s}")
-def parse_test_list(*, fuzz_bin):
+def parse_test_list(*, fuzz_bin, source_dir):
test_list_all = subprocess.run(
fuzz_bin,
env={
- 'PRINT_ALL_FUZZ_TARGETS_AND_ABORT': ''
+ 'PRINT_ALL_FUZZ_TARGETS_AND_ABORT': '',
+ **get_fuzz_env(target="", source_dir=source_dir)
},
stdout=subprocess.PIPE,
text=True,