From: <iye...@us...> - 2003-01-28 20:08:48
|
Update of /cvsroot/ltp/ltp In directory sc8-pr-cvs1:/tmp/cvs-serv28672 Modified Files: runalltests.sh Log Message: Added option to runall to turnon formatted printing. Index: runalltests.sh =================================================================== RCS file: /cvsroot/ltp/ltp/runalltests.sh,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- runalltests.sh 28 Jan 2003 14:31:13 -0000 1.26 +++ runalltests.sh 28 Jan 2003 20:08:44 -0000 1.27 @@ -11,12 +11,15 @@ # user defined set of testcases. # 01/27/03 - Manoj Iyer - ma...@ma...: Enabled formatted printing # of logfiles. +# 01/28/03 - Manoj Iyer - ma...@ma...: added option to enable +# formatted printing of logfiles. # cd `dirname $0` export LTPROOT=${PWD} export TMPBASE="/tmp" cmdfile="" +pretty_prt=" " usage() { @@ -30,6 +33,7 @@ -i Run LTP under heavy IO load. -l logfile Log results of test in a logfile. -m Run LTP under heavy memory load. + -p Human readable format logfiles. -r ltproot Fully qualified path where testsuite is installed. -t duration Execute the testsuite for given duration in hours. -x instances Run multiple instances of this testsuite. @@ -41,7 +45,7 @@ # while getopts :t:x:l:r:d:mic arg -while getopts cd:f:il:mr:t:x arg +while getopts cd:f:il:mpr:t:x arg do case $arg in c) $LTPROOT/testcases/bin/genload --cpu 10 2>&1 1>/dev/null & ;; @@ -63,6 +67,8 @@ $LTPROOT/testcases/bin/genload --vm 10 --vm-chunks 10 \ 2>&1 1>/dev/null & ;; + p) pretty_prt=" -p ";; + r) LTPROOT=$OPTARG;; t) # In case you want to specify the time @@ -112,9 +118,7 @@ # display versions of installed software ${LTPROOT}/ver_linux -${LTPROOT}/pan/pan -e -S $instances $duration -a $$ -n $$ -f ${TMP}/alltests $logfile -# Comment out the line above and use the line below if you want formatted printing. -#${LTPROOT}/pan/pan -e -S $instances $duration -a $$ -n $$ -p -f ${TMP}/alltests $logfile +${LTPROOT}/pan/pan -e -S $instances $duration -a $$ -n $$ $pretty_prt -f ${TMP}/alltests $logfile if [ $? -eq 0 ]; then |