Test vim also

This commit is contained in:
baabelfish 2016-03-17 01:45:40 +02:00
commit 5b1d72deaf
3 changed files with 18 additions and 13 deletions

View file

@ -34,7 +34,8 @@ Nim support for vim and advanced support for neovim. Still in heavy development.
## Dependencies ## Dependencies
- Neovim (tested with 1.2) - 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 - Optional: [vim-operator-user](https://github.com/kana/vim-operator-user) for defining routine text object

View file

@ -1,3 +1,4 @@
set nocompatible
filetype off filetype off
set rtp+=./plugins/vader.vim set rtp+=./plugins/vader.vim
set rtp+=.. set rtp+=..

View file

@ -6,15 +6,18 @@ if [[ ! -d plugins ]]; then
git clone https://github.com/baabelfish/vader.vim plugins/vader.vim git clone https://github.com/baabelfish/vader.vim plugins/vader.vim
fi fi
# Run tests function testExecutable() {
# Running test echo "Testing $1"
nvim -u rc.vim -c 'Vader! tests/**/*.vader' $1 -u rc.vim -c 'Vader! tests/**/*.vader'
# nvim -u rc.vim -c 'Vader! tests/**/*.vader' > /dev/null err=$?
err=$? if [ "$err" != "0" ]; then
if [ "$err" != "0" ]; then
cat report.log cat report.log
exit 1 exit 1
else else
echo "" echo ""
echo "Great success!" echo "Great success!"
fi fi
}
testExecutable "nvim"
testExecutable "vim"