tests: Add fuzz test

This commit is contained in:
James Westman 2022-04-18 17:34:13 -05:00
parent 4e2501c7d7
commit 9144ac67f0
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
5 changed files with 61 additions and 1 deletions

12
tests/fuzz.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
if [ $# = 1 ]; then
RUNS="$1"
else
RUNS=-1
fi
mkdir -p corpus
cp tests/samples/*.blp corpus
cp tests/sample_errors/*.blp corpus
python3 tests/fuzz.py --runs $RUNS corpus