Author: tchemit Date: 2008-03-17 23:11:03 +0000 (Mon, 17 Mar 2008) New Revision: 1378 Added: trunk/simexplorer-is/simexplorer-is-swing/i18n-benchmark.sh Log: script for i18n tests (should be remove soon) Added: trunk/simexplorer-is/simexplorer-is-swing/i18n-benchmark.sh =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/i18n-benchmark.sh (rev 0) +++ trunk/simexplorer-is/simexplorer-is-swing/i18n-benchmark.sh 2008-03-17 23:11:03 UTC (rev 1378) @@ -0,0 +1,54 @@ +#!/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 +} + +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 +} + +function _try() { + i=1 + _command=$1 + echo "--------------------------------------------------------------------------------" + echo "[INFO] start $_command " + while [ $i -le $3 ]; do + filter "$_command" "$2-$i" + i=$(($i + 1)) + done +} +function filter() { + _command=$1 + _file=/tmp/i18n-benchmark-$2.log + _realCommand="$_command | grep -v bundle | grep -v xecut | grep -v i18n:ge > $_file" + echo "[INFO] round $2 in $_file" + echo "[INFO] $_command round $2 in $_file" >> $result + + eval $_realCommand + grep -e "i18n." $_file| grep success >> $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 >> $result + grep Memor $_file >> $result + echo "--------------------------------------------------------------------------------" >> $result +# sleep 5 +} + +result=$0.log + +try 2 + +sleep 5 + +try1 1 + +#cat $result \ No newline at end of file Property changes on: trunk/simexplorer-is/simexplorer-is-swing/i18n-benchmark.sh ___________________________________________________________________ Name: svn:executable + *