Makefile: Add test target

This commit is contained in:
Matthew Martin 2015-09-25 21:29:51 -05:00
parent 7aeadfe01b
commit 83c3f96109

View File

@ -6,3 +6,11 @@ SHARE_DIR=$(DESTDIR)$(PREFIX)/share/$(NAME)
install:
$(INSTALL) -d $(SHARE_DIR)
cp -r zsh-syntax-highlighting.zsh highlighters $(SHARE_DIR)
test:
@for test in highlighters/*; do \
if [ -d $$test/test-data ]; then \
echo "Running test $${test##*/}"; \
zsh tests/test-highlighting.zsh "$${test##*/}"; \
fi \
done