'make test': Allow specifying the zsh binary to use.
This commit is contained in:
parent
57624bb9f6
commit
557bb7e0c6
3
Makefile
3
Makefile
@ -3,6 +3,7 @@ NAME=zsh-syntax-highlighting
|
|||||||
INSTALL?=install -c
|
INSTALL?=install -c
|
||||||
PREFIX?=/usr/local
|
PREFIX?=/usr/local
|
||||||
SHARE_DIR=$(DESTDIR)$(PREFIX)/share/$(NAME)
|
SHARE_DIR=$(DESTDIR)$(PREFIX)/share/$(NAME)
|
||||||
|
ZSH?=zsh # zsh binary to run tests with
|
||||||
|
|
||||||
# Have the default target do nothing.
|
# Have the default target do nothing.
|
||||||
all:
|
all:
|
||||||
@ -22,7 +23,7 @@ test:
|
|||||||
for test in highlighters/*; do \
|
for test in highlighters/*; do \
|
||||||
if [ -d $$test/test-data ]; then \
|
if [ -d $$test/test-data ]; then \
|
||||||
echo "Running test $${test##*/}"; \
|
echo "Running test $${test##*/}"; \
|
||||||
zsh -f tests/test-highlighting.zsh "$${test##*/}"; \
|
$(ZSH) -f tests/test-highlighting.zsh "$${test##*/}"; \
|
||||||
: $$(( result |= $$? )); \
|
: $$(( result |= $$? )); \
|
||||||
fi \
|
fi \
|
||||||
done; \
|
done; \
|
||||||
|
Loading…
Reference in New Issue
Block a user