Issue 30: Add a test script to watch performance
This commit is contained in:
parent
83372a5cee
commit
9d63573e4e
1
tests/data/multiple-redirections.zsh
Normal file
1
tests/data/multiple-redirections.zsh
Normal file
@ -0,0 +1 @@
|
|||||||
|
ps aux | grep java | sort | uniq | tail | head
|
1
tests/data/nested-parentheses.zsh
Normal file
1
tests/data/nested-parentheses.zsh
Normal file
@ -0,0 +1 @@
|
|||||||
|
echo $(echo ${(z)array})
|
1
tests/data/simple-command.zsh
Normal file
1
tests/data/simple-command.zsh
Normal file
@ -0,0 +1 @@
|
|||||||
|
ls
|
1
tests/data/simple-redirection.zsh
Normal file
1
tests/data/simple-redirection.zsh
Normal file
@ -0,0 +1 @@
|
|||||||
|
ps aux | grep java
|
1
tests/data/unknown-command.zsh
Normal file
1
tests/data/unknown-command.zsh
Normal file
@ -0,0 +1 @@
|
|||||||
|
ls
|
1
tests/data/zsh-syntax-highlighting.zsh
Symbolic link
1
tests/data/zsh-syntax-highlighting.zsh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/nicoulaj/projects/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
16
tests/tests.zsh
Executable file
16
tests/tests.zsh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||||
|
# vim: ft=zsh sw=2 ts=2 et
|
||||||
|
|
||||||
|
# Copyleft 2011 zsh-syntax-highlighting contributors
|
||||||
|
# http://github.com/nicoulaj/zsh-syntax-highlighting
|
||||||
|
# All wrongs reserved.
|
||||||
|
|
||||||
|
|
||||||
|
source $(dirname $0)/../zsh-syntax-highlighting.zsh
|
||||||
|
|
||||||
|
TIMEFMT="%*Es"
|
||||||
|
for buffer in $(dirname $0)/data/*.zsh; do
|
||||||
|
echo -n "${buffer:t:r}: "
|
||||||
|
time (BUFFER="`cat $buffer`" &&_zsh_highlight-zle-buffer)
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user