diff options
author | w0rp <w0rp@users.noreply.github.com> | 2019-01-26 22:04:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-26 22:04:29 +0000 |
commit | 0a9dc7b4bad78d56858328659a988073c241f7fd (patch) | |
tree | 92c869397575867189333aba2dac9f3abc52017e /test | |
parent | 6543d0e902d432d722a65d44bd7b6536f48df54f (diff) | |
parent | a6de3f37274d4db9774136350d6475397dc7ac21 (diff) | |
download | ale-0a9dc7b4bad78d56858328659a988073c241f7fd.zip |
Merge pull request #2245 from andrewimeson/adi/add-ksh-support
Add better ksh support
Diffstat (limited to 'test')
-rw-r--r-- | test/test_shell_detection.vader | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/test_shell_detection.vader b/test/test_shell_detection.vader index adb8d70d..88ee462d 100644 --- a/test/test_shell_detection.vader +++ b/test/test_shell_detection.vader @@ -52,11 +52,27 @@ Execute(zsh should be detected appropriately): Given(A file with a csh hash bang and arguments): #!/usr/bin/env csh -eu --foobar -Execute(zsh should be detected appropriately): +Execute(csh should be detected appropriately): AssertEqual 'csh', ale#handlers#sh#GetShellType(bufnr('')) AssertEqual 'csh', ale_linters#sh#shell#GetExecutable(bufnr('')) AssertEqual 'csh', ale_linters#sh#shellcheck#GetDialectArgument(bufnr('')) +Given(A file with a ksh hashbang): + #!/bin/ksh + +Execute(/bin/ksh should be detected appropriately): + AssertEqual 'ksh', ale#handlers#sh#GetShellType(bufnr('')) + AssertEqual 'ksh', ale_linters#sh#shell#GetExecutable(bufnr('')) + AssertEqual 'ksh', ale_linters#sh#shellcheck#GetDialectArgument(bufnr('')) + +Given(A file with a ksh as an argument to env): + #!/usr/bin/env ksh + +Execute(ksh should be detected appropriately): + AssertEqual 'ksh', ale#handlers#sh#GetShellType(bufnr('')) + AssertEqual 'ksh', ale_linters#sh#shell#GetExecutable(bufnr('')) + AssertEqual 'ksh', ale_linters#sh#shellcheck#GetDialectArgument(bufnr('')) + Given(A file with a sh hash bang and arguments): #!/usr/bin/env sh -eu --foobar |