Portabality

- Added comment to explain the use of perl in run_all to get the current
  epoch time in seconds
This commit is contained in:
Owen Clarke
2012-08-23 08:42:01 +10:00
parent c5de9df963
commit 7c408f4c5f

View File

@@ -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`