2018-03-01 14:54:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# runs fuzz corpus with standalone fuzzers
|
|
|
|
|
|
|
|
result=0
|
|
|
|
|
2020-07-28 10:53:48 +00:00
|
|
|
test -d fuzzcorpus && hg --repository fuzzcorpus/ pull || hg clone https://hg.ucc.asn.au/dropbear-fuzzcorpus fuzzcorpus || exit 1
|
2018-03-01 14:54:57 +00:00
|
|
|
for f in `make list-fuzz-targets`; do
|
2021-03-07 08:30:33 +00:00
|
|
|
# use xargs to split the too-long argument list
|
2021-03-07 13:26:34 +00:00
|
|
|
# -q quiet because travis has a logfile limit
|
|
|
|
echo fuzzcorpus/$f/* | xargs -n 1000 ./$f -q || result=1
|
2018-03-01 14:54:57 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
exit $result
|