X-Git-Url: http://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/2fa6f6881b22fe1aabb2d25ed6040fd8e8ddb3b5..cf78d2aad652d3dd53a76e6651a08194a52afb6e:/snippet/test-tap.at diff --git a/snippet/test-tap.at b/snippet/test-tap.at index ee4b541..9167bc5 100644 --- a/snippet/test-tap.at +++ b/snippet/test-tap.at @@ -17,9 +17,11 @@ m4_defun([_TEST_TAP_PREPARE], [m4_divert_push([PREPARE_TESTS])dnl # 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