Commit 32df4b2a authored by Jonathan Foote's avatar Jonathan Foote Committed by Daniel Salzman

tests-fuzz: remove _libfuzzer from fuzz binaries

parent bda7cc43
......@@ -6,5 +6,5 @@
/*.trs
/*.log
/packet_libfuzzer
/zscanner_libfuzzer
/fuzz_packet
/fuzz_zscanner
......@@ -2,37 +2,37 @@ AM_CPPFLAGS = \
-include $(top_builddir)/src/config.h \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/dnssec/lib \
-DCONFIG_DIR='"${config_dir}"' \
-DSTORAGE_DIR='"${storage_dir}"' \
-DCONFIG_DIR='"${config_dir}"' \
-DSTORAGE_DIR='"${storage_dir}"' \
-DRUN_DIR='"${run_dir}"' \
-DSRCDIR=\"$(abs_srcdir)\"
FUZZERS = \
packet_libfuzzer \
zscanner_libfuzzer
fuzz_packet \
fuzz_zscanner
check_PROGRAMS = $(FUZZERS)
packet_libfuzzer_SOURCES = packet_libfuzzer.c
packet_libfuzzer_LDADD = $(top_builddir)/src/libknot.la
fuzz_packet_SOURCES = fuzz_packet.c
fuzz_packet_LDADD = $(top_builddir)/src/libknot.la
zscanner_libfuzzer_SOURCES = zscanner_libfuzzer.c
zscanner_libfuzzer_LDADD = $(top_builddir)/src/zscanner/libzscanner.la
fuzz_zscanner_SOURCES = fuzz_zscanner.c
fuzz_zscanner_LDADD = $(top_builddir)/src/zscanner/libzscanner.la
if OSS_FUZZ
# CFLAGS, LDFLAGS, etc. are defined by the oss-fuzz environment; just link
# in the fuzzing engine
packet_libfuzzer_LDADD += ${LIB_FUZZING_ENGINE} -lc++
zscanner_libfuzzer_LDADD += ${LIB_FUZZING_ENGINE} -lc++
fuzz_packet_LDADD += ${LIB_FUZZING_ENGINE} -lc++
fuzz_zscanner_LDADD += ${LIB_FUZZING_ENGINE} -lc++
else
if SANITIZE_FUZZER
packet_libfuzzer_LDFLAGS = -fsanitize=fuzzer
zscanner_libfuzzer_LDFLAGS = -fsanitize=fuzzer
fuzz_packet_LDFLAGS = -fsanitize=fuzzer
fuzz_zscanner_LDFLAGS = -fsanitize=fuzzer
# Ensure that fuzzers execute successfully with a benign input
......@@ -41,8 +41,8 @@ EXTRA_DIST = check/check_fuzzers.test
else
packet_libfuzzer_SOURCES += main.c
zscanner_libfuzzer_SOURCES += main.c
fuzz_packet_SOURCES += main.c
fuzz_zscanner_SOURCES += main.c
AM_CPPFLAGS += -DTEST_RUN
TESTS = $(FUZZERS)
......
......@@ -5,5 +5,5 @@
set -e
./packet_libfuzzer check/sample-seed.pkt
./zscanner_libfuzzer check/sample-seed.pkt
./fuzz_packet check/sample-seed.pkt
./fuzz_zscanner check/sample-seed.pkt
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment