blob: 03339c57ac929f2b44e42a06b496d695c0bd9476 [file] [log] [blame]
Stephan Herrmanndcd87c12010-04-25 10:59:27 +00001<?xml version="1.0"?>
2<!--
3 Copyright (c) 2010 Stephan Herrmann and others.
4 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/epl-v10.html
8
9 Contributors:
10 Stephan Herrmann - initial API and implementation
11-->
12<project name="Main Object Teams Build and Test Automation" default="INFO">
13
14 <target name="showGivenProperties"
15 description="Show values of all properties that should be passed from our caller.">
16 <echo>Properties passed into this script:
17------------------------------------------------------------------------------
18path of eclipse SDK:
19 eclipse-app.tgz = ${eclipse-app.tgz}
Stephan Herrmannaf43e4a2013-04-29 23:19:56 +020020eclipse SDK build qualifier:
21 eclipse.sdk.qualifier = ${eclipse.sdk.qualifier}
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000022path of eclipse test framework:
Stephan Herrmann8372dc22010-06-03 22:41:05 +000023 eclipse.tests.zip= ${eclipse.tests.zip}
24path of published updates:
25 published.updates= ${published.updates}
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000026should sources be built (true|false)?
27 do.build.all = ${do.build.all}
28should test be run (true|false)?
29 do.run.tests = ${do.run.tests}
Stephan Herrmann56428e92013-02-23 12:29:56 +010030directory for tempory files during testing:
31 test.tmpDir = ${test.tmpDir}
Stephan Herrmanne73f8852016-11-01 00:23:59 +010032git working area
33 fetchCacheLocation = ${fetchCacheLocation}
Stephan Herrmanne8ce6eb2016-11-01 01:01:55 +010034path to map file (with substitutions):
35 map.file.path = ${map.file.path}
36
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000037------------------------------------------------------------------------------
38 </echo>
39 </target>
40
41 <target name="setupProperties" depends="showGivenProperties">
42
43 <dirname property="_toplevelDir" file="${ant.file}"/>
44
45 <!-- main configuration file (version dependent names etc.): -->
46 <loadproperties srcfile="${_toplevelDir}/run.properties" />
47
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000048 <!-- ======== Directories (indentation shows structure): ======== -->
49 <!-- build scripts: -->
50 <property name="OTScriptDir" value="${_toplevelDir}" />
51 <property name="buildfile" value="${OTScriptDir}/build.xml" />
52 <property name="builder-otcompiler" value="${OTScriptDir}/OT-Compiler" />
53 <property name="builder-otdt" value="${OTScriptDir}/OTDT-Build" />
54
55 <!-- directories for the build: -->
56 <property name="build.root.dir" value="${user.dir}/build-root" />
Stephan Herrmann33c26042010-06-03 10:24:16 +000057 <!-- These names are hard coded in pde-build: -->
58 <property name="buildDirectory" value="${build.root.dir}/src" />
Stephan Herrmann33c26042010-06-03 10:24:16 +000059 <property name="baseLocation" value="${build.root.dir}/eclipse" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000060
61 <!-- directories for testing: -->
62 <property name="test.root.dir" value="${user.dir}/test-root" />
63 <!-- This name is used in individual test.xml of test plugins: -->
64 <property name="test.eclipseDir" value="${test.root.dir}/eclipse" />
65
66 <!-- directories for update sites: -->
Stephan Herrmannf82b3e72015-06-09 14:51:36 +020067 <property name="compilerUpdatesDir" value="${user.dir}/updateSiteCompiler"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000068 <property name="otdtUpdatesDir" value="${user.dir}/updateSite"/>
69 <property name="testsUpdatesDirBase" value="${user.dir}/updateSiteTests"/>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +000070 <!-- will have sub directories "eclipse" and "otdt" -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000071
Stephan Herrmanneac90682013-04-29 23:29:13 +020072 <!-- ======== Insert SDK build qualifier into our configuration files: ======== -->
73 <copy file="${map.file.path}.in" tofile="${map.file.path}">
74 <filterset>
75 <filter token="SDK_QUALIFIER" value="${eclipse.sdk.qualifier}"/>
76 </filterset>
77 </copy>
Stephan Herrmann32ed6af2014-01-05 02:44:25 +010078 <!-- Insert SDK build qualifier into our configuration file: -->
79 <copy file="${OTScriptDir}/test.properties.in" tofile="${OTScriptDir}/test.properties" overwrite="true">
80 <filterset>
81 <filter token="SDK_QUALIFIER" value="${eclipse.sdk.qualifier}"/>
82 </filterset>
83 </copy>
84
85 <!-- versions of test plugins: -->
86 <loadproperties srcfile="${OTScriptDir}/test.properties" />
Stephan Herrmanneac90682013-04-29 23:29:13 +020087
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000088 <!-- ======== More Configuration Details: ======== -->
89 <!-- maybe obsolete: file prefix to distinguish output files. -->
90 <property name="file-id" value="XXX" />
91
92 <!-- Configure Java for STAGE 1 and STAGE 2 building: -->
93 <property name="vm" value="java" />
94 <property name="vm.args" value="-Xmx912m" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000095
96 <property name="installmode" value="clean" />
97
98 <property name="saxon.jar.name" value="saxon8.jar" />
99 <property name="saxon.jar.path" value="${user.home}/.ant/lib/${saxon.jar.name}" />
Stephan Herrmann2ab0c0e2016-11-01 14:21:09 +0100100 <available file="${saxon.jar.path}" property="_hasSaxon.jar" /> <!-- on HIPP this is set to true by the caller -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000101
102 <!-- ant's os.arch is slightly different than osgi's arch -->
Stephan Herrmann1a9d85a2010-05-17 22:45:31 +0000103 <condition property="arch" value="x86_64"> <!-- HACK: hard coding 64-bit architecture -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000104 <os arch="i386" />
105 </condition>
106 <condition property="arch" value="ppc64"> <!-- HACK: hard coding 64-bit architecture -->
107 <os arch="ppc" />
108 </condition>
Stephan Herrmann005fc312010-05-18 12:52:58 +0000109 <condition property="arch" value="x86_64"> <!-- Map ant's arch to OSGi arch -->
110 <os arch="amd64" />
111 </condition>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000112 <!-- if not set above, set it to os.arch -->
113 <property name="arch" value="${os.arch}" />
114
115 </target>
116
117
118 <target name="INFO">
119 <echo>Usage:
Stephan Herrmannb105b082011-05-15 00:39:56 +0000120 ant -f run.xml ot-junit-all -> runs OTDT Build and Testprocess
121 ant -f run.xml ot-junit-otdt -> runs OTDT Build and Testprocess excluding jdt tests
122 ant -f run.xml ot-junit-build -> runs just OTDT Buildprocess
123 ant -f run.xml ot-compiler-build -> just build the compiler
124 ant -f run.xml ot-junit-run -> runs just OTDT Tests w/o TestSetup
125 </echo>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000126 </target>
127
128 <target name="ot-junit-all" depends="setupProperties,checkOS" description="Build all and run all tests.">
129 <echo message="Starting BuildProcess and Testrun in ${build.root.dir}"/>
130 <antcall target="verifyAntInstall"/>
131 <antcall target="setupTests" />
132 <antcall target="runAllTests"/>
133 </target>
134
Stephan Herrmannd8c81652010-11-06 15:01:14 +0000135 <target name="ot-junit-otdt" depends="setupProperties,checkOS" description="Build all and run otdt tests.">
136 <echo message="Starting BuildProcess and Testrun in ${build.root.dir}"/>
137 <antcall target="verifyAntInstall"/>
138 <antcall target="setupTests" />
139 <antcall target="runOTDTTests"/>
140 </target>
141
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000142 <target name="ot-junit-build" depends="setupProperties,checkOS" description="build everything without running tests">
143 <echo message="Starting BuildProcess in ${build.root.dir}"/>
144 <antcall target="verifyAntInstall"/>
145 <antcall target="createOTDTEclipse"/>
Stephan Herrmann8b5e97e2013-07-30 18:44:03 +0200146 <antcall target="setupTests" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000147 </target>
148
Stephan Herrmannb59f3f02011-05-15 00:17:51 +0000149 <target name="ot-compiler-build" depends="setupProperties,checkOS" description="build only the compiler (for debugging the build)">
150 <echo message="Starting BuildProcess in ${build.root.dir}"/>
151 <antcall target="verifyAntInstall"/>
152 <antcall target="createOTCompilerEclipse"/>
153 </target>
154
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000155 <target name="ot-junit-run" depends="setupProperties,checkOS" description="Run tests without building">
156 <echo message="Starting Testrun ${test.root.dir}"/>
157 <antcall target="runAllTests" />
158 </target>
159
Stephan Herrmann8b5e97e2013-07-30 18:44:03 +0200160 <target name="ot-junit-run-ot" depends="setupProperties,checkOS" description="Run OT tests without building">
161 <echo message="Starting Testrun ${test.root.dir}"/>
162 <antcall target="runOTDTTests" />
163 </target>
164
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000165 <!-- =================== END Public Targets ==================== -->
166
167 <!-- === Setup Targets: === -->
168
169 <target name="verifyAntInstall" unless="_hasSaxon.jar">
170 <copy failonerror="true" overwrite="false" file="${OTScriptDir}/${saxon.jar.name}" tofile="${saxon.jar.path}"></copy>
171 <echo message="Needed to copy saxon8.jar to ${saxon.jar.path}. Please restart the build." />
172 <echo message="For an explanation, see http://ant.apache.org/faq.html#delegating-classloader-1.6" />
173 <fail message="See above. Please restart the build."/>
174 </target>
175
176 <!-- checks on which os ant is run, set ${os} and ${ws} accordingly -->
177 <target name="determineOS">
178 <condition property="os.isWindows">
179 <os family="windows"/>
180 </condition>
181
182 <condition property="os.isLinux">
183 <os name="Linux" />
184 </condition>
185 </target>
186
187 <target name="checkOS" depends="determineOS,windows,linux"/>
188
189 <target name="windows" if="os.isWindows">
190 <echo message="OS is Windows"/>
191 <property name="os" value="win32" />
192 <property name="ws" value="win32" />
193 </target>
194
195 <target name="linux" unless="os.isWindows" >
196 <echo message="OS is Linux"/>
197 <!-- eclipse-app.tgz is already passed from the calling script -->
198 <property name="os" value="linux" />
199 <property name="ws" value="gtk" />
200 </target>
201
202 <target name="setupForCompile" depends="checkOS" unless="_hasCreatedOTDTEclipse">
203 <antcall target="UnzipEclipse"/>
204 <antcall target="AddPluginsToEclipse"/>
205 </target>
206
207 <target name="UnzipEclipse">
208 <echo message="Extracting Eclipse (${eclipse-app.tgz}) in ${build.root.dir}..."/>
209 <mkdir dir="${build.root.dir}"/>
210 <untar compression="gzip" src="${eclipse-app.tgz}" dest="${build.root.dir}"/>
211 </target>
212
Stephan Herrmann37d869a2011-12-16 23:48:02 +0100213 <target name="AddPluginsToEclipse" description="Add git.pde.build plugins to the base Eclipse">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000214 <mkdir dir="${baseLocation}/dropins/plugins"/>
Stephan Herrmanne67e17d2011-10-27 14:36:26 +0000215 <copy file="${OTScriptDir}/lib/${git.pde.build}" todir="${baseLocation}/dropins/plugins" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000216 </target>
217
218 <!-- ==== BUILDING AND RUNNING: ==== -->
219
220 <!-- ==== BUILD STAGE 1: ==== -->
221 <!-- setting an empty inputstring is a workaround for http://issues.apache.org/bugzilla/show_bug.cgi?id=34461 -->
222 <target name="createOTCompilerEclipse" depends="setupForCompile" description="create the bootstrapping Eclipse with OT/J compiler">
223 <echo message="Invoke pdebuild for creating the OT-Compiler"/>
224 <java
225 inputstring=""
226 dir="${baseLocation}"
227 fork="true"
228 classname="org.eclipse.equinox.launcher.Main"
229 classpath="${baseLocation}/plugins/${org.eclipse.equinox.launcher_jar}">
230 <arg value="-Dosgi.ws=${ws}"/>
231 <arg value="-Dosgi.os=${os}"/>
232 <arg value="-Dosgi.arch=${arch}"/>
233 <arg value="-application"/>
234 <arg value="org.eclipse.ant.core.antRunner"/>
235 <arg value="-buildfile"/>
236 <arg value="${buildfile}"/>
237 <arg value="-Dbuild.root.dir=${build.root.dir}"/>
238 <arg value="-DbaseLocation=${baseLocation}"/>
239 <arg value="-DOTScriptDir=${OTScriptDir}"/>
240 <arg value="-Drun.eclipseScriptDir=${run.eclipseScriptDir}"/>
241 <arg value="-Dbuilder=${builder-otcompiler}"/>
242 <arg value="-D${installmode}=true"/> <!-- <- obsolete? -->
243 <arg value="-Dcomponent.short=OT-Compiler"/>
Stephan Herrmannf82b3e72015-06-09 14:51:36 +0200244 <arg value="-DotdtUpdatesDir=${compilerUpdatesDir}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000245 <arg value="-Dconfigs=*,*,*"/>
246 <arg value="-Dbaseos=${os}"/>
247 <arg value="-Dbasews=${ws}"/>
248 <arg value="-Dbasearch=${arch}"/>
249 <arg value="-Dtest.root.dir=${test.root.dir}"/>
250 <arg value="-Dtest.eclipseDir=${test.eclipseDir}"/>
251 <arg value="-DmapVersionTag=${mapVersionTag}"/>
Stephan Herrmannd8abd7a2012-04-12 22:08:50 +0200252 <arg value="-Dmap.file.path=${map.file.path}"/>
Stephan Herrmann414d0732016-11-01 11:43:14 +0100253 <arg value="-DfetchCacheLocation=${fetchCacheLocation}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000254 <arg value="-Declipse-app.tgz=${eclipse-app.tgz}"/>
255 <arg value="-Declipse.tests.zip=${eclipse.tests.zip}"/>
Stephan Herrmanna11eb202016-11-10 21:53:44 +0100256 <arg value="-Djdt.compiler.apt=${jdt.compiler.apt}"/>
257 <arg value="-Djdt.compiler.tool=${jdt.compiler.tool}"/>
Stephan Herrmanneacdfde2010-08-25 05:58:42 +0000258 <!--arg value="-verbose" /-->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000259 <jvmarg value="${vm.args}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000260 </java>
Stephan Herrmannb105b082011-05-15 00:39:56 +0000261 <!-- Now we should have an update site with the patch feature, time to install it into base: -->
Stephan Herrmannb59f3f02011-05-15 00:17:51 +0000262 <ant antfile="${OTScriptDir}/p2helper.xml" target="installFeature" dir="${baseLocation}">
263 <property name="feature" value="org.eclipse.objectteams.otdt.core.patch.feature.group"/>
Stephan Herrmannf82b3e72015-06-09 14:51:36 +0200264 <property name="sourceUpdatesDir" value="${compilerUpdatesDir}"/>
Stephan Herrmannb59f3f02011-05-15 00:17:51 +0000265 <property name="targetEclipseDir" value="${baseLocation}"/>
266 </ant>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000267 </target>
268
269 <!-- ==== BUILD STAGE 2: ==== -->
270 <!-- setting an empty inputstring is a workaround for http://issues.apache.org/bugzilla/show_bug.cgi?id=34461 -->
271 <target name="createOTDTEclipse" depends="createOTCompilerEclipse" unless="_hasCreatedOTDTEclipse">
272
273 <!-- Make org.eclipse.test.performance available while compiling test projects: -->
274 <echo message="Pre-installing Eclipse Test Framework into OTCompilerEclipse..."/>
Stephan Herrmann67cbf1c2010-09-26 09:59:15 +0000275 <mkdir dir="${testsUpdatesDirBase}/eclipse"/>
276 <unzip dest="${testsUpdatesDirBase}/eclipse" src="${eclipse.tests.zip}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000277 <ant antfile="${OTScriptDir}/p2helper.xml" target="installFeature" dir="${baseLocation}">
278 <property name="feature" value="org.eclipse.test.feature.group"/>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000279 <property name="sourceUpdatesDir" value="${testsUpdatesDirBase}/eclipse"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000280 <property name="targetEclipseDir" value="${baseLocation}"/>
281 </ant>
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000282
283 <!-- pre-load updateSite with published releases: -->
Stephan Herrmann0c9b5722010-06-04 22:13:03 +0000284 <mkdir dir="${otdtUpdatesDir}/plugins"/>
285 <mkdir dir="${otdtUpdatesDir}/features"/>
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200286<!-- don't use previous artifacts during the transition to OTDRE:
Stephan Herrmann0c9b5722010-06-04 22:13:03 +0000287 <exec executable="/bin/sh">
288 <arg value="-c"/>
289 <arg value="ln -s ${published.updates}/features/* ${otdtUpdatesDir}/features/"/>
290 </exec>
291 <exec executable="/bin/sh">
292 <arg value="-c"/>
293 <arg value="ln -s ${published.updates}/plugins/* ${otdtUpdatesDir}/plugins/"/>
294 </exec>
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200295-->
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000296 <!-- pre-load category-less metadata: -->
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200297<!--
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000298 <copy failonerror="false" flatten="true" toDir="${otdtUpdatesDir}">
299 <fileset dir="${user.dir}/metadata">
300 <include name="*.xml"/>
301 </fileset>
302 </copy>
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200303-->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000304
305 <echo message="Invoke pdebuild for creating a full OTDT"/>
306 <java
307 inputstring=""
308 dir="${baseLocation}"
309 fork="true"
310 classname="org.eclipse.equinox.launcher.Main"
311 classpath="${baseLocation}/plugins/${org.eclipse.equinox.launcher_jar}">
312 <arg value="-clean"/>
313 <arg value="-Dosgi.ws=${ws}"/>
314 <arg value="-Dosgi.os=${os}"/>
315 <arg value="-Dosgi.arch=${arch}"/>
316 <arg value="-application"/>
317 <arg value="org.eclipse.ant.core.antRunner"/>
318 <arg value="-buildfile"/>
319 <arg value="${buildfile}"/>
320 <arg value="-Dbuild.root.dir=${build.root.dir}"/>
321 <arg value="-DbaseLocation=${baseLocation}"/>
322 <arg value="-Drun.eclipseScriptDir=${run.eclipseScriptDir}"/>
323 <arg value="-DOTScriptDir=${OTScriptDir}"/>
324 <arg value="-Dbuilder=${builder-otdt}"/>
325 <arg value="-D${installmode}=true"/>
326 <arg value="-Dcomponent.short=OTDT-Build"/>
327 <arg value="-DotdtUpdatesDir=${otdtUpdatesDir}"/>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000328 <arg value="-DtestsUpdatesDirBase=${testsUpdatesDirBase}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000329 <arg value="-Dbaseos=${os}"/>
330 <arg value="-Dbasews=${ws}"/>
331 <arg value="-Dbasearch=${arch}"/>
332 <arg value="-Dtest.root.dir=${test.root.dir}"/>
333 <arg value="-Dtest.eclipseDir=${test.eclipseDir}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000334 <arg value="-DmapVersionTag=${mapVersionTag}"/>
Stephan Herrmann414d0732016-11-01 11:43:14 +0100335 <arg value="-Dmap.file.path=${map.file.path}"/>
336 <arg value="-DfetchCacheLocation=${fetchCacheLocation}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000337 <arg value="-Ddo.run.tests=${do.run.tests}"/>
338 <arg value="-Ddo.build.all=${do.build.all}"/>
339 <arg value="-Declipse-app.tgz=${eclipse-app.tgz}"/>
340 <arg value="-Declipse.tests.zip=${eclipse.tests.zip}"/>
Stephan Herrmanna11eb202016-11-10 21:53:44 +0100341 <arg value="-Djdt.compiler.apt=${jdt.compiler.apt}"/>
342 <arg value="-Djdt.compiler.tool=${jdt.compiler.tool}"/>
Stephan Herrmanneacdfde2010-08-25 05:58:42 +0000343 <!--arg value="-verbose" /-->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000344 <jvmarg value="${vm.args}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000345 <!-- arg value="${verboseAnt}"/ -->
346 <!-- arg value="-debug" / -->
347 </java>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000348 <!-- At this point a local update site exists, thanks to p2gathering=true -->
Stephan Herrmann99e184d2010-06-11 17:27:25 +0000349
350 <ant antfile="${OTScriptDir}/p2helper.xml" target="patchMetadata" dir="${otdtUpdatesDir}"/>
351
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000352 <property name="_hasCreatedOTDTEclipse" value="true" />
353 </target>
354
355 <!-- TESTING at STAGE 3: -->
356 <target name="setupTests" depends="createOTDTEclipse" description="Install the tests into an fresh OTDT">
357 <available file="${buildDirectory}/label.properties" property="label.properties.exists" />
358 <ant antfile="${OTScriptDir}/test.xml" target="setupTests" dir="${build.root.dir}">
359 <property name="os" value="${os}" />
360 <property name="ws" value="${ws}" />
361 <property name="arch" value="${arch}" />
362 <property name="baseos" value="${os}" />
363 <property name="basews" value="${ws}" />
364 <property name="basearch" value="${arch}" />
365 <property name="eclipse-app.tgz" value="${eclipse-app.tgz}" />
366 <property file="${buildDirectory}/label.properties" />
367 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000368 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000369 </ant>
370 </target>
371
372 <target name="runAllTests" description="Delegate to the next level script to perform the actual testing.">
373 <ant antfile="${OTScriptDir}/test.xml" target="all" dir="${build.root.dir}">
374 <property name="os" value="${os}" />
375 <property name="ws" value="${ws}" />
376 <property name="arch" value="${arch}" />
377 <property name="baseos" value="${os}" />
378 <property name="basews" value="${ws}" />
379 <property name="basearch" value="${arch}" />
380 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000381 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmann56428e92013-02-23 12:29:56 +0100382 <property name="test.tmpDir" value="${test.tmpDir}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000383 <property name="vmargs" value="${vmargs}" />
384 </ant>
385 </target>
386
Stephan Herrmannd8c81652010-11-06 15:01:14 +0000387 <target name="runOTDTTests" description="Delegate to the next level script to perform the actual testing.">
388 <ant antfile="${OTScriptDir}/test.xml" target="otdt-tests" dir="${build.root.dir}">
389 <property name="os" value="${os}" />
390 <property name="ws" value="${ws}" />
391 <property name="arch" value="${arch}" />
392 <property name="baseos" value="${os}" />
393 <property name="basews" value="${ws}" />
394 <property name="basearch" value="${arch}" />
395 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
396 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmann56428e92013-02-23 12:29:56 +0100397 <property name="test.tmpDir" value="${test.tmpDir}"/>
Stephan Herrmannd8c81652010-11-06 15:01:14 +0000398 <property name="vmargs" value="${vmargs}" />
399 </ant>
400 </target>
401
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000402 <!-- currently unused target name="collectResults">
Stephan Herrmanna1eeb302013-04-29 23:51:25 +0200403 <ant target="collect" antfile="${test.root.dir}/library.xml" dir="${otresults}">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000404 <property name="includes" value="org.*.xml"/>
405 <property name="output-file" value="AllTestSuites.xml"/>
406 </ant>
407 </target -->
408
409</project>