diff --git a/tests/fuzz/ossfuzz.sh b/tests/fuzz/ossfuzz.sh new file mode 100755 index 0000000000..8c94f3f3f3 --- /dev/null +++ b/tests/fuzz/ossfuzz.sh @@ -0,0 +1,12 @@ +#!/bin/bash -eu + +# build project +./configure --without-subdirs --disable-shared --disable-sys-libs --disable-gui LDFLAGS="$CXXFLAGS" +make -j$(nproc) + +# build fuzzers +$CXX $CXXFLAGS -o $OUT/zip tests/fuzz/zip.cpp \ + $LIB_FUZZING_ENGINE `./wx-config --cxxflags --libs base` + +# and copy their corpora +zip -j $OUT/zip_seed_corpus.zip tests/fuzz/corpus/zip/*