mirror of
https://github.com/zsh-users/zsh-syntax-highlighting
synced 2024-12-18 01:14:43 +00:00
'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
|
||||
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; \
|
||||
|
Loading…
Reference in New Issue
Block a user