'make test': Allow specifying the zsh binary to use.

This commit is contained in:
Daniel Shahaf 2015-10-26 14:18:54 +00:00
parent 57624bb9f6
commit 557bb7e0c6

View file

@ -3,6 +3,7 @@ NAME=zsh-syntax-highlighting
INSTALL?=install -c
PREFIX?=/usr/local
SHARE_DIR=$(DESTDIR)$(PREFIX)/share/$(NAME)
ZSH?=zsh # zsh binary to run tests with
# Have the default target do nothing.
all:
@ -22,7 +23,7 @@ test:
for test in highlighters/*; do \
if [ -d $$test/test-data ]; then \
echo "Running test $${test##*/}"; \
zsh -f tests/test-highlighting.zsh "$${test##*/}"; \
$(ZSH) -f tests/test-highlighting.zsh "$${test##*/}"; \
: $$(( result |= $$? )); \
fi \
done; \