annotate fuzzers_test.sh @ 1566:3fc0e9a0978b

add fuzzers to travis
author Matt Johnston <matt@ucc.asn.au>
date Thu, 01 Mar 2018 22:54:57 +0800
parents
children f52919ffd3b1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1566
3fc0e9a0978b add fuzzers to travis
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1 #!/bin/sh
3fc0e9a0978b add fuzzers to travis
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
2
3fc0e9a0978b add fuzzers to travis
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
3 # runs fuzz corpus with standalone fuzzers
3fc0e9a0978b add fuzzers to travis
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
4
3fc0e9a0978b add fuzzers to travis
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
5 result=0
3fc0e9a0978b add fuzzers to travis
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
6
3fc0e9a0978b add fuzzers to travis
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
7 hg clone https://secure.ucc.asn.au/hg/dropbear-fuzzcorpus fuzzcorpus || exit 1
3fc0e9a0978b add fuzzers to travis
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
8 for f in `make list-fuzz-targets`; do
3fc0e9a0978b add fuzzers to travis
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
9 ./$f fuzzcorpus/$f/* || result=1
3fc0e9a0978b add fuzzers to travis
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
10 done
3fc0e9a0978b add fuzzers to travis
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
11
3fc0e9a0978b add fuzzers to travis
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
12 exit $result