From 3732cdfabb5c3be7595b97cec663397642bf19d9 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 12 Feb 2014 02:09:24 +0900 Subject: [PATCH] Add test runner --- test/run | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 test/run diff --git a/test/run b/test/run new file mode 100755 index 0000000..52aee18 --- /dev/null +++ b/test/run @@ -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*