stag: allow multiple tag patterns for each extension
[neatvi.git] / test.sh
blob928897953d7d9f995a8a12015e5d4ae496f3bd29
1 #!/bin/sh
3 # testcase vi_options test.sh
4 testcase() {
5 rm -f /tmp/.neatvi[12]
6 printf "$x: "
7 sh $2 /tmp/.neatvi2 2>/tmp/.neatvi1 | ./vi $1 >/dev/null
8 if ! cmp -s /tmp/.neatvi[12]; then
9 printf "Failed\n"
10 diff -u /tmp/.neatvi[12]
11 exit 1
13 printf "OK\n"
16 for x in test/e??.sh; do
17 testcase "-s -e" "$x"
18 done
19 for x in test/v??.sh; do
20 testcase "-v" "$x"
21 done