fuzz_testing: create out directory if needed, and fix filename passing

This commit is contained in:
moneromooo-monero 2017-12-10 11:24:26 +00:00
parent c27d909239
commit 4cd4a4313d
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -18,4 +18,5 @@ case "$type" in
*) echo "usage: $0 block|transaction|signature|cold-outputs|cold-transaction|load-from-binary|load-from-json"; exit 1 ;; *) echo "usage: $0 block|transaction|signature|cold-outputs|cold-transaction|load-from-binary|load-from-json"; exit 1 ;;
esac esac
afl-fuzz -i tests/data/fuzz/$type -m 150 -t 250 -o fuzz-out/$type build/fuzz/tests/fuzz/${type}_fuzz_tests 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 @@