Author: tchemit Date: 2008-03-18 00:12:57 +0000 (Tue, 18 Mar 2008) New Revision: 1381 Modified: trunk/simexplorer-is/simexplorer-is-swing/i18n-benchmark.sh Log: final Modified: trunk/simexplorer-is/simexplorer-is-swing/i18n-benchmark.sh =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/i18n-benchmark.sh 2008-03-18 00:12:46 UTC (rev 1380) +++ trunk/simexplorer-is/simexplorer-is-swing/i18n-benchmark.sh 2008-03-18 00:12:57 UTC (rev 1381) @@ -1,15 +1,20 @@ #!/bin/bash + + function try() { - _try "mvn -o process-classes" "0" $1 - _try "mvn -o process-classes -Di18n.detectea=true" "1" $1 - _try "mvn -o process-classes -Di18n.ea=true" "2" $1 + sleep 2 + _try "mvn -o $mvnCommand" "0" $1 + _try "mvn -o $mvnCommand -Di18n.detectea=true" "1" $1 + _try "mvn -o $mvnCommand -Di18n.ea=true" "2" $1 } function try1() { - _try "mvn -o process-classes -Di18n.detectea=true" "3" $1 - _try "mvn -o process-classes -Di18n.ea=true" "4" $1 - _try "mvn -o process-classes" "5" $1 + sleep 2 + _try "mvn -o $mvnCommand -Di18n.detectea=true" "3" $1 + _try "mvn -o $mvnCommand -Di18n.ea=true" "4" $1 + _try "mvn -o $mvnCommand" "5" $1 + } function _try() { @@ -30,13 +35,14 @@ echo "[INFO] $_command round $2 in $_file" >> $result eval $_realCommand - grep -e "i18n." $_file| grep success >> $result + grep -e "i18n." $_file| grep -v parse >> $result if [ `grep -e "BUILD SUC" $_file | wc -l ` != 1 ]; then echo "error!" cat $result exit 1 fi grep BUILD $_file >> $result + grep second $_file grep second $_file >> $result grep Memor $_file >> $result echo "--------------------------------------------------------------------------------" >> $result @@ -45,10 +51,14 @@ result=$0.log -try 2 +mvnCommand="clean install" +try 1 -sleep 5 +mvnCommand="install" +try 1 +mvnCommand="clean install" try1 1 -#cat $result \ No newline at end of file +mvnCommand="install" +try1 1