summaryrefslogtreecommitdiff
path: root/test/linter
diff options
context:
space:
mode:
authorBenjamin Bannier <bbannier@users.noreply.github.com>2021-10-24 14:05:55 +0200
committerGitHub <noreply@github.com>2021-10-24 21:05:55 +0900
commit92f08b5af2f6316312c95c5160c6e02b76370e04 (patch)
tree163d813a814215fc8fe5830b24f77bd211016dc3 /test/linter
parentda331acc9e1662e61fb7b829a3f928530fc8e52b (diff)
downloadale-92f08b5af2f6316312c95c5160c6e02b76370e04.zip
Add support for zeek (#3952)
Diffstat (limited to 'test/linter')
-rw-r--r--test/linter/test_zeek.vader17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/linter/test_zeek.vader b/test/linter/test_zeek.vader
new file mode 100644
index 00000000..af58a414
--- /dev/null
+++ b/test/linter/test_zeek.vader
@@ -0,0 +1,17 @@
+Before:
+ call ale#assert#SetUpLinterTest('zeek', 'zeek')
+
+ let b:command_tail = ' --parse-only %s'
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+ unlet! b:command_tail
+
+Execute(The default command should be correct):
+ AssertLinter 'zeek', ale#Escape('zeek') . b:command_tail
+
+Execute(The zeek executable should be configurable, and escaped properly):
+ let g:ale_zeek_zeek_executable = 'executable with spaces'
+
+ AssertLinter 'executable with spaces', ale#Escape('executable with spaces') . b:command_tail