### Eclipse Workspace Patch 1.0 #P eclipse-build Index: generatebuild.xml =================================================================== --- generatebuild.xml (revision 23733) +++ generatebuild.xml (working copy) @@ -5,7 +5,7 @@ + @@ -315,7 +316,10 @@ - + + + + @@ -399,6 +403,7 @@ @@ -462,9 +467,9 @@ - - - + + + @@ -476,16 +481,16 @@ - + - + - + @@ -493,13 +498,13 @@ - - + + - + @@ -593,7 +598,7 @@ - + @@ -631,6 +636,7 @@ + @@ -721,7 +727,7 @@ - + @@ -800,6 +806,8 @@ --> + + @@ -924,7 +932,7 @@ - + Index: pdebuild.xml =================================================================== --- pdebuild.xml (revision 23733) +++ pdebuild.xml (working copy) @@ -78,7 +78,7 @@ - + @@ -164,12 +164,14 @@ + + @@ -195,6 +197,7 @@ + Index: publishProduct.xml =================================================================== --- publishProduct.xml (revision 23733) +++ publishProduct.xml (working copy) @@ -1,7 +1,7 @@ - + Index: runtests.sh =================================================================== --- runtests.sh (revision 23733) +++ runtests.sh (working copy) @@ -16,6 +16,8 @@ -b Tests build directory -p Clean installation directory to copy for running test suites -t Timestamp string with which to tag the results + -a Architecture to run the tests on + -o OS to run the tests on -v Make test runs output to the console _EOF_ } @@ -83,6 +85,8 @@ headless=1 fi + buildOs=linux + label=$(grep label build.properties | sed s/label=//) testframework=$(grep ^testframework build.properties | sed s/testframework=//) @@ -142,21 +146,16 @@ if [ ${headless} == 1 ]; then # Try to find Xvnc xvnc= - if [ -a /usr/bin/Xvnc ] - then - xvnc=/usr/bin/Xvnc - setupXvnc - else - if [ -a /usr/X11/bin/Xvnc ] - then - xvnc=/usr/X11/bin/Xvnc + for _xvnc in /usr/bin/Xvnc /usr/X11/bin/Xvnc /usr/local/bin/Xvnc; do + if [ -a $_xvnc ]; then + xvnc=$_xvnc setupXvnc - else - echo "Couldn't find Xvnc (/usr/bin/Xvnc or /usr/X11/bin/Xvnc). Using DISPLAY=0:0" - DISPLAY=`$HOST`:0.0 + break fi + done + if [ "x$xvnc" = "x" ]; then + echo "Couldn't find Xvnc. Using default DISPLAY from environment" fi - export DISPLAY fi } @@ -165,9 +164,11 @@ port=`expr '(' $RANDOM '*' 9 / 32767 ')' + 58` echo localhost > Xvnc.cfg echo "Setting up Xvnc on port ${port} with password VNCpassword1" - $xvnc :$port -screen 1 1024x768x32 -auth Xvnc.cfg -localhost -PasswordFile eclipse-tests-vncpwd &> Xvnc.log & + $xvnc :$port -geometry 1024x768 -depth 24 -auth Xvnc.cfg -localhost -rfbauth eclipse-tests-vncpwd &> Xvnc.log & Xvncpid=$! - DISPLAY=`$HOST`:$port + DISPLAY=$HOST:$port + export DISPLAY + } function setArch() { @@ -186,13 +187,15 @@ arch=ia64 ;; ppc) arch=ppc ;; - x86_64) + x86_64|amd64) arch=x86_64 ;; *) echo "Unrecognized architecture: $arch" 1>&2 exit 1 ;; esac echo >&2 "Architecture not specified. Assuming host architecture: $arch" + else + arch=$buildArch fi } @@ -206,7 +209,7 @@ -application org.eclipse.ant.core.antRunner \ -file $testDriver \ -Declipse-home=${eclipseHome} \ - -Dos=linux \ + -Dos=${buildOs} \ -Dws=gtk \ -Darch=${arch} \ -Dlibrary-file=$libraryXml \ @@ -214,7 +217,7 @@ -logger org.apache.tools.ant.DefaultLogger \ -vmargs \ -Duser.home=${homedir} \ - -Dosgi.os=linux \ + -Dosgi.os=${buildOs} \ -Dosgi.ws=gtk \ -Dosgi.arch=${arch} else @@ -348,7 +351,7 @@ } # Command-line arguments -while getopts "vde:gb:p:t:h" OPTION +while getopts "vde:gb:p:t:a:o:h" OPTION do case $OPTION in d) @@ -366,6 +369,12 @@ p) provisionDir=$OPTARG ;; + a) + buildArch=$OPTARG + ;; + o) + buildOs=$OPTARG + ;; h) usage exit 1