Hash :
222c1eed
Author :
Date :
2011-09-12T10:01:26
cosmetics: fix typo in 'prove-runner' script * tests/prove-runner: Remove erroneously-repeated word. * THANKS: Update. Reported by Dave Hart.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
#!/bin/sh
# Helper script to run the automake testsuite through the `prove' utility.
# See the "prove" and "installprove" targets in tests/Makefile.am.
set -u
nl='
'
tst=$1
shift
case $tst in
*.test)
echo 1..1
# Protect the output contents of the test script, since it might
# sometimes contain TAP lines that would confuse `prove'. This
# has already happened in practice, especially for the tests
# checking TAP support in automake-generated test harnesses.
(${TEST_RUNNER-} "$tst" ${1+"$@"}; echo exit status: $?) 2>&1 | awk '
BEGIN { lastine = "exit status: 255"; }
{ print " " $0; lastline = $0; }
END { st = lastline; sub("^exit status: *", "", st); exit st; }
'
st=$?
if test $st -eq 99; then
echo "not ok - $tst: hard failure (exit status $st)"
elif test $st -eq 77; then
echo "ok - $tst # SKIP"
else
case " ${XFAIL_TESTS-} " in
*" $tst "*) xs=' # TODO';;
*) xs='';;
esac
if test $st -eq 0; then
echo "ok - test script $tst passed$xs"
else
echo "not ok - test script $tst failed (exit status $st)$xs"
fi
fi
exit 0
;;
*.tap)
${TAP_RUNNER-} "$tst" ${1+"$@"} 2>&1
exit $?
;;
esac
echo "Bail out! Invalid test script name '$tst'"
exit 99