mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-18 08:32:17 -04:00
The fuzzing tests were temporarily disabled when the build system has been converted to automake. This commit restores the functionality to run the fuzzing tests as part of the `make check`. When the afl or libfuzzer is enabled via ./configure, it uses a custom LOG_DRIVER (fuzz/<fuzzer.sh>). Currently only libfuzzer.sh has been implemented that runs each fuzz test for 5 seconds each.
39 lines
732 B
Makefile
39 lines
732 B
Makefile
include $(top_srcdir)/Makefile.top
|
|
|
|
AM_CPPFLAGS += \
|
|
$(LIBISC_CFLAGS) \
|
|
$(LIBDNS_CFLAGS) \
|
|
-DFUZZDIR=\"$(abs_srcdir)\"
|
|
|
|
AM_LDFLAGS = \
|
|
$(FUZZ_LDFLAGS)
|
|
|
|
LDADD = \
|
|
libfuzzmain.la \
|
|
$(LIBISC_LIBS) \
|
|
$(LIBDNS_LIBS)
|
|
|
|
check_LTLIBRARIES = libfuzzmain.la
|
|
libfuzzmain_la_SOURCES = \
|
|
main.c
|
|
|
|
check_PROGRAMS = \
|
|
dns_name_fromtext_target \
|
|
dns_rdata_fromwire_text \
|
|
isc_lex_getmastertoken \
|
|
isc_lex_gettoken
|
|
|
|
EXTRA_DIST = \
|
|
dns_name_fromtext_target.in \
|
|
dns_rdata_fromwire_text.in \
|
|
isc_lex_getmastertoken.in \
|
|
isc_lex_gettoken.in
|
|
|
|
TESTS = $(check_PROGRAMS)
|
|
|
|
if HAVE_FUZZ_LOG_COMPILER
|
|
LOG_COMPILER = $(srcdir)/$(FUZZ_LOG_COMPILER)
|
|
AM_LOG_FLAGS = $(srcdir)
|
|
endif HAVE_FUZZ_LOG_COMPILER
|
|
|
|
unit-local: check
|