mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
make: add check-fuzz target
The target builds and runs each fuzz target on its seed corpus.
This commit is contained in:
parent
fa988d2942
commit
14afa6efe7
7
Makefile
7
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
|
||||
|
Loading…
Reference in New Issue
Block a user