ci(fuzz): Tweaks to fuzz-corpus scripts
This commit is contained in:
parent
78a38e977a
commit
b450b325c9
2 changed files with 4 additions and 3 deletions
|
@ -2,14 +2,14 @@
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
ncpus=$(nproc || getconf NPROCESSORS_ONLN)
|
ncpus=$(nproc || getconf NPROCESSORS_ONLN)
|
||||||
ncpus=$(( ncpus / ( 1 + $(cat /sys/devices/system/cpu/smt/active))))
|
ncpus=$(( ncpus / ( 1 + $(cat /sys/devices/system/cpu/smt/active))))
|
||||||
RESTARTS=25
|
RESTARTS=10
|
||||||
mv "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_pre_fresh_blood" || true
|
mv "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_pre_fresh_blood" || true
|
||||||
for i in $(seq 1 $RESTARTS); do
|
for i in $(seq 1 $RESTARTS); do
|
||||||
echo "RESTART ${i}"
|
echo "RESTART ${i}"
|
||||||
mkdir "fuzz/corpus/fuzz_$1"
|
mkdir "fuzz/corpus/fuzz_$1"
|
||||||
cargo fuzz run --all-features "fuzz_$1" "fuzz/corpus/fuzz_$1" -- \
|
cargo fuzz run --all-features "fuzz_$1" "fuzz/corpus/fuzz_$1" -- \
|
||||||
-dict=fuzz/fuzz.dict -max_len="$2" -fork="$ncpus" \
|
-dict=fuzz/fuzz.dict -max_len="$2" -fork="$ncpus" \
|
||||||
-max_total_time=2400 -runs=50000000
|
-max_total_time=5100 -runs=100000000
|
||||||
mv "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_restart_${i}"
|
mv "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_restart_${i}"
|
||||||
done
|
done
|
||||||
mkdir "fuzz/corpus/fuzz_$1"
|
mkdir "fuzz/corpus/fuzz_$1"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
rm -r "fuzz/corpus/fuzz_$1_old"
|
set -euxo pipefail
|
||||||
|
rm -r "fuzz/corpus/fuzz_$1_old" || true
|
||||||
ncpus=$(nproc || getconf NPROCESSORS_ONLN)
|
ncpus=$(nproc || getconf NPROCESSORS_ONLN)
|
||||||
ncpus=$(( ncpus / ( 1 + $(cat /sys/devices/system/cpu/smt/active))))
|
ncpus=$(( ncpus / ( 1 + $(cat /sys/devices/system/cpu/smt/active))))
|
||||||
MAX_ITERS_WITHOUT_IMPROVEMENT=3
|
MAX_ITERS_WITHOUT_IMPROVEMENT=3
|
||||||
|
|
Loading…
Add table
Reference in a new issue