Makefile: Add test target
This commit is contained in:
parent
7aeadfe01b
commit
83c3f96109
8
Makefile
8
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user