Browse Source

'make perf': New target.

pull/232/head
Daniel Shahaf 9 years ago
parent
commit
4513eaea71
2 changed files with 15 additions and 0 deletions
  1. +11
    -0
      Makefile
  2. +4
    -0
      tests/README.md

+ 11
- 0
Makefile View File

@ -29,4 +29,15 @@ test:
done | $(ZSH) -f tests/tap-colorizer.zsh; \
exit $$result
perf:
@result=0; \
for test in highlighters/*; do \
if [ -d $$test/test-data ]; then \
echo "Running test $${test##*/}"; \
$(ZSH) -f tests/test-perfs.zsh "$${test##*/}"; \
: $$(( result |= $$? )); \
fi \
done; \
exit $$result
.PHONY: all install test

+ 4
- 0
tests/README.md View File

@ -32,3 +32,7 @@ performance test
[`test-perfs.zsh`](tests/test-perfs.zsh) measures the time spent doing the highlighting. Usage:
zsh test-perfs.zsh <HIGHLIGHTER NAME>
All tests may be run with
make perf

Loading…
Cancel
Save