mirror of https://github.com/google/oss-fuzz.git
[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:
parent
61d1b47fe1
commit
79b4afb990
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue