# HG changeset patch # User Matt Johnston # Date 1615105833 -28800 # Node ID 42daf304461850247fd6b16cafe2572e6f3a672b # Parent ca67e4f5b35e7cb1665969fda53ff1465f345a8a fuzz: split long argument list with xargs diff -r ca67e4f5b35e -r 42daf3044618 fuzzers_test.sh --- a/fuzzers_test.sh Sat Mar 06 23:44:16 2021 +0800 +++ b/fuzzers_test.sh Sun Mar 07 16:30:33 2021 +0800 @@ -6,7 +6,8 @@ test -d fuzzcorpus && hg --repository fuzzcorpus/ pull || hg clone https://hg.ucc.asn.au/dropbear-fuzzcorpus fuzzcorpus || exit 1 for f in `make list-fuzz-targets`; do - ./$f fuzzcorpus/$f/* || result=1 + # use xargs to split the too-long argument list + echo fuzzcorpus/$f/* | xargs -n 1000 ./$f || result=1 done exit $result