Forráskód Böngészése

Tests: provide a viminfo file for speedup

References #138.
Daniel Hahler 11 éve
szülő
commit
2b0f600909
2 módosított fájl, 7 hozzáadás és 1 törlés
  1. 5 1
      test/run
  2. 2 0
      test/viminfo

+ 5 - 1
test/run

@@ -16,5 +16,9 @@ else
     git clone https://github.com/junegunn/vader.vim.git
     git clone https://github.com/junegunn/vader.vim.git
 fi
 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.)'
 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 - 0
test/viminfo

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