diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2021-05-08 16:26:16 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2021-05-08 16:26:16 +0200 |
commit | 37eae21e132241e67d05776447d7394c153e82f0 (patch) | |
tree | daacfcd24e2bfd9360d85cf0b40cf473192bea8d | |
parent | b3b09fcd1962409c2f7867fcadd636c38579b81d (diff) | |
download | python-lxml-37eae21e132241e67d05776447d7394c153e82f0.tar.gz |
Add a "make fuzz" target to run the fuzzer test.
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |