ef28f6f934e17160acb53972ef620ee0aa685eb3
[barcat.git] / t / regress.t
1 #!/bin/sh
2
3 cd "${0%/*}" || exit 1
4
5 test_count=0
6
7 COLUMNS=40
8 diffcmd='diff --unchanged-line-format= --old-line-format=<%L --new-line-format=>%L'
9
10 for candidate in ${@:-t*.in}
11 do
12         test_count=$((test_count+1))
13         name="${candidate%.out}"
14         barcat <"$name.in" | $diffcmd "$name.out" - || printf 'not '
15         echo "ok $test_count - $name"
16 done
17
18 echo "1..$test_count"