aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-11-04 15:29:48 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-11-04 15:29:48 +0000
commit6b8bbcfa904d3f5ddfa10d8f59d8099b0a428e77 (patch)
tree13b44874dbf8548d6084931c6a5874b0d9fde0f6 /test
parenta3da76a7780eb98017b185127693962316fd12ac (diff)
downloadpaludis-6b8bbcfa904d3f5ddfa10d8f59d8099b0a428e77.tar.gz
paludis-6b8bbcfa904d3f5ddfa10d8f59d8099b0a428e77.tar.xz
Split up e_repository_TEST a bit
Diffstat (limited to 'test')
-rwxr-xr-xtest/run_test.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/run_test.sh b/test/run_test.sh
index 62e3da032..63b3ebc1d 100755
--- a/test/run_test.sh
+++ b/test/run_test.sh
@@ -32,12 +32,14 @@ else
echo ">>> No $TEST_SCRIPT_DIR${testname}_setup.sh to run" 1>&$PALUDIS_TESTS_REAL_STDOUT_FD
fi
+now=$(date +'%s' )
echo ">>> test ${testname}" 1>&$PALUDIS_TESTS_REAL_STDOUT_FD 1>&$PALUDIS_TESTS_REAL_STDOUT_FD
$interp ${@}
code=$?
+duration=$(( $(date +'%s' ) - ${now} ))
if [[ 0 != ${code} ]] ; then
- echo ">>> test ${testname} returned ${code}" 1>&$PALUDIS_TESTS_REAL_STDOUT_FD
+ echo ">>> test ${testname} returned ${code} [${duration}s]" 1>&$PALUDIS_TESTS_REAL_STDOUT_FD
if [[ -z "${PALUDIS_TESTS_RERUN_VERBOSELY}" ]] && [[ "${testname#./}" != "test_fail_TEST" ]] ; then
out=`pwd`/${testname#./}.epicfail
echo ">>> rerunning test ${testname} verbosely redirected to ${out}" 1>&$PALUDIS_TESTS_REAL_STDOUT_FD
@@ -59,7 +61,7 @@ else
echo ">>> No $TEST_SCRIPT_DIR${testname}_cleanup.sh to run" 1>&$PALUDIS_TESTS_REAL_STDOUT_FD
fi
-echo ">>> exiting with success for test ${testname}" 1>&$PALUDIS_TESTS_REAL_STDOUT_FD
+echo ">>> exiting with success for test ${testname} [${duration}s]" 1>&$PALUDIS_TESTS_REAL_STDOUT_FD
exit 0