Bug 259146 [releng] add some automated testing to the build
The new runBuild script
diff --git a/org.eclipse.e4.builder/scripts/runBuild.sh b/org.eclipse.e4.builder/scripts/runBuild.sh
index 1e72bb0..e92d25f 100755
--- a/org.eclipse.e4.builder/scripts/runBuild.sh
+++ b/org.eclipse.e4.builder/scripts/runBuild.sh
@@ -7,6 +7,13 @@
buildtime=$( date +%H%M )
#builddate=20081215
#buildtime=1845
+arch="x86"
+archProp=""
+processor=$( uname -p )
+if [ $processor = ppc -o $processor = ppc64 ]; then
+ archProp="-ppc"
+ arch="ppc"
+fi
projRoot=':pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse'
@@ -52,7 +59,7 @@
cd $supportDir/org.eclipse.e4.builder/scripts
-#eclipseIBuild=$( ls -d /home/data/httpd/download.eclipse.org/eclipse/downloads/drops/I*/eclipse-SDK-I*-linux-gtk.tar.gz | tail -1 | cut -d/ -f9 )
+#eclipseIBuild=$( ls -d /home/data/httpd/download.eclipse.org/eclipse/downloads/drops/I*/eclipse-SDK-I*-linux-gtk${archProp}.tar.gz | tail -1 | cut -d/ -f9 )
eclipseIBuild=I20081211-1908
echo "[start] [`date +%H\:%M\:%S`] setting eclipse $eclipseIBuild"
@@ -107,7 +114,7 @@
unzip $buildDirectory/../eclipse-Automated-Tests-${eclipseIBuild}.zip
cd eclipse-testing
-cp $buildDirectory/../eclipse-SDK-${eclipseIBuild}-linux-gtk.tar.gz .
+cp $buildDirectory/../eclipse-SDK-${eclipseIBuild}-linux-gtk${archProp}.tar.gz .
cp $buildDirectory/../emf-runtime-2.4.1.zip .
cat $buildDirectory/test.properties | grep -v org.eclipse.core.tests.resources.prerequisite.testplugins >> test.properties
cat $buildDirectory/label.properties >> label.properties
@@ -120,7 +127,7 @@
cp $supportDir/org.eclipse.e4.builder/builder/general/tests/* .
-./runtests -os linux -ws gtk -arch x86 coreresources
+./runtests -os linux -ws gtk -arch ${arch} coreresources
mkdir -p $buildDirectory/I$buildTimestamp/results
cp -r results/* $buildDirectory/I$buildTimestamp/results