mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 06:52:36 +01:00
[fuzz] Apply fuzz env (suppressions, etc.) when fetching harness list
This commit is contained in:
parent
59567d7b9a
commit
738a53720e
1 changed files with 7 additions and 3 deletions
|
@ -105,7 +105,10 @@ def main():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Build list of tests
|
# 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:
|
if not test_list_all:
|
||||||
logging.error("No fuzz targets found")
|
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}")
|
print(f"{t}{s}")
|
||||||
|
|
||||||
|
|
||||||
def parse_test_list(*, fuzz_bin):
|
def parse_test_list(*, fuzz_bin, source_dir):
|
||||||
test_list_all = subprocess.run(
|
test_list_all = subprocess.run(
|
||||||
fuzz_bin,
|
fuzz_bin,
|
||||||
env={
|
env={
|
||||||
'PRINT_ALL_FUZZ_TARGETS_AND_ABORT': ''
|
'PRINT_ALL_FUZZ_TARGETS_AND_ABORT': '',
|
||||||
|
**get_fuzz_env(target="", source_dir=source_dir)
|
||||||
},
|
},
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
text=True,
|
text=True,
|
||||||
|
|
Loading…
Add table
Reference in a new issue