mirror of https://github.com/google/oss-fuzz.git
[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:
parent
f2c2325e07
commit
7dd99e90cf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue