blob: 0399973fa6ae2d493e2c2d97b4ff1492364335f5 [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------------------------------------------------------------------------------
Stephan Herrmann5acccae2019-04-13 17:46:35 +020018path of boot eclipse SDK:
19 eclipse-boot.tgz = ${eclipse-boot.tgz}
20path of base eclipse SDK:
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000021 eclipse-app.tgz = ${eclipse-app.tgz}
Stephan Herrmannaf43e4a2013-04-29 23:19:56 +020022eclipse SDK build qualifier:
23 eclipse.sdk.qualifier = ${eclipse.sdk.qualifier}
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000024path of eclipse test framework:
Stephan Herrmann8372dc22010-06-03 22:41:05 +000025 eclipse.tests.zip= ${eclipse.tests.zip}
26path of published updates:
27 published.updates= ${published.updates}
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000028should sources be built (true|false)?
29 do.build.all = ${do.build.all}
30should test be run (true|false)?
31 do.run.tests = ${do.run.tests}
Stephan Herrmann56428e92013-02-23 12:29:56 +010032directory for tempory files during testing:
33 test.tmpDir = ${test.tmpDir}
Stephan Herrmanne73f8852016-11-01 00:23:59 +010034git working area
35 fetchCacheLocation = ${fetchCacheLocation}
Stephan Herrmanne8ce6eb2016-11-01 01:01:55 +010036path to map file (with substitutions):
37 map.file.path = ${map.file.path}
38
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000039------------------------------------------------------------------------------
40 </echo>
41 </target>
42
43 <target name="setupProperties" depends="showGivenProperties">
44
45 <dirname property="_toplevelDir" file="${ant.file}"/>
46
47 <!-- main configuration file (version dependent names etc.): -->
48 <loadproperties srcfile="${_toplevelDir}/run.properties" />
49
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000050 <!-- ======== Directories (indentation shows structure): ======== -->
51 <!-- build scripts: -->
52 <property name="OTScriptDir" value="${_toplevelDir}" />
53 <property name="buildfile" value="${OTScriptDir}/build.xml" />
54 <property name="builder-otcompiler" value="${OTScriptDir}/OT-Compiler" />
55 <property name="builder-otdt" value="${OTScriptDir}/OTDT-Build" />
Stephan Herrmann89245632019-04-13 20:05:41 +020056
57 <!-- directories for testing: -->
58 <property name="test.root.dir" value="${user.dir}/test-root" />
59 <!-- This name is used in individual test.xml of test plugins: -->
60 <property name="test.eclipseDir" value="${test.root.dir}/eclipse" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000061
62 <!-- directories for the build: -->
63 <property name="build.root.dir" value="${user.dir}/build-root" />
Stephan Herrmann33c26042010-06-03 10:24:16 +000064 <!-- These names are hard coded in pde-build: -->
65 <property name="buildDirectory" value="${build.root.dir}/src" />
Stephan Herrmann89245632019-04-13 20:05:41 +020066 <property name="baseLocation" value="${test.eclipseDir}" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000067
68 <!-- directories for update sites: -->
Stephan Herrmannb99a8e32018-06-08 22:50:19 +020069 <!-- TODO: extract compilerUpdatesDir to prerequisistes? -->
Stephan Herrmannae580b92018-06-08 22:31:20 +020070 <property name="compilerUpdatesDir" value="http://download.eclipse.org/objectteams/updates/ot2.7/compiler"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000071 <property name="otdtUpdatesDir" value="${user.dir}/updateSite"/>
72 <property name="testsUpdatesDirBase" value="${user.dir}/updateSiteTests"/>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +000073 <!-- will have sub directories "eclipse" and "otdt" -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000074
Stephan Herrmanneac90682013-04-29 23:29:13 +020075 <!-- ======== Insert SDK build qualifier into our configuration files: ======== -->
76 <copy file="${map.file.path}.in" tofile="${map.file.path}">
77 <filterset>
78 <filter token="SDK_QUALIFIER" value="${eclipse.sdk.qualifier}"/>
79 </filterset>
80 </copy>
Stephan Herrmann32ed6af2014-01-05 02:44:25 +010081 <!-- Insert SDK build qualifier into our configuration file: -->
82 <copy file="${OTScriptDir}/test.properties.in" tofile="${OTScriptDir}/test.properties" overwrite="true">
83 <filterset>
84 <filter token="SDK_QUALIFIER" value="${eclipse.sdk.qualifier}"/>
85 </filterset>
86 </copy>
87
88 <!-- versions of test plugins: -->
89 <loadproperties srcfile="${OTScriptDir}/test.properties" />
Stephan Herrmanneac90682013-04-29 23:29:13 +020090
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000091 <!-- ======== More Configuration Details: ======== -->
92 <!-- maybe obsolete: file prefix to distinguish output files. -->
93 <property name="file-id" value="XXX" />
94
95 <!-- Configure Java for STAGE 1 and STAGE 2 building: -->
96 <property name="vm" value="java" />
97 <property name="vm.args" value="-Xmx912m" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000098
99 <property name="installmode" value="clean" />
100
101 <property name="saxon.jar.name" value="saxon8.jar" />
102 <property name="saxon.jar.path" value="${user.home}/.ant/lib/${saxon.jar.name}" />
Stephan Herrmann2ab0c0e2016-11-01 14:21:09 +0100103 <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 +0000104
105 <!-- ant's os.arch is slightly different than osgi's arch -->
Stephan Herrmann1a9d85a2010-05-17 22:45:31 +0000106 <condition property="arch" value="x86_64"> <!-- HACK: hard coding 64-bit architecture -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000107 <os arch="i386" />
108 </condition>
109 <condition property="arch" value="ppc64"> <!-- HACK: hard coding 64-bit architecture -->
110 <os arch="ppc" />
111 </condition>
Stephan Herrmann005fc312010-05-18 12:52:58 +0000112 <condition property="arch" value="x86_64"> <!-- Map ant's arch to OSGi arch -->
113 <os arch="amd64" />
114 </condition>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000115 <!-- if not set above, set it to os.arch -->
116 <property name="arch" value="${os.arch}" />
117
118 </target>
119
120
121 <target name="INFO">
122 <echo>Usage:
Stephan Herrmannb105b082011-05-15 00:39:56 +0000123 ant -f run.xml ot-junit-all -> runs OTDT Build and Testprocess
124 ant -f run.xml ot-junit-otdt -> runs OTDT Build and Testprocess excluding jdt tests
125 ant -f run.xml ot-junit-build -> runs just OTDT Buildprocess
126 ant -f run.xml ot-compiler-build -> just build the compiler
127 ant -f run.xml ot-junit-run -> runs just OTDT Tests w/o TestSetup
128 </echo>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000129 </target>
130
131 <target name="ot-junit-all" depends="setupProperties,checkOS" description="Build all and run all tests.">
132 <echo message="Starting BuildProcess and Testrun in ${build.root.dir}"/>
133 <antcall target="verifyAntInstall"/>
134 <antcall target="setupTests" />
135 <antcall target="runAllTests"/>
136 </target>
137
Stephan Herrmannd8c81652010-11-06 15:01:14 +0000138 <target name="ot-junit-otdt" depends="setupProperties,checkOS" description="Build all and run otdt tests.">
139 <echo message="Starting BuildProcess and Testrun in ${build.root.dir}"/>
140 <antcall target="verifyAntInstall"/>
141 <antcall target="setupTests" />
142 <antcall target="runOTDTTests"/>
143 </target>
144
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000145 <target name="ot-junit-build" depends="setupProperties,checkOS" description="build everything without running tests">
146 <echo message="Starting BuildProcess in ${build.root.dir}"/>
147 <antcall target="verifyAntInstall"/>
148 <antcall target="createOTDTEclipse"/>
Stephan Herrmann8b5e97e2013-07-30 18:44:03 +0200149 <antcall target="setupTests" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000150 </target>
151
Stephan Herrmannb59f3f02011-05-15 00:17:51 +0000152 <target name="ot-compiler-build" depends="setupProperties,checkOS" description="build only the compiler (for debugging the build)">
153 <echo message="Starting BuildProcess in ${build.root.dir}"/>
154 <antcall target="verifyAntInstall"/>
155 <antcall target="createOTCompilerEclipse"/>
156 </target>
157
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000158 <target name="ot-junit-run" depends="setupProperties,checkOS" description="Run tests without building">
159 <echo message="Starting Testrun ${test.root.dir}"/>
160 <antcall target="runAllTests" />
161 </target>
162
Stephan Herrmann8b5e97e2013-07-30 18:44:03 +0200163 <target name="ot-junit-run-ot" depends="setupProperties,checkOS" description="Run OT tests without building">
164 <echo message="Starting Testrun ${test.root.dir}"/>
165 <antcall target="runOTDTTests" />
166 </target>
167
Stephan Herrmanneb0f2922018-08-09 13:27:26 +0200168 <target name="ot-junit-run-onlyone" depends="setupProperties,checkOS" description="Run OT tests without building">
169 <echo message="Starting Testrun ${test.root.dir}"/>
Stephan Herrmanna887ab72018-08-09 14:11:12 +0200170 <antcall target="setupTests" />
Stephan Herrmanneb0f2922018-08-09 13:27:26 +0200171 <antcall target="runOnlyoneTests" />
172 </target>
173
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000174 <!-- =================== END Public Targets ==================== -->
175
176 <!-- === Setup Targets: === -->
177
178 <target name="verifyAntInstall" unless="_hasSaxon.jar">
179 <copy failonerror="true" overwrite="false" file="${OTScriptDir}/${saxon.jar.name}" tofile="${saxon.jar.path}"></copy>
180 <echo message="Needed to copy saxon8.jar to ${saxon.jar.path}. Please restart the build." />
181 <echo message="For an explanation, see http://ant.apache.org/faq.html#delegating-classloader-1.6" />
182 <fail message="See above. Please restart the build."/>
183 </target>
184
185 <!-- checks on which os ant is run, set ${os} and ${ws} accordingly -->
186 <target name="determineOS">
187 <condition property="os.isWindows">
188 <os family="windows"/>
189 </condition>
190
191 <condition property="os.isLinux">
192 <os name="Linux" />
193 </condition>
194 </target>
195
196 <target name="checkOS" depends="determineOS,windows,linux"/>
197
198 <target name="windows" if="os.isWindows">
199 <echo message="OS is Windows"/>
200 <property name="os" value="win32" />
201 <property name="ws" value="win32" />
202 </target>
203
204 <target name="linux" unless="os.isWindows" >
205 <echo message="OS is Linux"/>
206 <!-- eclipse-app.tgz is already passed from the calling script -->
207 <property name="os" value="linux" />
208 <property name="ws" value="gtk" />
209 </target>
210
211 <target name="setupForCompile" depends="checkOS" unless="_hasCreatedOTDTEclipse">
212 <antcall target="UnzipEclipse"/>
213 <antcall target="AddPluginsToEclipse"/>
214 </target>
215
216 <target name="UnzipEclipse">
Stephan Herrmann5acccae2019-04-13 17:46:35 +0200217 <echo message="Extracting Boot Eclipse (${eclipse-boot.tgz}) in ${build.root.dir}..."/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000218 <mkdir dir="${build.root.dir}"/>
Stephan Herrmann5acccae2019-04-13 17:46:35 +0200219 <untar compression="gzip" src="${eclipse-boot.tgz}" dest="${build.root.dir}"/>
Stephan Herrmann89245632019-04-13 20:05:41 +0200220 <untar compression="gzip" src="${eclipse-app.tgz}" dest="${test.eclipseDir}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000221 </target>
222
Stephan Herrmann37d869a2011-12-16 23:48:02 +0100223 <target name="AddPluginsToEclipse" description="Add git.pde.build plugins to the base Eclipse">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000224 <mkdir dir="${baseLocation}/dropins/plugins"/>
Stephan Herrmanne67e17d2011-10-27 14:36:26 +0000225 <copy file="${OTScriptDir}/lib/${git.pde.build}" todir="${baseLocation}/dropins/plugins" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000226 </target>
227
228 <!-- ==== BUILDING AND RUNNING: ==== -->
229
230 <!-- ==== BUILD STAGE 1: ==== -->
231 <!-- setting an empty inputstring is a workaround for http://issues.apache.org/bugzilla/show_bug.cgi?id=34461 -->
232 <target name="createOTCompilerEclipse" depends="setupForCompile" description="create the bootstrapping Eclipse with OT/J compiler">
233 <echo message="Invoke pdebuild for creating the OT-Compiler"/>
Stephan Herrmannb99a8e32018-06-08 22:50:19 +0200234<!-- Re-use the compiler from the previous published build: -->
Stephan Herrmannf500dd12018-06-07 15:10:22 +0200235 <ant antfile="${OTScriptDir}/p2helper.xml" target="installFeatureFromUrl" dir="${baseLocation}">
Stephan Herrmannb59f3f02011-05-15 00:17:51 +0000236 <property name="feature" value="org.eclipse.objectteams.otdt.core.patch.feature.group"/>
Stephan Herrmannae580b92018-06-08 22:31:20 +0200237 <property name="sourceUpdatesUrl" value="${compilerUpdatesDir}"/>
Stephan Herrmannb59f3f02011-05-15 00:17:51 +0000238 <property name="targetEclipseDir" value="${baseLocation}"/>
239 </ant>
Stephan Herrmann7a271122018-06-07 15:22:27 +0200240 <delete>
Stephan Herrmannae580b92018-06-08 22:31:20 +0200241 <fileset dir="${baseLocation}/plugins/" includes="org.eclipse.jdt.core_*.v* org.eclipse.jdt.core.source_*.v*" />
Stephan Herrmann7a271122018-06-07 15:22:27 +0200242 </delete>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000243 </target>
244
245 <!-- ==== BUILD STAGE 2: ==== -->
246 <!-- setting an empty inputstring is a workaround for http://issues.apache.org/bugzilla/show_bug.cgi?id=34461 -->
247 <target name="createOTDTEclipse" depends="createOTCompilerEclipse" unless="_hasCreatedOTDTEclipse">
248
249 <!-- Make org.eclipse.test.performance available while compiling test projects: -->
250 <echo message="Pre-installing Eclipse Test Framework into OTCompilerEclipse..."/>
Stephan Herrmann67cbf1c2010-09-26 09:59:15 +0000251 <mkdir dir="${testsUpdatesDirBase}/eclipse"/>
252 <unzip dest="${testsUpdatesDirBase}/eclipse" src="${eclipse.tests.zip}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000253 <ant antfile="${OTScriptDir}/p2helper.xml" target="installFeature" dir="${baseLocation}">
254 <property name="feature" value="org.eclipse.test.feature.group"/>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000255 <property name="sourceUpdatesDir" value="${testsUpdatesDirBase}/eclipse"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000256 <property name="targetEclipseDir" value="${baseLocation}"/>
257 </ant>
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000258
259 <!-- pre-load updateSite with published releases: -->
Stephan Herrmann0c9b5722010-06-04 22:13:03 +0000260 <mkdir dir="${otdtUpdatesDir}/plugins"/>
261 <mkdir dir="${otdtUpdatesDir}/features"/>
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200262<!-- don't use previous artifacts during the transition to OTDRE:
Stephan Herrmann0c9b5722010-06-04 22:13:03 +0000263 <exec executable="/bin/sh">
264 <arg value="-c"/>
265 <arg value="ln -s ${published.updates}/features/* ${otdtUpdatesDir}/features/"/>
266 </exec>
267 <exec executable="/bin/sh">
268 <arg value="-c"/>
269 <arg value="ln -s ${published.updates}/plugins/* ${otdtUpdatesDir}/plugins/"/>
270 </exec>
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200271-->
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000272 <!-- pre-load category-less metadata: -->
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200273<!--
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000274 <copy failonerror="false" flatten="true" toDir="${otdtUpdatesDir}">
275 <fileset dir="${user.dir}/metadata">
276 <include name="*.xml"/>
277 </fileset>
278 </copy>
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200279-->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000280
281 <echo message="Invoke pdebuild for creating a full OTDT"/>
282 <java
283 inputstring=""
284 dir="${baseLocation}"
285 fork="true"
286 classname="org.eclipse.equinox.launcher.Main"
287 classpath="${baseLocation}/plugins/${org.eclipse.equinox.launcher_jar}">
288 <arg value="-clean"/>
289 <arg value="-Dosgi.ws=${ws}"/>
290 <arg value="-Dosgi.os=${os}"/>
291 <arg value="-Dosgi.arch=${arch}"/>
292 <arg value="-application"/>
293 <arg value="org.eclipse.ant.core.antRunner"/>
294 <arg value="-buildfile"/>
295 <arg value="${buildfile}"/>
296 <arg value="-Dbuild.root.dir=${build.root.dir}"/>
297 <arg value="-DbaseLocation=${baseLocation}"/>
298 <arg value="-Drun.eclipseScriptDir=${run.eclipseScriptDir}"/>
299 <arg value="-DOTScriptDir=${OTScriptDir}"/>
300 <arg value="-Dbuilder=${builder-otdt}"/>
301 <arg value="-D${installmode}=true"/>
302 <arg value="-Dcomponent.short=OTDT-Build"/>
303 <arg value="-DotdtUpdatesDir=${otdtUpdatesDir}"/>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000304 <arg value="-DtestsUpdatesDirBase=${testsUpdatesDirBase}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000305 <arg value="-Dbaseos=${os}"/>
306 <arg value="-Dbasews=${ws}"/>
307 <arg value="-Dbasearch=${arch}"/>
308 <arg value="-Dtest.root.dir=${test.root.dir}"/>
309 <arg value="-Dtest.eclipseDir=${test.eclipseDir}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000310 <arg value="-DmapVersionTag=${mapVersionTag}"/>
Stephan Herrmann414d0732016-11-01 11:43:14 +0100311 <arg value="-Dmap.file.path=${map.file.path}"/>
312 <arg value="-DfetchCacheLocation=${fetchCacheLocation}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000313 <arg value="-Ddo.run.tests=${do.run.tests}"/>
314 <arg value="-Ddo.build.all=${do.build.all}"/>
315 <arg value="-Declipse-app.tgz=${eclipse-app.tgz}"/>
316 <arg value="-Declipse.tests.zip=${eclipse.tests.zip}"/>
Stephan Herrmanna11eb202016-11-10 21:53:44 +0100317 <arg value="-Djdt.compiler.apt=${jdt.compiler.apt}"/>
318 <arg value="-Djdt.compiler.tool=${jdt.compiler.tool}"/>
Stephan Herrmanneacdfde2010-08-25 05:58:42 +0000319 <!--arg value="-verbose" /-->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000320 <jvmarg value="${vm.args}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000321 <!-- arg value="${verboseAnt}"/ -->
322 <!-- arg value="-debug" / -->
323 </java>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000324 <!-- At this point a local update site exists, thanks to p2gathering=true -->
Stephan Herrmann99e184d2010-06-11 17:27:25 +0000325
326 <ant antfile="${OTScriptDir}/p2helper.xml" target="patchMetadata" dir="${otdtUpdatesDir}"/>
327
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000328 <property name="_hasCreatedOTDTEclipse" value="true" />
329 </target>
330
331 <!-- TESTING at STAGE 3: -->
332 <target name="setupTests" depends="createOTDTEclipse" description="Install the tests into an fresh OTDT">
333 <available file="${buildDirectory}/label.properties" property="label.properties.exists" />
334 <ant antfile="${OTScriptDir}/test.xml" target="setupTests" dir="${build.root.dir}">
335 <property name="os" value="${os}" />
336 <property name="ws" value="${ws}" />
337 <property name="arch" value="${arch}" />
338 <property name="baseos" value="${os}" />
339 <property name="basews" value="${ws}" />
340 <property name="basearch" value="${arch}" />
341 <property name="eclipse-app.tgz" value="${eclipse-app.tgz}" />
342 <property file="${buildDirectory}/label.properties" />
343 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000344 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000345 </ant>
346 </target>
347
348 <target name="runAllTests" description="Delegate to the next level script to perform the actual testing.">
349 <ant antfile="${OTScriptDir}/test.xml" target="all" dir="${build.root.dir}">
350 <property name="os" value="${os}" />
351 <property name="ws" value="${ws}" />
352 <property name="arch" value="${arch}" />
353 <property name="baseos" value="${os}" />
354 <property name="basews" value="${ws}" />
355 <property name="basearch" value="${arch}" />
356 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000357 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmann56428e92013-02-23 12:29:56 +0100358 <property name="test.tmpDir" value="${test.tmpDir}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000359 <property name="vmargs" value="${vmargs}" />
360 </ant>
361 </target>
362
Stephan Herrmannd8c81652010-11-06 15:01:14 +0000363 <target name="runOTDTTests" description="Delegate to the next level script to perform the actual testing.">
364 <ant antfile="${OTScriptDir}/test.xml" target="otdt-tests" dir="${build.root.dir}">
365 <property name="os" value="${os}" />
366 <property name="ws" value="${ws}" />
367 <property name="arch" value="${arch}" />
368 <property name="baseos" value="${os}" />
369 <property name="basews" value="${ws}" />
370 <property name="basearch" value="${arch}" />
371 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
372 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmann56428e92013-02-23 12:29:56 +0100373 <property name="test.tmpDir" value="${test.tmpDir}"/>
Stephan Herrmannd8c81652010-11-06 15:01:14 +0000374 <property name="vmargs" value="${vmargs}" />
375 </ant>
376 </target>
377
Stephan Herrmanneb0f2922018-08-09 13:27:26 +0200378 <target name="runOnlyoneTests" description="Delegate to the next level script to perform the actual testing.">
379 <ant antfile="${OTScriptDir}/test.xml" target="onlyone" dir="${build.root.dir}">
380 <property name="os" value="${os}" />
381 <property name="ws" value="${ws}" />
382 <property name="arch" value="${arch}" />
383 <property name="baseos" value="${os}" />
384 <property name="basews" value="${ws}" />
385 <property name="basearch" value="${arch}" />
386 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
387 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
388 <property name="test.tmpDir" value="${test.tmpDir}"/>
389 <property name="vmargs" value="${vmargs}" />
390 </ant>
391 </target>
392
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000393 <!-- currently unused target name="collectResults">
Stephan Herrmanna1eeb302013-04-29 23:51:25 +0200394 <ant target="collect" antfile="${test.root.dir}/library.xml" dir="${otresults}">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000395 <property name="includes" value="org.*.xml"/>
396 <property name="output-file" value="AllTestSuites.xml"/>
397 </ant>
398 </target -->
399
400</project>