Przeglądaj źródła

Makefile: exit non-zero for a failed test

pull/214/head
Matthew Martin 9 lat temu
rodzic
commit
2883c9582d
1 zmienionych plików z 3 dodań i 0 usunięć
  1. +3
    -0
      Makefile

+ 3
- 0
Makefile Wyświetl plik

@ -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

Ładowanie…
Anuluj
Zapisz