This website works better with JavaScript.
Home
Explore
Help
Sign In
isprogram
/
zsh-syntax-highlighting
mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
17
Wiki
Activity
Browse Source
tests: Add skips for tests that require sudo
pull/381/merge
Matthew Martin
6 years ago
parent
26a82113b0
commit
d04c62a224
6 changed files
with
12 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
highlighters/main/test-data/prefix-redirection.zsh
+2
-0
highlighters/main/test-data/sudo-command.zsh
+2
-0
highlighters/main/test-data/sudo-comment.zsh
+2
-0
highlighters/main/test-data/sudo-redirection.zsh
+2
-0
highlighters/main/test-data/sudo-redirection2.zsh
+2
-0
highlighters/main/test-data/sudo-redirection3.zsh
+ 2
- 0
highlighters/main/test-data/prefix-redirection.zsh
View File
@ -27,6 +27,8 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
type
sudo >/dev/null
||
skip_test
=
'sudo must be present'
BUFFER
=
'>/tmp >/tmp sudo echo >/tmp foo'
expected_region_highlight
=
(
+ 2
- 0
highlighters/main/test-data/sudo-command.zsh
View File
@ -27,6 +27,8 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
type
sudo >/dev/null
||
skip_test
=
'sudo must be present'
# Tests three codepaths:
# * -i (no argument)
# * -C3 (pasted argument)
+ 2
- 0
highlighters/main/test-data/sudo-comment.zsh
View File
@ -27,6 +27,8 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
type
sudo >/dev/null
||
skip_test
=
'sudo must be present'
setopt interactive_comments
BUFFER
=
'sudo -u # comment'
+ 2
- 0
highlighters/main/test-data/sudo-redirection.zsh
View File
@ -27,6 +27,8 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
type
sudo >/dev/null
||
skip_test
=
'sudo must be present'
BUFFER
=
'sudo -u >/tmp otheruser ls; sudo ls; sudo -i ls'
expected_region_highlight
=
(
+ 2
- 0
highlighters/main/test-data/sudo-redirection2.zsh
View File
@ -27,6 +27,8 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
type
sudo >/dev/null
||
skip_test
=
'sudo must be present'
BUFFER
=
'sudo >/tmp -u otheruser ls'
expected_region_highlight
=
(
+ 2
- 0
highlighters/main/test-data/sudo-redirection3.zsh
View File
@ -27,6 +27,8 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
type
sudo >/dev/null
||
skip_test
=
'sudo must be present'
BUFFER
=
'sudo 2>./. -u otheruser ls'
expected_region_highlight
=
(
Write
Preview
Loading…
Cancel
Save