1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-01 06:26:17 +00:00
janet/tools/afl/aggregate_cases.sh

14 lines
250 B
Bash
Raw Normal View History

2019-11-29 03:41:27 +00:00
set -eux
n=0
for tc in $(echo ./fuzz_out/$1/*/hangs/* ./fuzz_out/$1/*/crashes/*)
do
if ! test -e $tc
then
continue
fi
mkdir -p ./fuzz_out/$1_aggregated/
cp "$tc" $(printf "./fuzz_out/$1_aggregated/$1-%04d.test" $n)
n=$((n + 1))
done