Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
work
  • Loading branch information
kripken committed Feb 12, 2024
commit b58cbc4037d4f62ed8edacaa737e1c86457bf483
6 changes: 4 additions & 2 deletions scripts/fuzz_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,14 @@ def randomize_fuzz_settings():


def init_important_initial_contents():
FIXED_IMPORTANT_INITIAL_CONTENTS = []

# Always grab important fuzz testcases from the designated local directory
# for that, 'fuzz', if it exists. We consider them fixed content to always
# use. This is, you can easily add fuzz testcases to be handled with high
# importance by creating a directory ./fuzz (parallel to ./test etc.) and
# putting wasm files in it.
fuzz_dir = os.path.join(options.binaryen_root, 'fuzz')
fuzz_dir = os.path.join(shared.options.binaryen_root, 'fuzz')
if os.path.exists(fuzz_dir):
fuzz_cases = shared.get_tests(fuzz_dir, test_suffixes, recursive=True)
FIXED_IMPORTANT_INITIAL_CONTENTS = fuzz_cases
Expand Down Expand Up @@ -252,7 +254,7 @@ def is_git_repo():
'so not automatically selecting initial contents.')
shared.options.auto_initial_contents = False

print('- Perenially-important initial contents:')
print('- Important provided initial contents:')
for test in FIXED_IMPORTANT_INITIAL_CONTENTS:
print(' ' + test)
print()
Expand Down