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:
@@ -1,6 +1,9 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
date > all.log
|
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'`
|
STARTEPOCH=`perl -e 'print time'`
|
||||||
|
|
||||||
VRAMSTEG=`which vramsteg`
|
VRAMSTEG=`which vramsteg`
|
||||||
@@ -29,8 +32,8 @@ if [ $BAR -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
date >> all.log
|
date >> all.log
|
||||||
ENDEPOCH=`perl -e 'print time'`
|
|
||||||
|
|
||||||
|
ENDEPOCH=`perl -e 'print time'`
|
||||||
RUNTIME=`expr $ENDEPOCH - $STARTEPOCH`
|
RUNTIME=`expr $ENDEPOCH - $STARTEPOCH`
|
||||||
|
|
||||||
printf "Pass: %5d\n" `grep -c '^ok' all.log`
|
printf "Pass: %5d\n" `grep -c '^ok' all.log`
|
||||||
|
|||||||
Reference in New Issue
Block a user