File: tests.sh

package info (click to toggle)
vim-snipmate 0.90-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 224 kB
  • sloc: sh: 15; makefile: 2
file content (20 lines) | stat: -rwxr-xr-x 399 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

tmp="$(mktemp || tmpfile)"
vim -Es $tmp <<- EOF
    source ~/.vimrc
    %delete _
    call append(0, split(&rtp, ','))
    delete _
    wq
EOF

rtp="$(grep -iE 'vspec|snipmate|tlib|mw-utils' < $tmp | grep -v after)"
vspec="$(grep -iE 'vspec' < $tmp | grep -v after)"
test_files="${*:-parser jumping}"

for test in $test_files; do
    $vspec/bin/vspec $rtp ${test%%.vim}.vim
done

rm $tmp