diff --git a/Makefile b/Makefile index 34b3610..3677977 100644 --- a/Makefile +++ b/Makefile @@ -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