comparison fuzzers_test.sh @ 1808:42daf3044618

fuzz: split long argument list with xargs
author Matt Johnston <matt@ucc.asn.au>
date Sun, 07 Mar 2021 16:30:33 +0800
parents 8b27de2c92ee
children fd00aeff38fd
comparison
equal deleted inserted replaced
1807:ca67e4f5b35e 1808:42daf3044618
4 4
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 ./$f fuzzcorpus/$f/* || result=1 9 # use xargs to split the too-long argument list
10 echo fuzzcorpus/$f/* | xargs -n 1000 ./$f || result=1
10 done 11 done
11 12
12 exit $result 13 exit $result