X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fshunit%2Fshunit2;h=71a3d8c1c7ed3c20b32aa3d054ec59645561784f;hb=ccf0ad0ecce7f27f4cd09f4b57061aea19323dc3;hp=a56ed4a5cb18460fccd6b9fdee0a226affcbd4b5;hpb=e25ac6e59711fa21200845327cafe07a1b4a4f25;p=feisty_meow.git diff --git a/scripts/shunit/shunit2 b/scripts/shunit/shunit2 old mode 100644 new mode 100755 index a56ed4a5..71a3d8c1 --- a/scripts/shunit/shunit2 +++ b/scripts/shunit/shunit2 @@ -862,6 +862,7 @@ _shunit_generateReport() _shunit_msg_="${_shunit_msg_})" fi + echo "Suite ran for $(($suite_end - $suite_start)) seconds." echo echo "$(date): ${_shunit_msg_}" __shunit_reportGenerated=${SHUNIT_TRUE} @@ -1041,6 +1042,9 @@ if [ "${__shunit_mode}" = "${__SHUNIT_MODE_STANDALONE}" ]; then . "`_shunit_prepForSourcing \"${__shunit_script}\"`" fi +# record when the tests started running. +suite_start=$(date +%s) + # execute the oneTimeSetUp function (if it exists) oneTimeSetUp @@ -1063,6 +1067,8 @@ _shunit_execSuite # execute the oneTimeTearDown function (if it exists) oneTimeTearDown +suite_end=$(date +%s) + # generate the report _shunit_generateReport