File: fuzzers_test.sh

package info (click to toggle)
dropbear 2025.88-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,572 kB
  • sloc: ansic: 108,062; sh: 4,765; perl: 774; python: 763; makefile: 715; java: 177
file content (14 lines) | stat: -rwxr-xr-x 415 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# runs fuzz corpus with standalone fuzzers

result=0

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
    # use xargs to split the too-long argument list
    # -q quiet because travis has a logfile limit
    echo fuzzcorpus/$f/* | xargs -n 1000 ./$f -q || result=1
done

exit $result