From 7c408f4c5fd7960fdcaf094a47a516a2079fde81 Mon Sep 17 00:00:00 2001 From: Owen Clarke Date: Thu, 23 Aug 2012 08:42:01 +1000 Subject: [PATCH] Portabality - Added comment to explain the use of perl in run_all to get the current epoch time in seconds --- test/run_all | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/run_all b/test/run_all index b924518d0..8aec1c569 100755 --- a/test/run_all +++ b/test/run_all @@ -1,6 +1,9 @@ #! /bin/sh date > all.log + +# Perl is used here to get the time in seconds +# because 'date +%s' isn't supported on Solaris. STARTEPOCH=`perl -e 'print time'` VRAMSTEG=`which vramsteg` @@ -29,8 +32,8 @@ if [ $BAR -eq 1 ]; then fi date >> all.log -ENDEPOCH=`perl -e 'print time'` +ENDEPOCH=`perl -e 'print time'` RUNTIME=`expr $ENDEPOCH - $STARTEPOCH` printf "Pass: %5d\n" `grep -c '^ok' all.log`