mirror of https://github.com/google/oss-fuzz.git
[gpac] small script changes to facilitate local debug (#11633)
* use testsuite as submodule * update workdir to work with local source mounts
This commit is contained in:
parent
ae3cf711b8
commit
283b79ff85
|
@ -16,7 +16,7 @@
|
|||
|
||||
FROM gcr.io/oss-fuzz-base/base-builder
|
||||
RUN apt-get update && apt-get install -y build-essential pkg-config libz-dev
|
||||
RUN git clone https://github.com/gpac/gpac && git clone https://github.com/gpac/testsuite
|
||||
RUN git clone https://github.com/gpac/gpac && cd gpac && git submodule update --init --remote --recursive
|
||||
|
||||
WORKDIR $SRC
|
||||
COPY build.sh $SRC/
|
||||
WORKDIR $SRC/gpac
|
|
@ -15,12 +15,11 @@
|
|||
#
|
||||
################################################################################
|
||||
|
||||
cd gpac
|
||||
./configure --static-build --extra-cflags="${CFLAGS}" --extra-ldflags="${CFLAGS}"
|
||||
make
|
||||
|
||||
|
||||
fuzzers=$(find $SRC/testsuite/oss-fuzzers -name "fuzz_*.c")
|
||||
fuzzers=$(find $SRC/gpac/testsuite/oss-fuzzers -name "fuzz_*.c")
|
||||
for f in $fuzzers; do
|
||||
|
||||
fuzzerName=$(basename $f .c)
|
||||
|
@ -32,8 +31,8 @@ for f in $fuzzers; do
|
|||
-lm -lz -lpthread -lssl -lcrypto -DGPAC_HAVE_CONFIG_H
|
||||
|
||||
|
||||
if [ -d "$SRC/testsuite/oss-fuzzers/${fuzzerName}_corpus" ]; then
|
||||
zip -j $OUT/${fuzzerName}_seed_corpus.zip $SRC/testsuite/oss-fuzzers/${fuzzerName}_corpus/*
|
||||
if [ -d "$SRC/gpac/testsuite/oss-fuzzers/${fuzzerName}_corpus" ]; then
|
||||
zip -j $OUT/${fuzzerName}_seed_corpus.zip $SRC/gpac/testsuite/oss-fuzzers/${fuzzerName}_corpus/*
|
||||
fi
|
||||
|
||||
done
|
Loading…
Reference in New Issue