X-Git-Url: http://git.shiar.net/barcat.git/blobdiff_plain/2c67b83a73065c44448ba562ddc83403e97abd8d..188cb157abb592e69997c7831c3554c25a48fae7:/t/regress.t diff --git a/t/regress.t b/t/regress.t new file mode 100755 index 0000000..ef28f6f --- /dev/null +++ b/t/regress.t @@ -0,0 +1,18 @@ +#!/bin/sh + +cd "${0%/*}" || exit 1 + +test_count=0 + +COLUMNS=40 +diffcmd='diff --unchanged-line-format= --old-line-format=<%L --new-line-format=>%L' + +for candidate in ${@:-t*.in} +do + test_count=$((test_count+1)) + name="${candidate%.out}" + barcat <"$name.in" | $diffcmd "$name.out" - || printf 'not ' + echo "ok $test_count - $name" +done + +echo "1..$test_count"