X-Git-Url: http://git.shiar.nl/barcat.git/blobdiff_plain/865a86083719cb69f158940eaf5bad95d4cae714..0f38a688d263d8c58d28e51da2ff864fad493f3f:/t/regress.t diff --git a/t/regress.t b/t/regress.t index 2293efa..5911e25 100755 --- a/t/regress.t +++ b/t/regress.t @@ -30,15 +30,16 @@ for candidate in ${@:-t*.out} do test_count=$((test_count+1)) file="${candidate%.out}" - input="$file.in" + input="${file%%_-*}.in" name="$(echo ${file#*-} | tr _ \ )" set -- barcat [ -r "$input" ] && set -- "$@" "$input" case "$name" in *\ -*) set -- "$@" -"${name#* -}";; esac case "$name" in + *' ?'*) set -- sh -c "\$0 \$1 | test \$\? = ${name#* \?}" "$@";; *' |'*) set -- sh -c "\$0 \$1 | ${name#* |}" "$@";; - *) set -- "$1" "$2" $3 + *) set -- "$1" $2 $3 esac if test -n "$regenerate"