mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 08:17:37 +00:00
fuzz_testing: allow automatically resuming an interrupted job
This commit is contained in:
parent
c80bb0eb6f
commit
fd05208762
1 changed files with 8 additions and 1 deletions
|
@ -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 @@
|
||||
|
|
Loading…
Reference in a new issue