Test vim also
This commit is contained in:
parent
9c911bdc1f
commit
5b1d72deaf
3 changed files with 18 additions and 13 deletions
|
|
@ -34,7 +34,8 @@ Nim support for vim and advanced support for neovim. Still in heavy development.
|
|||
|
||||
## Dependencies
|
||||
- Neovim (tested with 1.2)
|
||||
- Vim (TODO)
|
||||
- Vim (7.4)
|
||||
- Async support with channels planned
|
||||
- Optional: [vim-operator-user](https://github.com/kana/vim-operator-user) for defining routine text object
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
set nocompatible
|
||||
filetype off
|
||||
set rtp+=./plugins/vader.vim
|
||||
set rtp+=..
|
||||
|
|
|
|||
|
|
@ -6,15 +6,18 @@ if [[ ! -d plugins ]]; then
|
|||
git clone https://github.com/baabelfish/vader.vim plugins/vader.vim
|
||||
fi
|
||||
|
||||
# Run tests
|
||||
# Running test
|
||||
nvim -u rc.vim -c 'Vader! tests/**/*.vader'
|
||||
# nvim -u rc.vim -c 'Vader! tests/**/*.vader' > /dev/null
|
||||
err=$?
|
||||
if [ "$err" != "0" ]; then
|
||||
cat report.log
|
||||
exit 1
|
||||
else
|
||||
echo ""
|
||||
echo "Great success!"
|
||||
fi
|
||||
function testExecutable() {
|
||||
echo "Testing $1"
|
||||
$1 -u rc.vim -c 'Vader! tests/**/*.vader'
|
||||
err=$?
|
||||
if [ "$err" != "0" ]; then
|
||||
cat report.log
|
||||
exit 1
|
||||
else
|
||||
echo ""
|
||||
echo "Great success!"
|
||||
fi
|
||||
}
|
||||
|
||||
testExecutable "nvim"
|
||||
testExecutable "vim"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue