[qcms] build seed corpus automatically (#1771)

* build corpus automatically

* faster hg clone
This commit is contained in:
pdknsk 2018-08-30 15:30:18 +02:00 committed by jonathanmetzman
parent 6166c33657
commit ed900e11a7
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,6 @@
FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER pdknsk@gmail.com
RUN apt-get update && apt-get install -y mercurial
RUN hg clone https://hg.mozilla.org/mozilla-central/
ADD http://cdn.pwmon.org/oss-fuzz/qcms/fuzz_seed_corpus.zip $SRC/
RUN hg clone --uncompressed https://hg.mozilla.org/mozilla-central/
COPY build.sh $SRC/
WORKDIR mozilla-central/gfx/qcms

View File

@ -32,5 +32,6 @@ $CXX $CXXFLAGS -std=c++11 \
-lFuzzingEngine \
fuzztest/qcms_fuzzer.cpp -o $OUT/fuzz
find fuzztest -iname "*.icc" \
-type f -exec zip -qju $OUT/fuzz_seed_corpus.zip "{}" \;
cp fuzztest/qcms_fuzzer.dict $OUT/fuzz.dict
cp $SRC/fuzz_seed_corpus.zip $OUT