From: Jonathan Neuschäfer Date: Sat, 4 Jun 2016 12:13:45 +0000 (+0200) Subject: make check: Fail if the tests failed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab2858e065f9fa62eec0c2d053b98e45b41f6675;p=riscv-isa-sim.git make check: Fail if the tests failed --- 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