testOneThing()
{
- echo "got to test case. sleeping for a bit..."
+ echo "got to primary test case."
zero=0
assertEquals "zero should be equal to 0" 0 $zero
- sleep 23
- echo "woke up. passed tautological test."
+ echo "passed tautological test."
+ sleep_time=83
+ echo "$(date): now sleeping for $sleep_time seconds."
+ sleep $sleep_time
+ echo "$(date): woke up."
}
oneTimeTearDown()
_shunit_msg_="${_shunit_msg_})"
fi
- echo "Suite ran for $(($suite_end - $suite_start)) seconds."
+ duration_s=$(($suite_end - $suite_start))
+ duration_m=$(($duration_s / 60))
+ duration_h=$(($duration_m / 60))
+ if [ $duration_m -lt 10 ]; then duration_m="0$duration_m"; fi
+ if [ $duration_h -lt 10 ]; then duration_h="0$duration_h"; fi
+ echo "Suite ran for $duration_s total seconds [$duration_h:$duration_m hh:mm]"
echo
echo "$(date): ${_shunit_msg_}"
__shunit_reportGenerated=${SHUNIT_TRUE}