[brlcad-commits] SF.net SVN: brlcad:[37021] brlcad/trunk/bench/run.sh
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <br...@us...> - 2009-12-27 19:05:40
|
Revision: 37021 http://brlcad.svn.sourceforge.net/brlcad/?rev=37021&view=rev Author: brlcad Date: 2009-12-27 19:05:31 +0000 (Sun, 27 Dec 2009) Log Message: ----------- restructure the output so that system configuration information is included at the end of the log instead of the beginning. that also lets us preserve the sysctl formatting and include the verbose /proc/cpuinfo details if they are available. we do this quietly only because it's so much output, but still let the user know that additional information was added to the log. Modified Paths: -------------- brlcad/trunk/bench/run.sh Modified: brlcad/trunk/bench/run.sh =================================================================== --- brlcad/trunk/bench/run.sh 2009-12-27 18:36:11 UTC (rev 37020) +++ brlcad/trunk/bench/run.sh 2009-12-27 19:05:31 UTC (rev 37021) @@ -427,7 +427,6 @@ $ECHO "Running $THIS on `date`" $ECHO "Logging output to $LOGFILE" $ECHO "`uname -a 2>&1`" -$ECHO `sysctl hw 2>&1` $ECHO ######################## @@ -1392,6 +1391,28 @@ fi $ECHO " $options" $ECHO +else + # if this was a valid benchmark run, encourage submission of results. + $ECHO "You are encouraged to submit your benchmark results and system" + $ECHO "configuration information to ben...@br..." + $ECHO + + # include information about the kernel, memory, and hardware in the log + preQUIET="$QUIET" + QUIET=1 + $ECHO "System state information (via sysctl):" + $ECHO "`sysctl hw kern kernel vm 2>&1`" + $ECHO + + if test -f /proc/cpuinfo ; then + $ECHO "System CPU information (via /proc/cpuinfo):" + $ECHO "`cat /proc/cpuinfo`" + $ECHO + fi + QUIET="$preQUIET" + + $ECHO "Additional system information is included in the log." + $ECHO fi # tell about the benchmark document @@ -1413,16 +1434,10 @@ fi $ECHO -# if this was a valid benchmark run, encourage submission of results. -if test "x$encourage_submission" = "xyes" ; then - $ECHO "You are encouraged to submit your benchmark results and system" - $ECHO "configuration information to ben...@br..." - $ECHO -fi - $ECHO "Output was saved to $LOGFILE from `pwd`" $ECHO "Benchmark testing complete." + # Local Variables: # mode: sh # tab-width: 8 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |