test(fuzz): Bug fix: previous output won't be in pre_fresh_blood yet

This commit is contained in:
Chris Hennick 2024-06-22 17:54:18 -07:00
parent cfbcb6090c
commit b2afd7aa00
No known key found for this signature in database
GPG key ID: DA47AABA4961C509

View file

@ -1,10 +1,10 @@
#!/bin/bash
set -euxo pipefail
mkdir "fuzz/corpus/fuzz_$1_recombination_sources" || true
mv "fuzz/corpus/fuzz_$1/*" "fuzz/corpus/fuzz_$1_recombination_sources"
for size in "${@:2}"; do
mv "fuzz/corpus/fuzz_$1_pre_fresh_blood/*" "fuzz/corpus/fuzz_$1_recombination_sources" || true
rm -rf "fuzz/corpus/fuzz_$1_pre_fresh_blood" || true
mv "fuzz/corpus/fuzz_$1/*" "fuzz/corpus/fuzz_$1_recombination_sources" || true
./build-fuzz-corpus-multiple-restarts.sh "$1" "$size"
find "fuzz/corpus/fuzz_$1_pre_fresh_blood" -type -f -size "-${size}c" -exec mv '{}' "fuzz/corpus/fuzz_$1" ';'
find "fuzz/corpus/fuzz_$1_recombination_sources" -type -f -size "-${size}c" -exec mv '{}' "fuzz/corpus/fuzz_$1" ';'
./fuzz-until-converged.sh "$1" "$size"
done