fuzz_testing: allow automatically resuming an interrupted job

This commit is contained in:
moneromooo-monero 2017-12-10 13:20:32 +00:00
parent c80bb0eb6f
commit fd05208762
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 8 additions and 1 deletions

View File

@ -18,5 +18,12 @@ case "$type" in
*) echo "usage: $0 block|transaction|signature|cold-outputs|cold-transaction|load-from-binary|load-from-json"; exit 1 ;;
esac
if test -d "fuzz-out/$type"
then
dir="-"
else
dir="tests/data/fuzz/$type"
fi
mkdir -p fuzz-out
afl-fuzz -i tests/data/fuzz/$type -m none -t 250 -o fuzz-out/$type build/fuzz/tests/fuzz/${type}_fuzz_tests @@
afl-fuzz -i "$dir" -m none -t 250 -o fuzz-out/$type build/fuzz/tests/fuzz/${type}_fuzz_tests @@