summaryrefslogtreecommitdiff
path: root/tests/runtest.sh
diff options
context:
space:
mode:
authorGeunsik Lim <geunsik.lim@samsung.com>2016-05-20 22:31:32 +0900
committerGeunsik Lim <geunsik.lim@samsung.com>2016-05-24 07:29:47 +0900
commit4f330fdcb0bfee6372584b28a098a14bc7803c5c (patch)
tree9307ef648a72bb0bb3120135642c13b965cbbb2b /tests/runtest.sh
parent1d326bbdc1ebbd25b4680d3c801d3a9fb1b7bdbc (diff)
downloadcoreclr-4f330fdcb0bfee6372584b28a098a14bc7803c5c.tar.gz
coreclr-4f330fdcb0bfee6372584b28a098a14bc7803c5c.tar.bz2
coreclr-4f330fdcb0bfee6372584b28a098a14bc7803c5c.zip
Linux/ARM: Add execution time of ./tests/runtest.sh
We have to wait for a long time to complete all unit tests on the ARM-based embedded boards (e.g, Raspberry Pi, Odroid, Chromebook) compared to the X86-based server environment. So, let's display execution time after finishing the unit test. * After PR: 128 minutes and 36 seconds taken to run CoreCLR tests. ver1: The existing measured time still includes overlay creation and some package restoration. So, let's put time_start in front of if($testDirectories). Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com> Reviewed-by: Aditya Mandaleeka <adityamandaleeka@microsoft.com> Reviewed-by: Sergiy Kuryata <sergiy-k@microsoft.com>
Diffstat (limited to 'tests/runtest.sh')
-rwxr-xr-xtests/runtest.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/runtest.sh b/tests/runtest.sh
index 26500fc14a..64a3535835 100755
--- a/tests/runtest.sh
+++ b/tests/runtest.sh
@@ -899,6 +899,7 @@ scriptPath=$(dirname $0)
${scriptPath}/setup-runtime-dependencies.sh --outputDir=$coreOverlayDir
cd "$testRootDir"
+time_start=$(date +"%s")
if [ -z "$testDirectories" ]
then
# No test directories were specified, so run everything in the current
@@ -918,6 +919,11 @@ fi
finish_remaining_tests
print_results
+
+time_end=$(date +"%s")
+time_diff=$(($time_end-$time_start))
+echo "$(($time_diff / 60)) minutes and $(($time_diff % 60)) seconds taken to run CoreCLR tests."
+
xunit_output_end
if [ "$CoreClrCoverage" == "ON" ]