Skip to content

Commit

Permalink
Fuzzer: Store persistent corpus seeded with benchmark data (#97)
Browse files Browse the repository at this point in the history
* Fuzzer: Store persistent corpus seeded with benchmark data

* Add -n to cp
  • Loading branch information
hukkin committed Jul 15, 2021
1 parent 9c2d353 commit f513029
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pyproject.toml
Expand Up @@ -125,8 +125,15 @@ commands =
description = run the fuzzer against a local Tomli version (needs "apt install clang")
deps =
-r fuzzer/requirements.txt
allowlist_externals =
mkdir
cp
commands =
python fuzzer/fuzz.py {posargs}
# Create a folder for persistent corpus and use benchmark data as initial seed
mkdir -p {toxworkdir}/fuzzer-corpus
cp -n benchmark/data.toml {toxworkdir}/fuzzer-corpus/data.toml
# Run fuzzer
python fuzzer/fuzz.py {toxworkdir}/fuzzer-corpus {posargs:-len_control=10000}
'''


Expand Down

0 comments on commit f513029

Please sign in to comment.