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
- 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

View file

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

View file

@ -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"