Skip to content
Snippets Groups Projects
Commit 0987a07c authored by david_williams's avatar david_williams
Browse files

[174735] Patch for Dali tests builder

parent 116353d1
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<property <property
name="archiveName" name="archiveName"
value="wtp-jpa-Automated-Tests-${buildLabel}.zip" /> value="wtp-jpa-Automated-Tests-${buildLabel}.zip" />
<ant <ant
antfile="${wtp.builder.home}/scripts/build/buildutilities.xml" antfile="${wtp.builder.home}/scripts/build/buildutilities.xml"
target="unpackUpdateJarsAndCreateZippedPackages"> target="unpackUpdateJarsAndCreateZippedPackages">
...@@ -87,27 +87,47 @@ ...@@ -87,27 +87,47 @@
<property <property
name="mapVersionTag" name="mapVersionTag"
value="HEAD" /> value="HEAD" />
<property
name="cvsPackage" <!-- get releng/maps -->
value="releng.dali" /> <antcall target="checkOutMaps">
<param
name="cvsPackage"
value="releng" />
</antcall>
<!-- get releng.dali/maps -->
<antcall target="checkOutMaps">
<param
name="cvsPackage"
value="releng.dali" />
</antcall>
<!-- tag the map files project -->
<antcall target="tagMapFiles">
<param
name="mapCvsRoot"
value="${mapCvsRoot}" />
</antcall>
</target>
<!-- ===================================================================== -->
<!-- Check out the cvsPackage -->
<!-- ===================================================================== -->
<target name="checkOutMaps">
<echo message="${mapCvsRoot} ${mapVersionTag} " /> <echo message="${mapCvsRoot} ${mapVersionTag} " />
<echo message="cvsPackage = ${cvsPackage} " /> <echo message="cvsPackage = ${cvsPackage} " />
<cvs <cvs
cvsRoot="${mapCvsRoot}" cvsRoot="${mapCvsRoot}"
package="${cvsPackage}" package="${cvsPackage}"
dest="${buildDirectory}/maps" dest="${buildDirectory}/maps"
tag="${mapVersionTag}" /> tag="${mapVersionTag}" />
<!--tag the map files project-->
<antcall target="tagMapFiles">
<param
name="mapCvsRoot"
value="${mapCvsRoot}" />
</antcall>
</target> </target>
<target <!-- ===================================================================== -->
name="tagMapFiles" <!-- Tag Map Files mapCvsRoot -->
<!-- ===================================================================== -->
<target name="tagMapFiles"
if="tagMaps"> if="tagMaps">
<cvs <cvs
cvsRoot="${mapCvsRoot}" cvsRoot="${mapCvsRoot}"
...@@ -129,13 +149,26 @@ ...@@ -129,13 +149,26 @@
property="component.dir" /> property="component.dir" />
<echo message="ant.file: ${ant.file}" /> <echo message="ant.file: ${ant.file}" />
<echo message="component.dir: ${component.dir}" /> <echo message="component.dir: ${component.dir}" />
<property
name="dependencies.combined"
value="dependencies.combined.properties" />
<!-- Combine releng and releng.dali -->
<delete file="${buildDirectory}/maps/releng.dali/maps/${dependencies.combined}" failonerror="false" />
<concat destfile="${buildDirectory}/maps/releng.dali/maps/${dependencies.combined}">
<fileset dir="${buildDirectory}/maps">
<include name="releng/maps/dependencies.properties"/>
<include name="releng.dali/maps/dependencies.properties"/>
</fileset>
</concat>
<ant <ant
antfile="${component.dir}/dependency.xml" antfile="${component.dir}/dependency.xml"
target="get"> target="get">
<property <property
name="dependency.properties" name="dependency.properties"
value="${buildDirectory}/maps/releng/maps/dependencies.properties" /> value="${buildDirectory}/maps/releng.dali/maps/${dependencies.combined}" />
<property <property
name="base.install.dir" name="base.install.dir"
value="${buildRoot}" /> value="${buildRoot}" />
...@@ -150,30 +183,7 @@ ...@@ -150,30 +183,7 @@
<property <property
name="featuresRecursively" name="featuresRecursively"
value="true" /> value="true" />
<ant
antfile="${genericTargets}"
dir="${pde.build.scripts}"
target="fetchElement">
<property
name="type"
value="feature" />
<property
name="id"
value="org.eclipse.jpa.tests" />
</ant>
<ant
antfile="${genericTargets}"
dir="${pde.build.scripts}"
target="fetchElement">
<property
name="type"
value="feature" />
<property
name="id"
value="org.eclipse.wst" />
</ant>
<ant <ant
antfile="${genericTargets}" antfile="${genericTargets}"
dir="${pde.build.scripts}" dir="${pde.build.scripts}"
...@@ -183,7 +193,7 @@ ...@@ -183,7 +193,7 @@
value="feature" /> value="feature" />
<property <property
name="id" name="id"
value="org.eclipse.jst" /> value="org.eclipse.jst.jpa.feature" />
</ant> </ant>
</target> </target>
......
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
<ant antfile="${wtp.builder.home}/scripts/build/label.xml" /> <ant antfile="${wtp.builder.home}/scripts/build/label.xml" />
<property file="${wtp.builder.home}/build.properties" /> <property file="${wtp.builder.home}/build.properties" />
<property file="${buildDirectory}/label.properties" /> <property file="${buildDirectory}/label.properties" />
<property
name="dependencies.combined"
value="dependencies.combined.properties" />
<mkdir dir="${testRoot}" /> <mkdir dir="${testRoot}" />
<mkdir dir="${testRoot}/results" /> <mkdir dir="${testRoot}/results" />
...@@ -35,11 +38,11 @@ ...@@ -35,11 +38,11 @@
<echo message="BASEOS: ${env.BASEOS} BASEWS: ${env.BASEWS} BASEARCH: ${env.BASEARCH} " /> <echo message="BASEOS: ${env.BASEOS} BASEWS: ${env.BASEWS} BASEARCH: ${env.BASEARCH} " />
<ant antfile="${test.component.dir}/testdependency.xml" target="get"> <ant antfile="${test.component.dir}/testdependency.xml" target="get">
<property name="dependency.properties" value="${buildDirectory}/maps/releng.dali/maps/dependencies.properties" /> <property name="dependency.properties" value="${buildDirectory}/maps/releng.dali/maps/${dependencies.combined}" />
<property name="base.install.dir" value="${testRoot}" /> <property name="base.install.dir" value="${testRoot}" />
</ant> </ant>
<unzip dest="${testRoot}" src="${buildDirectory}/${buildLabel}/wtp-jpa-${buildLabel}.zip" overwrite="true" />
<unzip dest="${testRoot}" src="${buildDirectory}/${buildLabel}/wtp-jpa-Automated-Tests-${buildLabel}.zip" overwrite="true" /> <antcall target="unzipTests" />
<antcall target="runTestEclipse"> <antcall target="runTestEclipse">
<param name="testTarget" value="all" /> <param name="testTarget" value="all" />
...@@ -48,11 +51,33 @@ ...@@ -48,11 +51,33 @@
<param name="testTarget" value="all" /> <param name="testTarget" value="all" />
</antcall> </antcall>
</target> </target>
<target name="unzipTests">
<!--unzip the builds and junit tests
we use 'unzip' here, so we can continue on error
(such as if zip was not created, due to other failures or options).
-->
<exec
dir="${buildDirectory}/${buildLabel}"
executable="unzip"
failonerror="false">
<arg line="-o -qq wtp-jpa-${buildLabel}.zip -d ${testRoot}" />
</exec>
<exec
dir="${buildDirectory}/${buildLabel}"
executable="unzip"
failonerror="false">
<arg line="-o -qq wtp-jpa-Automated-Tests-${buildLabel}.zip -d ${testRoot}" />
</exec>
</target>
<target name="runTestEclipse"> <target name="runTestEclipse">
<java taskname="test-dali-${testTarget}" jar="${testRoot}/eclipse/startup.jar" fork="true" failonerror="true" timeout="3600000" output="${testRoot}/results/consolelogs/dalitestlog.txt" dir="${testRoot}">
<java taskname="test-dali-${testTarget}" jar="${testRoot}/eclipse/startup.jar" fork="true" failonerror="true" timeout="3600000" output="${testRoot}/results/consolelogs/dalitestlog.txt" dir="${testRoot}">
<jvmarg value="-Dosgi.ws=${env.BASEWS}" /> <jvmarg value="-Dosgi.ws=${env.BASEWS}" />
<jvmarg value="-Dosgi.os=${env.BASEOS}" /> <jvmarg value="-Dosgi.os=${env.BASEOS}" />
<jvmarg value="-Dosgi.arch=${env.BASEARCH}" /> <jvmarg value="-Dosgi.arch=${env.BASEARCH}" />
......
<?xml version="1.0"?>
<!-- ======================================================================
Properties that must be passed to this script:
base.install.dir
dependencyTargets
local.cache.dir
dependency.properties
====================================================================== -->
<project
name="test"
default="get">
<target name="get">
<antcall target="getAndInstall">
<param name="groupId" value="orbitthirdparty" />
</antcall>
<antcall target="getAndInstall">
<param
name="groupId"
value="emf" />
</antcall>
<antcall target="getAndInstall">
<param
name="groupId"
value="gef" />
</antcall>
<antcall target="getAndInstall">
<param
name="groupId"
value="dtp" />
</antcall>
<antcall target="getAndInstall">
<param
name="groupId"
value="eclipse" />
</antcall>
<antcall target="getAndInstall">
<param
name="groupId"
value="eclipseTestFramework" />
</antcall>
<antcall target="getAndInstallWSTTests" />
</target>
<target name="getAndInstall" unless="skipGetAndInstall">
<ant
antfile="${dependencyTargets}"
target="checkDependency">
<property
name="groupId"
value="${groupId}" />
</ant>
<ant
antfile="${dependencyTargets}"
target="installDependency">
<property
name="groupId"
value="${groupId}" />
<property
name="install.destination"
value="${base.install.dir}" />
</ant>
</target>
<target name="getAndInstallWSTTests">
<mkdir dir="${baseLocation}/plugins/_temp_"/>
<copy todir="${baseLocation}/plugins/_temp_">
<fileset dir="${baseLocation}/plugins">
<include name="org.eclipse.wst.common.tests.collector*/**"/>
</fileset>
<mapper type="merge" to="wst.common.tests.collector"/>
</copy>
<available property="skipGetAndInstall"
value="true"
file="${baseLocation}/plugins/_temp_/wst.common.tests.collector"
type="file" />
<delete dir="${baseLocation}/plugins/_temp_" failonerror="false" />
<antcall target="getAndInstall">
<param
name="groupId"
value="wstAutomatedTests" />
</antcall>
</target>
</project>
org.eclipse.jst.jpa.utility.tests=org.eclipse.jst.jpa.utility.tests_1.0.0 org.eclipse.jst.jpa.utility.tests=org.eclipse.jst.jpa.utility.tests_1.0.0
org.eclipse.jst.jpa.core.tests=org.eclipse.jst.jpa.core.tests_1.0.0
# Performance database properties
#perf.dbloc=/home/eteration/build-home/derby/wtpPerfDB
perf.dbloc=wtp-perf-db
perf.config=wtpbuild
perf.jvm=sun1.4.2
perf.ref.config=wtpbuild
perf.ref.buildId=I20050513-0702
perf.ref.jvm=sun1.4.2
# SWT
#swt.lib.path=org.eclipse.swt.motif_3.1.0/os/linux/x86
swt.lib.path=org.eclipse.swt.win32_3.1.0/os/win32/x86
\ No newline at end of file
...@@ -82,18 +82,28 @@ ...@@ -82,18 +82,28 @@
<param name="report" value="org.eclipse.jst.jpa.utility.tests" /> <param name="report" value="org.eclipse.jst.jpa.utility.tests" />
</antcall> </antcall>
</target> </target>
<target name="dali-core-tests" description="Runs the org.eclipse.jst.jpa.core.tests test.xml">
<antcall target="runtests">
<param name="testPlugin" value="${org.eclipse.jst.jpa.core.tests}" />
<param name="report" value="org.eclipse.jst.jpa.core.tests" />
</antcall>
</target>
<target name="all" depends="init"> <target name="all" depends="init">
<echo message="Starting Dali Unit Tests"/> <echo message="Starting Dali Unit Tests"/>
<echo message="Starting dali-utility-tests"/> <echo message="Starting dali-utility-tests"/>
<antcall target="dali-utility-tests" /> <antcall target="dali-utility-tests" />
<echo message="Starting dali-core-tests"/>
<antcall target="dali-core-tests" />
<echo message="Ended Dali Unit Tests"/> <echo message="Ended Dali Unit Tests"/>
</target> </target>
<target name="setupPerformance"> <target name="setupPerformance">
<delete dir="${perfDir}"/> <delete dir="${perfDir}"/>
<mkdir dir="${perfDir}"/> <mkdir dir="${perfDir}"/>
......
...@@ -11,21 +11,24 @@ ...@@ -11,21 +11,24 @@
<target name="get"> <target name="get">
<antcall target="getAndInstall">
<param name="groupId" value="orbitthirdparty" />
</antcall>
<antcall target="getAndInstall"> <antcall target="getAndInstall">
<param name="groupId" value="emf" /> <param name="groupId" value="emf" />
</antcall> </antcall>
<antcall target="getAndInstall"> <antcall target="getAndInstall">
<param name="groupId" value="gef" /> <param name="groupId" value="gef" />
</antcall> </antcall>
<antcall target="getAndInstall"> <antcall target="getAndInstall">
<param name="groupId" value="jem" /> <param name="groupId" value="dtp" />
</antcall> </antcall>
<antcall target="getAndInstall"> <antcall target="getAndInstall">
<param name="groupId" value="wtp" /> <param name="groupId" value="wtp" />
</antcall> </antcall>
<antcall target="getAndInstall"> <antcall target="getAndInstall">
<param name="groupId" value="dtp" /> <param name="groupId" value="wstAutomatedTests" />
</antcall> </antcall>
<antcall target="getAndInstall"> <antcall target="getAndInstall">
<param name="groupId" value="eclipse" /> <param name="groupId" value="eclipse" />
</antcall> </antcall>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment