From 2b0f600909e918f913b33821c6f5eefc3b064bed Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 17 Dec 2014 02:26:23 +0100 Subject: [PATCH] Tests: provide a viminfo file for speedup References #138. --- test/run | 6 +++++- test/viminfo | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 test/viminfo diff --git a/test/run b/test/run index e6d9408..b71681f 100755 --- a/test/run +++ b/test/run @@ -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! *' diff --git a/test/viminfo b/test/viminfo new file mode 100644 index 0000000..fb458ed --- /dev/null +++ b/test/viminfo @@ -0,0 +1,2 @@ +> ../plugin/startify.vim + " 1 0