comparison fuzzers_test.sh @ 1809:fd00aeff38fd

fuzz: add -q quiet argument for standalone fuzzers. travis has a log length limit
author Matt Johnston <matt@ucc.asn.au>
date Sun, 07 Mar 2021 21:26:34 +0800
parents 42daf3044618
children
comparison
equal deleted inserted replaced
1808:42daf3044618 1809:fd00aeff38fd
5 result=0 5 result=0
6 6
7 test -d fuzzcorpus && hg --repository fuzzcorpus/ pull || hg clone https://hg.ucc.asn.au/dropbear-fuzzcorpus fuzzcorpus || exit 1 7 test -d fuzzcorpus && hg --repository fuzzcorpus/ pull || hg clone https://hg.ucc.asn.au/dropbear-fuzzcorpus fuzzcorpus || exit 1
8 for f in `make list-fuzz-targets`; do 8 for f in `make list-fuzz-targets`; do
9 # use xargs to split the too-long argument list 9 # use xargs to split the too-long argument list
10 echo fuzzcorpus/$f/* | xargs -n 1000 ./$f || result=1 10 # -q quiet because travis has a logfile limit
11 echo fuzzcorpus/$f/* | xargs -n 1000 ./$f -q || result=1
11 done 12 done
12 13
13 exit $result 14 exit $result