From 2883c9582dc35e0f70e49b79622e09015bc972fb Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Mon, 19 Oct 2015 01:36:42 -0500 Subject: [PATCH] Makefile: exit non-zero for a failed test --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 3677977..680c116 100644 --- a/Makefile +++ b/Makefile @@ -8,9 +8,12 @@ install: cp -r zsh-syntax-highlighting.zsh highlighters $(SHARE_DIR) test: + @result=0 @for test in highlighters/*; do \ if [ -d $$test/test-data ]; then \ echo "Running test $${test##*/}"; \ zsh tests/test-highlighting.zsh "$${test##*/}"; \ + : $$(( result |= $$? )); \ fi \ done + @exit $$result