diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-10 13:20:32 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-23 11:27:42 +0000 |
commit | fd05208762c04a8a85cfe268361a09dae3783098 (patch) | |
tree | b3443c3909234967ae5f9825656f0c14ef0d7da3 /contrib/fuzz_testing/fuzz.sh | |
parent | tests: don't init stuff we don't need in fuzz tests - faster (diff) | |
download | monero-fd05208762c04a8a85cfe268361a09dae3783098.tar.xz |
fuzz_testing: allow automatically resuming an interrupted job
Diffstat (limited to '')
-rwxr-xr-x | contrib/fuzz_testing/fuzz.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/fuzz_testing/fuzz.sh b/contrib/fuzz_testing/fuzz.sh index c339ceeed..dea09e64c 100755 --- a/contrib/fuzz_testing/fuzz.sh +++ b/contrib/fuzz_testing/fuzz.sh @@ -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 @@ |