[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:
A. David 2024-02-23 15:57:34 +01:00 committed by GitHub
parent ae3cf711b8
commit 283b79ff85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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