mirror of https://github.com/google/oss-fuzz.git
[libyal] Added libfsntfs to libyal project configuration (#4248)
This commit is contained in:
parent
723ac5035b
commit
95d739322a
|
@ -33,6 +33,7 @@ RUN git clone --depth 1 https://github.com/libyal/libregf.git libregf
|
|||
RUN git clone --depth 1 https://github.com/libyal/libscca.git libscca
|
||||
|
||||
RUN git clone --depth 1 https://github.com/libyal/libfsapfs.git libfsapfs
|
||||
RUN git clone --depth 1 https://github.com/libyal/libfsntfs.git libfsntfs
|
||||
|
||||
RUN git clone --depth 1 https://github.com/libyal/libbde.git libbde
|
||||
|
||||
|
|
|
@ -49,11 +49,19 @@ do
|
|||
cp ossfuzz/${FUZZ_TARGET} ${OUT}/${PROJECT}_${FUZZ_TARGET}
|
||||
|
||||
# Download the test data if supported.
|
||||
if test -d tests/input/public;
|
||||
LIBYAL_TYPE_NAME=${FUZZ_TARGET/_fuzzer/};
|
||||
|
||||
if test -f tests/data/${LIBYAL_TYPE_NAME/}.1;
|
||||
then
|
||||
(cd tests/data && zip ${OUT}/${PROJECT}_${FUZZ_TARGET}_seed_corpus.zip ${LIBYAL_TYPE_NAME}.*)
|
||||
|
||||
elif test -d tests/input/public;
|
||||
then
|
||||
(cd tests/input/public && zip ${OUT}/${PROJECT}_${FUZZ_TARGET}_seed_corpus.zip *)
|
||||
|
||||
else
|
||||
(cd tests/data && zip ${OUT}/${PROJECT}_${FUZZ_TARGET}_seed_corpus.zip ${FUZZ_TARGET/_fuzzer/}.*)
|
||||
echo "Missing test data for seed corpus."
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue