[util-linux] run tools/oss-fuzz.sh if it exists (#4227)

to make it easier to use CIFuzz to make sure https://github.com/karelzak/util-linux/pull/1068
is more or less in good shape.
This commit is contained in:
Evgeny Vereshchagin 2020-07-30 17:54:59 +03:00 committed by GitHub
parent 61d1b47fe1
commit 79b4afb990
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 5 deletions

View File

@ -17,8 +17,12 @@
set -x
./autogen.sh
./configure --disable-all-programs --enable-libmount --enable-libblkid
make -j$(nproc) V=1 libmount.la libblkid.la
$CC $CFLAGS -Wall -Wextra -include config.h -I./include -I./libblkid/src -I./libmount/src -c $SRC/test_mount_fuzz.c -o test_mount_fuzz.o
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE test_mount_fuzz.o ./.libs/libblkid.a ./.libs/libmount.a .libs/libblkid.a -o $OUT/test_mount_fuzz
if [[ -f "tools/oss-fuzz.sh" ]]; then
./tools/oss-fuzz.sh
else
./autogen.sh
./configure --disable-all-programs --enable-libmount --enable-libblkid
make -j$(nproc) V=1 libmount.la libblkid.la
$CC $CFLAGS -Wall -Wextra -include config.h -I./include -I./libblkid/src -I./libmount/src -c $SRC/test_mount_fuzz.c -o test_mount_fuzz.o
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE test_mount_fuzz.o ./.libs/libblkid.a ./.libs/libmount.a .libs/libblkid.a -o $OUT/test_mount_fuzz
fi