ci(fuzz): Ensure 8GiB is available during

This commit is contained in:
Chris Hennick 2024-06-08 02:59:25 +00:00
parent 232bbc612e
commit 0d487aa43e

View file

@ -7,7 +7,8 @@ while true; do
cp -r "fuzz/corpus/fuzz_$1_iter_${i}" "fuzz/corpus/fuzz_$1_iter_${i}.bak"
mkdir "fuzz/corpus/fuzz_$1_iter_${j}"
cargo fuzz cmin --all-features "fuzz_$1" "fuzz/corpus/fuzz_$1_iter_${i}" -- \
-dict=fuzz/fuzz.dict -max_len="$2" "fuzz/corpus/fuzz_$1_iter_${j}"
-dict=fuzz/fuzz.dict -max_len="$2" "fuzz/corpus/fuzz_$1_iter_${j}" \
-rss_limit_mb=8192
if diff "fuzz/corpus/fuzz_$1_iter_${i}.bak" "fuzz/corpus/fuzz_$1_iter_${j}"; then
# Last iteration made no difference, so we're done
rm -r "fuzz/corpus/fuzz_$1"
@ -16,4 +17,4 @@ while true; do
exit 0
fi
i=$j
done
done