Tests: provide a viminfo file for speedup

References #138.
This commit is contained in:
Daniel Hahler 2014-12-17 02:26:23 +01:00 committed by Marco Hinz
parent a8657753d6
commit 2b0f600909
2 changed files with 7 additions and 1 deletions

View file

@ -16,5 +16,9 @@ else
git clone https://github.com/junegunn/vader.vim.git
fi
# Provide viminfo during tests, remove it on exit.
cp viminfo viminfo.tmp
trap "{ rm viminfo.tmp; }" EXIT
echo '(Be patient.. testing can take a while.)'
HOME=/dev/null vim -XNu vimrc -i NONE -c 'Vader! *' >/dev/null
HOME=/dev/null vim -XNu vimrc -i viminfo.tmp -c 'Vader! *'

2
test/viminfo Normal file
View file

@ -0,0 +1,2 @@
> ../plugin/startify.vim
" 1 0