From 14afa6efe7e66fcc30218ac5b01badc1f6f8bf41 Mon Sep 17 00:00:00 2001 From: Matt Morehouse Date: Fri, 17 Mar 2023 15:18:14 -0500 Subject: [PATCH] make: add check-fuzz target The target builds and runs each fuzz target on its seed corpus. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 5ce1997b6..b1814c3f7 100644 --- a/Makefile +++ b/Makefile @@ -467,6 +467,13 @@ else PYTHONPATH=$(MY_CHECK_PYTHONPATH) TEST_DEBUG=1 DEVELOPER=$(DEVELOPER) VALGRIND=$(VALGRIND) $(PYTEST) tests/ $(PYTEST_OPTS) endif +check-fuzz: $(ALL_FUZZ_TARGETS) +ifneq ($(FUZZING),0) + @tests/fuzz/check-fuzz.sh +else + @echo "fuzzing is not enabled: first run './configure --enable-fuzzing'" +endif + # Keep includes in alpha order. check-src-include-order/%: % @if [ "$$(grep '^#include' < $<)" != "$$(grep '^#include' < $< | $(SORT))" ]; then echo "$<:1: includes out of order"; grep '^#include' < $<; echo VERSUS; grep '^#include' < $< | $(SORT); exit 1; fi