[gnutls] If the upstream repo has a corpus, include it (#222)

This commit is contained in:
Alex Gaynor 2016-12-28 09:33:59 -05:00 committed by Abhishek Arya
parent 0f558ce6e4
commit 57795ec502
1 changed files with 5 additions and 0 deletions

View File

@ -31,4 +31,9 @@ for f in $fuzzers; do
if [ -f "$SRC/${fuzzer}_seed_corpus.zip" ]; then
cp "$SRC/${fuzzer}_seed_corpus.zip" "$OUT/"
fi
corpus_dir=$(basename "${fuzzer}" "_fuzzer")
if [ -d "devel/fuzz/${corpus_dir}.in/" ]; then
zip -r "$OUT/${fuzzer}_seed_corpus.zip" "devel/fuzz/${corpus_dir}.in/"
fi
done