# Run a test program, and, if prove is installed, use it to interpret the
# TAP-formatted output.
test_run_tap () {
- program=$[1]; shift
-
- "$builddir/t/$program" "$[@]" >"$program.tap"
+ program=$[1]
+ AS_CASE([$program],
+ [*/*], [program=`expr "$program" : '[.*/\([^.]*\)]'`],
+ [*.*], [program=`expr "$program" : '[\([^.]*\)]'`])
+ "$[@]" >"$program.tap"
status=$?
cat "$program.tap"
# Older versions of prove do not support the -e option so the