add fuzzing of resolver
based on the "random test" at the end of the regular resolver tests. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
16
Makefile.am
16
Makefile.am
@@ -181,13 +181,19 @@ endif
|
||||
check_PROGRAMS = $(TESTS)
|
||||
|
||||
if FUZZ
|
||||
check_PROGRAMS += tests/test_fuzz
|
||||
check_PROGRAMS += tests/test_fuzz_parser tests/test_fuzz_resolver
|
||||
|
||||
tests_test_fuzz_SOURCES = tests/test_fuzz.c
|
||||
tests_test_fuzz_CFLAGS = -fsanitize=fuzzer,address $(PARSER_CFLAGS) $(STROPHE_FLAGS) \
|
||||
tests_test_fuzz_parser_SOURCES = tests/test_fuzz_parser.c
|
||||
tests_test_fuzz_parser_CFLAGS = -fsanitize=fuzzer,address $(PARSER_CFLAGS) $(STROPHE_FLAGS) \
|
||||
-I$(top_srcdir)/src
|
||||
tests_test_fuzz_LDADD = $(STROPHE_LIBS)
|
||||
tests_test_fuzz_LDFLAGS = -static
|
||||
tests_test_fuzz_parser_LDADD = $(STROPHE_LIBS)
|
||||
tests_test_fuzz_parser_LDFLAGS = -static
|
||||
|
||||
tests_test_fuzz_resolver_SOURCES = tests/test_fuzz_resolver.c
|
||||
tests_test_fuzz_resolver_CFLAGS = -fsanitize=fuzzer,address $(resolver_CFLAGS) $(STROPHE_FLAGS) \
|
||||
-I$(top_srcdir)/src
|
||||
tests_test_fuzz_resolver_LDADD = $(STROPHE_LIBS)
|
||||
tests_test_fuzz_resolver_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
tests_check_parser_SOURCES = tests/check_parser.c tests/test.h
|
||||
|
||||
Reference in New Issue
Block a user