build tests in oss-fuzz

Signed-off-by: Adam Korczynski <adam@adalogics.com>
This commit is contained in:
Adam Korczynski 2025-07-23 12:49:49 +01:00 committed by Ivan Nardi
parent 759910ffe5
commit 04cd23074f

View file

@ -42,9 +42,9 @@ fi
# build project
cd ndpi
# Set LDFLAGS variable and `--with-only-libndpi` option as workaround for the
# "missing dependencies errors" in the introspector build. See #8939
RANLIB=llvm-ranlib LDFLAGS="-L/usr/local/lib -lpcap" ./autogen.sh --enable-fuzztargets --with-only-libndpi --enable-tls-sigs
# Set LDFLAGS variable as workaround for the "missing
# dependencies errors" in the introspector build. See #8939
RANLIB=llvm-ranlib LDFLAGS="-L/usr/local/lib -lpcap" ./autogen.sh --enable-fuzztargets --enable-tls-sigs
make -j$(nproc)
# Copy fuzzers
ls fuzz/fuzz* | grep -v "\." | while read -r i; do cp "$i" "$OUT"/; done