diff options
author | cos <cos> | 2024-08-17 16:28:21 +0200 |
---|---|---|
committer | cos <cos> | 2024-08-17 20:04:54 +0200 |
commit | 884b374d533d36906ad0bb2b2116a7ba8e99930f (patch) | |
tree | 652f87e69bc75d74297ab6e5b489f5d922dee72a /tests/runtests.sh | |
parent | 67e3ff1e166d24953a05292c6257f24bcf255fae (diff) | |
download | todo.txt-vim-884b374d533d36906ad0bb2b2116a7ba8e99930f.zip |
Check for Vader prior to running teststopic/chk-vader
Without this the test script confusingly claims "All tests are passing."
when Vader is missing.
Diffstat (limited to 'tests/runtests.sh')
-rwxr-xr-x | tests/runtests.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/runtests.sh b/tests/runtests.sh index ceccba3..1436653 100755 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -3,6 +3,23 @@ REPO_TOP=$(git rev-parse --show-toplevel) cd "${REPO_TOP}" +echo "Check for Vader" +echo "---------------" +vim -Nu <(cat <<EOF +function! s:chk_vader_exists() + if exists(":Vader") + cquit 0 + else + echom 'Vader not found. Please install it.' + echom 'https://github.com/junegunn/vader.vim' + cquit 1 + endif +endfunction + +command! ChkVaderExists call s:chk_vader_exists() +EOF +) '+ChkVaderExists' || exit 1 + echo "Basic environment" echo "-----------------" vim -Nu <(cat <<EOF |