Add test runner
This commit is contained in:
parent
7ea0b523e5
commit
3732cdfabb
1 changed files with 19 additions and 0 deletions
19
test/run
Executable file
19
test/run
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd $(dirname $BASH_SOURCE)
|
||||||
|
cd ..
|
||||||
|
PLUG_SRC=$(pwd)/plug.vim
|
||||||
|
cd - > /dev/null
|
||||||
|
|
||||||
|
export VADER_RTP=$TMPDIR/vader-rtp
|
||||||
|
vim -e +Vader -c ':call writefile([fnamemodify(globpath(&rtp, "autoload/vader.vim"), ":h:h")], $VADER_RTP)' +q
|
||||||
|
|
||||||
|
MINI_VIMRC=$TMPDIR/mini-vimrc
|
||||||
|
cat > $MINI_VIMRC << EOF
|
||||||
|
let \$MYVIMRC = '$MINI_VIMRC'
|
||||||
|
set nocompatible
|
||||||
|
set rtp=$(cat $VADER_RTP)
|
||||||
|
source $PLUG_SRC
|
||||||
|
EOF
|
||||||
|
|
||||||
|
vim -u $MINI_VIMRC +Vader*
|
Loading…
Reference in a new issue