hfuzz: separate _workspace and _input directories, add workspace to .gitignore

This commit is contained in:
Andrew Poelstra 2018-04-16 20:27:17 +00:00
parent 335035447d
commit c1f024779f
28 changed files with 9 additions and 1 deletions

4
.gitignore vendored
View File

@ -1,6 +1,10 @@
target
Cargo.lock
#fuzz
fuzz/hfuzz_target
fuzz/hfuzz_workspace
#IntelliJ project files
.idea
*.iml

View File

@ -4,7 +4,11 @@ cargo install --force honggfuzz
for TARGET in fuzz_targets/*; do
FILENAME=$(basename $TARGET)
FILE="${FILENAME%.*}"
HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" HFUZZ_RUN_ARGS="-N1000000 --exit_upon_crash -v" cargo hfuzz run $FILE
if [ -d hfuzz_input/$FILE ]; then
HFUZZ_INPUT_ARGS="-f hfuzz_input/$FILE/input"
fi
HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" HFUZZ_RUN_ARGS="-N1000000 --exit_upon_crash -v $HFUZZ_INPUT_ARGS" cargo hfuzz run $FILE
if [ -f hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT ]; then
cat hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT
for CASE in hfuzz_workspace/$FILE/SIG*; do