From 37eae21e132241e67d05776447d7394c153e82f0 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 8 May 2021 16:26:16 +0200 Subject: Add a "make fuzz" target to run the fuzzer test. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 94426075..2b5f386d 100644 --- a/Makefile +++ b/Makefile @@ -98,6 +98,15 @@ valgrind_test_inplace: inplace valgrind --tool=memcheck --leak-check=full --num-callers=30 --suppressions=valgrind-python.supp \ $(PYTHON) test.py +fuzz: clean + $(MAKE) \ + CC="/usr/bin/clang" \ + CFLAGS="$$CFLAGS -fsanitize=fuzzer-no-link -g2" \ + CXX="/usr/bin/clang++" \ + CXXFLAGS="-fsanitize=fuzzer-no-link" \ + inplace3 + $(PYTHON3) src/lxml/tests/fuzz_xml_parse.py + gdb_test_inplace: inplace @echo "file $(PYTHON)\nrun test.py" > .gdb.command gdb -x .gdb.command -d src -d src/lxml -- cgit v1.2.1