summaryrefslogtreecommitdiff
path: root/test/linter/test_cmake_cmake_lint.vader
diff options
context:
space:
mode:
authorCarl Smedstad <carl.smedstad@protonmail.com>2022-02-06 13:09:38 +0100
committerGitHub <noreply@github.com>2022-02-06 21:09:38 +0900
commitc9938bc293da6c868d85627fc0f2befc037bb997 (patch)
tree41d3ca475d5fa46da93f0fbf5dc4fc74e900a0cc /test/linter/test_cmake_cmake_lint.vader
parent7cbb68da6c5664a4e2aba533fe1f969373c60d5c (diff)
downloadale-c9938bc293da6c868d85627fc0f2befc037bb997.zip
Add CMake linter cmake-lint (#4036)
* Add CMake linter cmake-lint Add support for the CMake linter provided by https://github.com/cheshirekow/cmake_format. * Escape cmake-lint executable and add linter tests
Diffstat (limited to 'test/linter/test_cmake_cmake_lint.vader')
-rw-r--r--test/linter/test_cmake_cmake_lint.vader13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/linter/test_cmake_cmake_lint.vader b/test/linter/test_cmake_cmake_lint.vader
new file mode 100644
index 00000000..6cf09149
--- /dev/null
+++ b/test/linter/test_cmake_cmake_lint.vader
@@ -0,0 +1,13 @@
+Before:
+ call ale#assert#SetUpLinterTest('cmake', 'cmake_lint')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default command should be correct):
+ AssertLinter 'cmake-lint', ale#Escape('cmake-lint') . ' %t'
+
+Execute(The executable should be configurable):
+ let g:ale_cmake_cmake_lint_executable = 'foobar'
+
+ AssertLinter 'foobar', ale#Escape('foobar') . ' %t'