-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·39 lines (35 loc) · 839 Bytes
/
Copy pathtest.sh
File metadata and controls
executable file
·39 lines (35 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
dir=$(pwd)
echo "# Vim version"
vim --version | head -n 3
echo "# NVim version"
nvim -v | head -n 3
echo "# Run test script"
(cd ./test && for cmd in "vim --not-a-term" "nvim -n --headless"; do
echo "running ${cmd}"
export ENV_VALUE1=100
export ENV_VALUE2=202
${cmd} --noplugin -u NONE \
-c ':set nocp' \
-c ':filetype plugin indent on' \
-c ':syntax on' \
-c ":set rtp=${dir}/,${dir}/test" \
-c ':set shortmess=aT' \
-c ':set virtualedit=all' \
-c ":source ${dir}/plugin/rel.vim" \
-c ":redir >> /tmp/rel.vim.test.$$.txt" \
-c ':source ./test.vim' \
-c ':redir END'
ec=$?
if [ ${ec} -ne 0 ]; then
exit ${ec}
else
case "${cmd}" in
vim*)
cat /tmp/rel.vim.test.$$.txt
;;
esac
echo
fi
rm -f /tmp/rel.vim.test.$$.txt
done)