git.shiar.nl
/
barcat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
t: strip options from input file names
[barcat.git]
/
t
/
regress.t
diff --git
a/t/regress.t
b/t/regress.t
index 8f92ee7958524d98054349813aaad47c0791cd2a..6a95a9f54e7bc08ec5a7d4d7ca590c4334f13ca9 100755
(executable)
--- a/
t/regress.t
+++ b/
t/regress.t
@@
-26,18
+26,19
@@
do
esac
done
esac
done
-for candidate in ${@:-t*.
in
}
+for candidate in ${@:-t*.
out
}
do
test_count=$((test_count+1))
do
test_count=$((test_count+1))
- file="${candidate%.in}"
- test -r "$file.in" || continue
-
+ file="${candidate%.out}"
+ input="${file%%_-*}.in"
name="$(echo ${file#*-} | tr _ \ )"
name="$(echo ${file#*-} | tr _ \ )"
- set -- barcat "$file.in"
+
+ set -- barcat
+ [ -r "$input" ] && set -- "$@" "$input"
case "$name" in *\ -*) set -- "$@" -"${name#* -}";; esac
case "$name" in
case "$name" in *\ -*) set -- "$@" -"${name#* -}";; esac
case "$name" in
- *' |'*) set -- sh -c "\$0 \$1
$3
" "$@";;
- *) set -- "$1"
"$2"
$3
+ *' |'*) set -- sh -c "\$0 \$1
| ${name#* |}
" "$@";;
+ *) set -- "$1"
$2
$3
esac
if test -n "$regenerate"
esac
if test -n "$regenerate"