git.shiar.nl
/
barcat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refer to bold as bright in black colour documentation
[barcat.git]
/
t
/
regress.t
diff --git
a/t/regress.t
b/t/regress.t
index 2293efadcec1c6aacdbb0b97749de257f1b61d9d..bde3eb42dfe0dbb30be1a5a9ea4a9b3019d6cec0 100755
(executable)
--- a/
t/regress.t
+++ b/
t/regress.t
@@
-30,15
+30,17
@@
for candidate in ${@:-t*.out}
do
test_count=$((test_count+1))
file="${candidate%.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
name="$(echo ${file#*-} | tr _ \ )"
set -- barcat
[ -r "$input" ] && set -- "$@" "$input"
case "$name" in *\ -*) set -- "$@" -"${name#* -}";; esac
case "$name" in
- *' |'*) set -- sh -c "\$0 \$1 | ${name#* |}" "$@";;
- *) set -- "$1" "$2" $3
+ *' ?' ) set -- sh -c "\$0 \$@ 2>/dev/null" "$@";;
+ *' ?'*) set -- sh -c "\$0 \$@ | test \$\? = ${name#* \?}" "$@";;
+ *' |'*) set -- sh -c "\$0 \$@ | ${name#* |}" "$@";;
+ *) set -- "$1" $2 $3
esac
if test -n "$regenerate"
esac
if test -n "$regenerate"