[zlib-ng]: generalize creation of seed corpus (#1829)

The patch avoids listing fuzzer names in order to be able to add new upstream
fuzzers without having to worry about updating the oss-fuzz build script.
This commit is contained in:
sebpop 2018-09-19 19:48:15 -05:00 committed by Max Moroz
parent f2c2325e07
commit 7dd99e90cf
1 changed files with 5 additions and 7 deletions

View File

@ -25,10 +25,8 @@ make -j$(nproc) clean
make -j$(nproc) all
make -j$(nproc) check
find . -name '*_fuzzer' -exec cp -v '{}' $OUT ';'
zip $OUT/compress_fuzzer_seed_corpus.zip *.*
cd $OUT
ln -s compress_fuzzer_seed_corpus.zip example_small_fuzzer_seed_corpus.zip
ln -s compress_fuzzer_seed_corpus.zip example_large_fuzzer_seed_corpus.zip
ln -s compress_fuzzer_seed_corpus.zip example_flush_fuzzer_seed_corpus.zip
ln -s compress_fuzzer_seed_corpus.zip example_dict_fuzzer_seed_corpus.zip
zip $OUT/seed_corpus.zip *.*
for f in $(find . -name '*_fuzzer'); do
cp -v $f $OUT
(cd $OUT; ln -s seed_corpus.zip $(basename $f)_seed_corpus.zip)
done