mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-06 16:19:07 -04:00
tests: Add fuzz test
This commit is contained in:
parent
4e2501c7d7
commit
9144ac67f0
5 changed files with 61 additions and 1 deletions
12
tests/fuzz.sh
Executable file
12
tests/fuzz.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue