From ab2858e065f9fa62eec0c2d053b98e45b41f6675 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonathan=20Neusch=C3=A4fer?= Date: Sat, 4 Jun 2016 14:13:45 +0200 Subject: [PATCH] make check: Fail if the tests failed --- Makefile.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 42baa8d..b33eff4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -339,10 +339,12 @@ junk += $(bintest_outs) ./$* < /dev/null 2>&1 | tee $@ check-cpp : $(test_outs) - echo; grep -h -e'Unit Tests' -e'FAILED' -e'Segmentation' $^ < /dev/null; echo + @echo + ! grep -h -e'Unit Tests' -e'FAILED' -e'Segmentation' $^ < /dev/null + @echo check-bin : $(bintest_outs) - tail -n 1 $^ < /dev/null + ! tail -n 1 $^ < /dev/null 2>&1 | grep FAILED check : check-cpp check-bin -- 2.30.2