fuzzers_test.sh 415 B

1234567891011121314
  1. #!/bin/sh
  2. # runs fuzz corpus with standalone fuzzers
  3. result=0
  4. test -d fuzzcorpus && hg --repository fuzzcorpus/ pull || hg clone https://hg.ucc.asn.au/dropbear-fuzzcorpus fuzzcorpus || exit 1
  5. for f in `make list-fuzz-targets`; do
  6. # use xargs to split the too-long argument list
  7. # -q quiet because travis has a logfile limit
  8. echo fuzzcorpus/$f/* | xargs -n 1000 ./$f -q || result=1
  9. done
  10. exit $result