blob: 324d7c8561671d780aaa8fffff128560a289c975 [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 Herrmann342fbb32019-04-13 20:20:46 +020066 <property name="bootLocation" value="${build.root.dir}/eclipse" />
Stephan Herrmann89245632019-04-13 20:05:41 +020067 <property name="baseLocation" value="${test.eclipseDir}" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000068
69 <!-- directories for update sites: -->
Stephan Herrmannb99a8e32018-06-08 22:50:19 +020070 <!-- TODO: extract compilerUpdatesDir to prerequisistes? -->
Stephan Herrmannae580b92018-06-08 22:31:20 +020071 <property name="compilerUpdatesDir" value="http://download.eclipse.org/objectteams/updates/ot2.7/compiler"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000072 <property name="otdtUpdatesDir" value="${user.dir}/updateSite"/>
73 <property name="testsUpdatesDirBase" value="${user.dir}/updateSiteTests"/>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +000074 <!-- will have sub directories "eclipse" and "otdt" -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000075
Stephan Herrmanneac90682013-04-29 23:29:13 +020076 <!-- ======== Insert SDK build qualifier into our configuration files: ======== -->
77 <copy file="${map.file.path}.in" tofile="${map.file.path}">
78 <filterset>
79 <filter token="SDK_QUALIFIER" value="${eclipse.sdk.qualifier}"/>
80 </filterset>
81 </copy>
Stephan Herrmann32ed6af2014-01-05 02:44:25 +010082 <!-- Insert SDK build qualifier into our configuration file: -->
83 <copy file="${OTScriptDir}/test.properties.in" tofile="${OTScriptDir}/test.properties" overwrite="true">
84 <filterset>
85 <filter token="SDK_QUALIFIER" value="${eclipse.sdk.qualifier}"/>
86 </filterset>
87 </copy>
88
89 <!-- versions of test plugins: -->
90 <loadproperties srcfile="${OTScriptDir}/test.properties" />
Stephan Herrmanneac90682013-04-29 23:29:13 +020091
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000092 <!-- ======== More Configuration Details: ======== -->
93 <!-- maybe obsolete: file prefix to distinguish output files. -->
94 <property name="file-id" value="XXX" />
95
96 <!-- Configure Java for STAGE 1 and STAGE 2 building: -->
97 <property name="vm" value="java" />
98 <property name="vm.args" value="-Xmx912m" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000099
100 <property name="installmode" value="clean" />
101
102 <property name="saxon.jar.name" value="saxon8.jar" />
103 <property name="saxon.jar.path" value="${user.home}/.ant/lib/${saxon.jar.name}" />
Stephan Herrmann2ab0c0e2016-11-01 14:21:09 +0100104 <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 +0000105
106 <!-- ant's os.arch is slightly different than osgi's arch -->
Stephan Herrmann1a9d85a2010-05-17 22:45:31 +0000107 <condition property="arch" value="x86_64"> <!-- HACK: hard coding 64-bit architecture -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000108 <os arch="i386" />
109 </condition>
110 <condition property="arch" value="ppc64"> <!-- HACK: hard coding 64-bit architecture -->
111 <os arch="ppc" />
112 </condition>
Stephan Herrmann005fc312010-05-18 12:52:58 +0000113 <condition property="arch" value="x86_64"> <!-- Map ant's arch to OSGi arch -->
114 <os arch="amd64" />
115 </condition>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000116 <!-- if not set above, set it to os.arch -->
117 <property name="arch" value="${os.arch}" />
118
119 </target>
120
121
122 <target name="INFO">
123 <echo>Usage:
Stephan Herrmannb105b082011-05-15 00:39:56 +0000124 ant -f run.xml ot-junit-all -> runs OTDT Build and Testprocess
125 ant -f run.xml ot-junit-otdt -> runs OTDT Build and Testprocess excluding jdt tests
126 ant -f run.xml ot-junit-build -> runs just OTDT Buildprocess
127 ant -f run.xml ot-compiler-build -> just build the compiler
128 ant -f run.xml ot-junit-run -> runs just OTDT Tests w/o TestSetup
129 </echo>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000130 </target>
131
132 <target name="ot-junit-all" depends="setupProperties,checkOS" description="Build all and run all tests.">
133 <echo message="Starting BuildProcess and Testrun in ${build.root.dir}"/>
134 <antcall target="verifyAntInstall"/>
135 <antcall target="setupTests" />
136 <antcall target="runAllTests"/>
137 </target>
138
Stephan Herrmannd8c81652010-11-06 15:01:14 +0000139 <target name="ot-junit-otdt" depends="setupProperties,checkOS" description="Build all and run otdt tests.">
140 <echo message="Starting BuildProcess and Testrun in ${build.root.dir}"/>
141 <antcall target="verifyAntInstall"/>
142 <antcall target="setupTests" />
143 <antcall target="runOTDTTests"/>
144 </target>
145
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000146 <target name="ot-junit-build" depends="setupProperties,checkOS" description="build everything without running tests">
147 <echo message="Starting BuildProcess in ${build.root.dir}"/>
148 <antcall target="verifyAntInstall"/>
149 <antcall target="createOTDTEclipse"/>
Stephan Herrmann8b5e97e2013-07-30 18:44:03 +0200150 <antcall target="setupTests" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000151 </target>
152
Stephan Herrmannb59f3f02011-05-15 00:17:51 +0000153 <target name="ot-compiler-build" depends="setupProperties,checkOS" description="build only the compiler (for debugging the build)">
154 <echo message="Starting BuildProcess in ${build.root.dir}"/>
155 <antcall target="verifyAntInstall"/>
156 <antcall target="createOTCompilerEclipse"/>
157 </target>
158
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000159 <target name="ot-junit-run" depends="setupProperties,checkOS" description="Run tests without building">
160 <echo message="Starting Testrun ${test.root.dir}"/>
161 <antcall target="runAllTests" />
162 </target>
163
Stephan Herrmann8b5e97e2013-07-30 18:44:03 +0200164 <target name="ot-junit-run-ot" depends="setupProperties,checkOS" description="Run OT tests without building">
165 <echo message="Starting Testrun ${test.root.dir}"/>
166 <antcall target="runOTDTTests" />
167 </target>
168
Stephan Herrmanneb0f2922018-08-09 13:27:26 +0200169 <target name="ot-junit-run-onlyone" depends="setupProperties,checkOS" description="Run OT tests without building">
170 <echo message="Starting Testrun ${test.root.dir}"/>
Stephan Herrmanna887ab72018-08-09 14:11:12 +0200171 <antcall target="setupTests" />
Stephan Herrmanneb0f2922018-08-09 13:27:26 +0200172 <antcall target="runOnlyoneTests" />
173 </target>
174
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000175 <!-- =================== END Public Targets ==================== -->
176
177 <!-- === Setup Targets: === -->
178
179 <target name="verifyAntInstall" unless="_hasSaxon.jar">
180 <copy failonerror="true" overwrite="false" file="${OTScriptDir}/${saxon.jar.name}" tofile="${saxon.jar.path}"></copy>
181 <echo message="Needed to copy saxon8.jar to ${saxon.jar.path}. Please restart the build." />
182 <echo message="For an explanation, see http://ant.apache.org/faq.html#delegating-classloader-1.6" />
183 <fail message="See above. Please restart the build."/>
184 </target>
185
186 <!-- checks on which os ant is run, set ${os} and ${ws} accordingly -->
187 <target name="determineOS">
188 <condition property="os.isWindows">
189 <os family="windows"/>
190 </condition>
191
192 <condition property="os.isLinux">
193 <os name="Linux" />
194 </condition>
195 </target>
196
197 <target name="checkOS" depends="determineOS,windows,linux"/>
198
199 <target name="windows" if="os.isWindows">
200 <echo message="OS is Windows"/>
201 <property name="os" value="win32" />
202 <property name="ws" value="win32" />
203 </target>
204
205 <target name="linux" unless="os.isWindows" >
206 <echo message="OS is Linux"/>
207 <!-- eclipse-app.tgz is already passed from the calling script -->
208 <property name="os" value="linux" />
209 <property name="ws" value="gtk" />
210 </target>
211
212 <target name="setupForCompile" depends="checkOS" unless="_hasCreatedOTDTEclipse">
213 <antcall target="UnzipEclipse"/>
214 <antcall target="AddPluginsToEclipse"/>
215 </target>
216
217 <target name="UnzipEclipse">
Stephan Herrmann5acccae2019-04-13 17:46:35 +0200218 <echo message="Extracting Boot Eclipse (${eclipse-boot.tgz}) in ${build.root.dir}..."/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000219 <mkdir dir="${build.root.dir}"/>
Stephan Herrmann5acccae2019-04-13 17:46:35 +0200220 <untar compression="gzip" src="${eclipse-boot.tgz}" dest="${build.root.dir}"/>
Stephan Herrmannd3be87b2019-04-13 20:14:21 +0200221 <mkdir dir="${test.root.dir}"/>
222 <untar compression="gzip" src="${eclipse-app.tgz}" dest="${test.root.dir}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000223 </target>
224
Stephan Herrmann342fbb32019-04-13 20:20:46 +0200225 <target name="AddPluginsToEclipse" description="Add git.pde.build plugins to the boot Eclipse">
226 <mkdir dir="${bootLocation}/dropins/plugins"/>
227 <copy file="${OTScriptDir}/lib/${git.pde.build}" todir="${bootLocation}/dropins/plugins" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000228 </target>
229
230 <!-- ==== BUILDING AND RUNNING: ==== -->
231
232 <!-- ==== BUILD STAGE 1: ==== -->
233 <!-- setting an empty inputstring is a workaround for http://issues.apache.org/bugzilla/show_bug.cgi?id=34461 -->
234 <target name="createOTCompilerEclipse" depends="setupForCompile" description="create the bootstrapping Eclipse with OT/J compiler">
235 <echo message="Invoke pdebuild for creating the OT-Compiler"/>
Stephan Herrmannb99a8e32018-06-08 22:50:19 +0200236<!-- Re-use the compiler from the previous published build: -->
Stephan Herrmann342fbb32019-04-13 20:20:46 +0200237 <ant antfile="${OTScriptDir}/p2helper.xml" target="installFeatureFromUrl" dir="${bootLocation}">
Stephan Herrmannb59f3f02011-05-15 00:17:51 +0000238 <property name="feature" value="org.eclipse.objectteams.otdt.core.patch.feature.group"/>
Stephan Herrmannae580b92018-06-08 22:31:20 +0200239 <property name="sourceUpdatesUrl" value="${compilerUpdatesDir}"/>
Stephan Herrmann342fbb32019-04-13 20:20:46 +0200240 <property name="targetEclipseDir" value="${bootLocation}"/>
Stephan Herrmann31101742019-05-23 19:11:12 +0200241 <property name="org.eclipse.equinox.launcher_jar" value="${boot.org.eclipse.equinox.launcher_jar}"/>
Stephan Herrmannb59f3f02011-05-15 00:17:51 +0000242 </ant>
Stephan Herrmann7a271122018-06-07 15:22:27 +0200243 <delete>
Stephan Herrmann342fbb32019-04-13 20:20:46 +0200244 <fileset dir="${bootLocation}/plugins/" includes="org.eclipse.jdt.core_*.v* org.eclipse.jdt.core.source_*.v*" />
Stephan Herrmann7a271122018-06-07 15:22:27 +0200245 </delete>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000246 </target>
247
248 <!-- ==== BUILD STAGE 2: ==== -->
249 <!-- setting an empty inputstring is a workaround for http://issues.apache.org/bugzilla/show_bug.cgi?id=34461 -->
250 <target name="createOTDTEclipse" depends="createOTCompilerEclipse" unless="_hasCreatedOTDTEclipse">
251
252 <!-- Make org.eclipse.test.performance available while compiling test projects: -->
253 <echo message="Pre-installing Eclipse Test Framework into OTCompilerEclipse..."/>
Stephan Herrmann67cbf1c2010-09-26 09:59:15 +0000254 <mkdir dir="${testsUpdatesDirBase}/eclipse"/>
255 <unzip dest="${testsUpdatesDirBase}/eclipse" src="${eclipse.tests.zip}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000256 <ant antfile="${OTScriptDir}/p2helper.xml" target="installFeature" dir="${baseLocation}">
257 <property name="feature" value="org.eclipse.test.feature.group"/>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000258 <property name="sourceUpdatesDir" value="${testsUpdatesDirBase}/eclipse"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000259 <property name="targetEclipseDir" value="${baseLocation}"/>
260 </ant>
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000261
262 <!-- pre-load updateSite with published releases: -->
Stephan Herrmann0c9b5722010-06-04 22:13:03 +0000263 <mkdir dir="${otdtUpdatesDir}/plugins"/>
264 <mkdir dir="${otdtUpdatesDir}/features"/>
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200265<!-- don't use previous artifacts during the transition to OTDRE:
Stephan Herrmann0c9b5722010-06-04 22:13:03 +0000266 <exec executable="/bin/sh">
267 <arg value="-c"/>
268 <arg value="ln -s ${published.updates}/features/* ${otdtUpdatesDir}/features/"/>
269 </exec>
270 <exec executable="/bin/sh">
271 <arg value="-c"/>
272 <arg value="ln -s ${published.updates}/plugins/* ${otdtUpdatesDir}/plugins/"/>
273 </exec>
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200274-->
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000275 <!-- pre-load category-less metadata: -->
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200276<!--
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000277 <copy failonerror="false" flatten="true" toDir="${otdtUpdatesDir}">
278 <fileset dir="${user.dir}/metadata">
279 <include name="*.xml"/>
280 </fileset>
281 </copy>
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200282-->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000283
284 <echo message="Invoke pdebuild for creating a full OTDT"/>
285 <java
286 inputstring=""
Stephan Herrmann84a4f632019-04-13 20:36:08 +0200287 dir="${bootLocation}"
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000288 fork="true"
289 classname="org.eclipse.equinox.launcher.Main"
Stephan Herrmann84a4f632019-04-13 20:36:08 +0200290 classpath="${bootLocation}/plugins/${org.eclipse.equinox.launcher_jar}">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000291 <arg value="-clean"/>
292 <arg value="-Dosgi.ws=${ws}"/>
293 <arg value="-Dosgi.os=${os}"/>
294 <arg value="-Dosgi.arch=${arch}"/>
295 <arg value="-application"/>
296 <arg value="org.eclipse.ant.core.antRunner"/>
297 <arg value="-buildfile"/>
298 <arg value="${buildfile}"/>
299 <arg value="-Dbuild.root.dir=${build.root.dir}"/>
Stephan Herrmann1c25fec2019-04-13 20:44:20 +0200300 <arg value="-DbootLocation=${bootLocation}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000301 <arg value="-DbaseLocation=${baseLocation}"/>
Stephan Herrmann4d4276f2019-04-13 22:06:31 +0200302 <arg value="-DtransformedRepoLocation=${baseLocation}"/> <!-- fetch jars into target -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000303 <arg value="-Drun.eclipseScriptDir=${run.eclipseScriptDir}"/>
304 <arg value="-DOTScriptDir=${OTScriptDir}"/>
305 <arg value="-Dbuilder=${builder-otdt}"/>
306 <arg value="-D${installmode}=true"/>
307 <arg value="-Dcomponent.short=OTDT-Build"/>
308 <arg value="-DotdtUpdatesDir=${otdtUpdatesDir}"/>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000309 <arg value="-DtestsUpdatesDirBase=${testsUpdatesDirBase}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000310 <arg value="-Dbaseos=${os}"/>
311 <arg value="-Dbasews=${ws}"/>
312 <arg value="-Dbasearch=${arch}"/>
313 <arg value="-Dtest.root.dir=${test.root.dir}"/>
314 <arg value="-Dtest.eclipseDir=${test.eclipseDir}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000315 <arg value="-DmapVersionTag=${mapVersionTag}"/>
Stephan Herrmann414d0732016-11-01 11:43:14 +0100316 <arg value="-Dmap.file.path=${map.file.path}"/>
317 <arg value="-DfetchCacheLocation=${fetchCacheLocation}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000318 <arg value="-Ddo.run.tests=${do.run.tests}"/>
319 <arg value="-Ddo.build.all=${do.build.all}"/>
320 <arg value="-Declipse-app.tgz=${eclipse-app.tgz}"/>
321 <arg value="-Declipse.tests.zip=${eclipse.tests.zip}"/>
Stephan Herrmanna11eb202016-11-10 21:53:44 +0100322 <arg value="-Djdt.compiler.apt=${jdt.compiler.apt}"/>
323 <arg value="-Djdt.compiler.tool=${jdt.compiler.tool}"/>
Stephan Herrmanneacdfde2010-08-25 05:58:42 +0000324 <!--arg value="-verbose" /-->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000325 <jvmarg value="${vm.args}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000326 <!-- arg value="${verboseAnt}"/ -->
327 <!-- arg value="-debug" / -->
328 </java>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000329 <!-- At this point a local update site exists, thanks to p2gathering=true -->
Stephan Herrmann99e184d2010-06-11 17:27:25 +0000330
Stephan Herrmann31101742019-05-23 19:11:12 +0200331 <ant antfile="${OTScriptDir}/p2helper.xml" target="patchMetadata" dir="${otdtUpdatesDir}"/>
332
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000333 <property name="_hasCreatedOTDTEclipse" value="true" />
334 </target>
335
336 <!-- TESTING at STAGE 3: -->
337 <target name="setupTests" depends="createOTDTEclipse" description="Install the tests into an fresh OTDT">
338 <available file="${buildDirectory}/label.properties" property="label.properties.exists" />
339 <ant antfile="${OTScriptDir}/test.xml" target="setupTests" dir="${build.root.dir}">
340 <property name="os" value="${os}" />
341 <property name="ws" value="${ws}" />
342 <property name="arch" value="${arch}" />
343 <property name="baseos" value="${os}" />
344 <property name="basews" value="${ws}" />
345 <property name="basearch" value="${arch}" />
346 <property name="eclipse-app.tgz" value="${eclipse-app.tgz}" />
347 <property file="${buildDirectory}/label.properties" />
348 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000349 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000350 </ant>
351 </target>
352
353 <target name="runAllTests" description="Delegate to the next level script to perform the actual testing.">
354 <ant antfile="${OTScriptDir}/test.xml" target="all" dir="${build.root.dir}">
355 <property name="os" value="${os}" />
356 <property name="ws" value="${ws}" />
357 <property name="arch" value="${arch}" />
358 <property name="baseos" value="${os}" />
359 <property name="basews" value="${ws}" />
360 <property name="basearch" value="${arch}" />
361 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000362 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmann56428e92013-02-23 12:29:56 +0100363 <property name="test.tmpDir" value="${test.tmpDir}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000364 <property name="vmargs" value="${vmargs}" />
365 </ant>
366 </target>
367
Stephan Herrmannd8c81652010-11-06 15:01:14 +0000368 <target name="runOTDTTests" description="Delegate to the next level script to perform the actual testing.">
369 <ant antfile="${OTScriptDir}/test.xml" target="otdt-tests" dir="${build.root.dir}">
370 <property name="os" value="${os}" />
371 <property name="ws" value="${ws}" />
372 <property name="arch" value="${arch}" />
373 <property name="baseos" value="${os}" />
374 <property name="basews" value="${ws}" />
375 <property name="basearch" value="${arch}" />
376 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
377 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmann56428e92013-02-23 12:29:56 +0100378 <property name="test.tmpDir" value="${test.tmpDir}"/>
Stephan Herrmannd8c81652010-11-06 15:01:14 +0000379 <property name="vmargs" value="${vmargs}" />
380 </ant>
381 </target>
382
Stephan Herrmanneb0f2922018-08-09 13:27:26 +0200383 <target name="runOnlyoneTests" description="Delegate to the next level script to perform the actual testing.">
384 <ant antfile="${OTScriptDir}/test.xml" target="onlyone" dir="${build.root.dir}">
385 <property name="os" value="${os}" />
386 <property name="ws" value="${ws}" />
387 <property name="arch" value="${arch}" />
388 <property name="baseos" value="${os}" />
389 <property name="basews" value="${ws}" />
390 <property name="basearch" value="${arch}" />
391 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
392 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
393 <property name="test.tmpDir" value="${test.tmpDir}"/>
394 <property name="vmargs" value="${vmargs}" />
395 </ant>
396 </target>
397
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000398 <!-- currently unused target name="collectResults">
Stephan Herrmanna1eeb302013-04-29 23:51:25 +0200399 <ant target="collect" antfile="${test.root.dir}/library.xml" dir="${otresults}">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000400 <property name="includes" value="org.*.xml"/>
401 <property name="output-file" value="AllTestSuites.xml"/>
402 </ant>
403 </target -->
404
405</project>