From 74e319c3f5f504c5f1d776322591eac438b21747 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 1 Dec 2022 16:31:23 +0100 Subject: [PATCH] fuzz: Force `make check` to fail if fuzz target fails --- fuzz/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am index 55ead622e..e2254c1e8 100644 --- a/fuzz/Makefile.am +++ b/fuzz/Makefile.am @@ -53,7 +53,7 @@ libFuzzerLocal_a_LIBADD = $(top_builddir)/src/libstrongswan/libstrongswan.la check: all for f in $(FUZZ_TARGETS); do \ corpus=$${f#fuzz_}; \ - ./$$f $(FUZZING_CORPORA)/$${corpus}/*; \ + ./$$f $(FUZZING_CORPORA)/$${corpus}/* || exit 1; \ crashes=$(FUZZING_CORPORA)/$${corpus}-crash; \ - test ! -d $${crashes} || ./$$f $${crashes}/*; \ + test ! -d $${crashes} || ./$$f $${crashes}/* || exit 1; \ done