Skip to content
This repository was archived by the owner on Mar 21, 2022. It is now read-only.

Commit 185dba2

Browse files
committed
style: comment run-tests.sh
Signed-off-by: Kevin Locke <[email protected]>
1 parent 60a3c1e commit 185dba2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

run-tests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
set -Ceu
44

5+
# Work from project root
56
cd "$(dirname "$0")"
67

8+
# Use build for build and test tools
79
mkdir -p build
810

11+
# Ensure vimlparser and vimlint are available
912
if ! [ -d build/vim-vimlparser ]; then
1013
git clone --depth 1 https://github.com/ynkdir/vim-vimlparser build/vim-vimlparser
1114
fi
@@ -14,8 +17,10 @@ if ! [ -d build/vim-vimlint ]; then
1417
git clone --depth 1 https://github.com/syngan/vim-vimlint build/vim-vimlint
1518
fi
1619

20+
# Run vimlint
1721
./build/vim-vimlint/bin/vimlint.sh -l build/vim-vimlint -p build/vim-vimlparser -v .
1822

23+
# Ensure vint is available, then run it
1924
if command -v vint >/dev/null; then
2025
vint -s .
2126
elif command -v python3 >/dev/null; then
@@ -40,8 +45,10 @@ else
4045
echo 'Warning: Skipping vint.' >&2
4146
fi
4247

48+
# Ensure vader.vim is available
4349
if ! [ -d build/vader.vim ]; then
4450
git clone --depth 1 https://github.com/junegunn/vader.vim.git build/vader.vim
4551
fi
4652

53+
# Run Vader tests
4754
exec vim -i NONE -u test-vimrc -U NONE -V1 -nNeXs "$@" -c 'Vader! test/*.vader'

0 commit comments

Comments
 (0)