blob: 9112a945a12a807c3477d80eab1869a26e21ffa1 [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">
Stephan Herrmann30912d62019-05-23 20:00:33 +0200235 <echo message="Install the previous compiler into boot eclipse"/>
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 Herrmann78ce7282019-07-14 20:53:52 +0200246 <delete>
247 <fileset dir="${baseLocation}/plugins/" includes="org.eclipse.jdt.core_*.v* org.eclipse.jdt.core.source_*.v*" />
248 </delete>
Stephan Herrmann30912d62019-05-23 20:00:33 +0200249
250 <echo message="Invoke pdebuild for creating the base new OT-Compiler"/>
251 <java
252 inputstring=""
253 dir="${baseLocation}"
254 fork="true"
255 classname="org.eclipse.equinox.launcher.Main"
256 classpath="${bootLocation}/plugins/${boot.org.eclipse.equinox.launcher_jar}">
257 <arg value="-Dosgi.ws=${ws}"/>
258 <arg value="-Dosgi.os=${os}"/>
259 <arg value="-Dosgi.arch=${arch}"/>
260 <arg value="-application"/>
261 <arg value="org.eclipse.ant.core.antRunner"/>
262 <arg value="-buildfile"/>
263 <arg value="${buildfile}"/>
264 <arg value="-Dbuild.root.dir=${build.root.dir}"/>
265 <arg value="-DbaseLocation=${baseLocation}"/>
Stephan Herrmannce88e992019-07-14 17:45:55 +0200266 <arg value="-DbootLocation=${bootLocation}"/>
Stephan Herrmann30912d62019-05-23 20:00:33 +0200267 <arg value="-DOTScriptDir=${OTScriptDir}"/>
268 <arg value="-Drun.eclipseScriptDir=${run.eclipseScriptDir}"/>
269 <arg value="-Dbuilder=${builder-otcompiler}"/>
270 <arg value="-D${installmode}=true"/> <!-- <- obsolete? -->
271 <arg value="-Dcomponent.short=OT-Compiler"/>
272 <arg value="-DotdtUpdatesDir=${otdtUpdatesDir}"/>
273 <arg value="-Dconfigs=*,*,*"/>
274 <arg value="-Dbaseos=${os}"/>
275 <arg value="-Dbasews=${ws}"/>
276 <arg value="-Dbasearch=${arch}"/>
277 <arg value="-Dtest.root.dir=${test.root.dir}"/>
278 <arg value="-Dtest.eclipseDir=${test.eclipseDir}"/>
279 <arg value="-DmapVersionTag=${mapVersionTag}"/>
280 <arg value="-Dmap.file.path=${map.file.path}"/>
281 <arg value="-Declipse.sdk.qualifier=${eclipse.sdk.qualifier}"/>
282 <arg value="-Declipse-app.tgz=${eclipse-app.tgz}"/>
283 <arg value="-Declipse.tests.zip=${eclipse.tests.zip}"/>
284 <!--arg value="-verbose" /-->
285 <jvmarg value="${vm.args}"/>
Stephan Herrmann30912d62019-05-23 20:00:33 +0200286 </java>
287 <!-- Now we should have an update site with the patch feature, time to install it into base: -->
288 <ant antfile="${OTScriptDir}/p2helper.xml" target="installFeature" dir="${baseLocation}">
289 <property name="feature" value="org.eclipse.objectteams.otdt.core.patch.feature.group"/>
290 <property name="sourceUpdatesDir" value="${otdtUpdatesDir}"/>
291 <property name="targetEclipseDir" value="${baseLocation}"/>
292 </ant>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000293 </target>
294
295 <!-- ==== BUILD STAGE 2: ==== -->
296 <!-- setting an empty inputstring is a workaround for http://issues.apache.org/bugzilla/show_bug.cgi?id=34461 -->
297 <target name="createOTDTEclipse" depends="createOTCompilerEclipse" unless="_hasCreatedOTDTEclipse">
298
299 <!-- Make org.eclipse.test.performance available while compiling test projects: -->
300 <echo message="Pre-installing Eclipse Test Framework into OTCompilerEclipse..."/>
Stephan Herrmann67cbf1c2010-09-26 09:59:15 +0000301 <mkdir dir="${testsUpdatesDirBase}/eclipse"/>
302 <unzip dest="${testsUpdatesDirBase}/eclipse" src="${eclipse.tests.zip}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000303 <ant antfile="${OTScriptDir}/p2helper.xml" target="installFeature" dir="${baseLocation}">
304 <property name="feature" value="org.eclipse.test.feature.group"/>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000305 <property name="sourceUpdatesDir" value="${testsUpdatesDirBase}/eclipse"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000306 <property name="targetEclipseDir" value="${baseLocation}"/>
307 </ant>
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000308
309 <!-- pre-load updateSite with published releases: -->
Stephan Herrmann0c9b5722010-06-04 22:13:03 +0000310 <mkdir dir="${otdtUpdatesDir}/plugins"/>
311 <mkdir dir="${otdtUpdatesDir}/features"/>
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200312<!-- don't use previous artifacts during the transition to OTDRE:
Stephan Herrmann0c9b5722010-06-04 22:13:03 +0000313 <exec executable="/bin/sh">
314 <arg value="-c"/>
315 <arg value="ln -s ${published.updates}/features/* ${otdtUpdatesDir}/features/"/>
316 </exec>
317 <exec executable="/bin/sh">
318 <arg value="-c"/>
319 <arg value="ln -s ${published.updates}/plugins/* ${otdtUpdatesDir}/plugins/"/>
320 </exec>
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200321-->
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000322 <!-- pre-load category-less metadata: -->
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200323<!--
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000324 <copy failonerror="false" flatten="true" toDir="${otdtUpdatesDir}">
325 <fileset dir="${user.dir}/metadata">
326 <include name="*.xml"/>
327 </fileset>
328 </copy>
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200329-->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000330
331 <echo message="Invoke pdebuild for creating a full OTDT"/>
332 <java
333 inputstring=""
Stephan Herrmann84a4f632019-04-13 20:36:08 +0200334 dir="${bootLocation}"
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000335 fork="true"
336 classname="org.eclipse.equinox.launcher.Main"
Stephan Herrmann6eecad32019-05-23 19:34:53 +0200337 classpath="${bootLocation}/plugins/${boot.org.eclipse.equinox.launcher_jar}">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000338 <arg value="-clean"/>
339 <arg value="-Dosgi.ws=${ws}"/>
340 <arg value="-Dosgi.os=${os}"/>
341 <arg value="-Dosgi.arch=${arch}"/>
342 <arg value="-application"/>
343 <arg value="org.eclipse.ant.core.antRunner"/>
344 <arg value="-buildfile"/>
345 <arg value="${buildfile}"/>
346 <arg value="-Dbuild.root.dir=${build.root.dir}"/>
Stephan Herrmann1c25fec2019-04-13 20:44:20 +0200347 <arg value="-DbootLocation=${bootLocation}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000348 <arg value="-DbaseLocation=${baseLocation}"/>
Stephan Herrmann4d4276f2019-04-13 22:06:31 +0200349 <arg value="-DtransformedRepoLocation=${baseLocation}"/> <!-- fetch jars into target -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000350 <arg value="-Drun.eclipseScriptDir=${run.eclipseScriptDir}"/>
351 <arg value="-DOTScriptDir=${OTScriptDir}"/>
352 <arg value="-Dbuilder=${builder-otdt}"/>
353 <arg value="-D${installmode}=true"/>
354 <arg value="-Dcomponent.short=OTDT-Build"/>
355 <arg value="-DotdtUpdatesDir=${otdtUpdatesDir}"/>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000356 <arg value="-DtestsUpdatesDirBase=${testsUpdatesDirBase}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000357 <arg value="-Dbaseos=${os}"/>
358 <arg value="-Dbasews=${ws}"/>
359 <arg value="-Dbasearch=${arch}"/>
360 <arg value="-Dtest.root.dir=${test.root.dir}"/>
361 <arg value="-Dtest.eclipseDir=${test.eclipseDir}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000362 <arg value="-DmapVersionTag=${mapVersionTag}"/>
Stephan Herrmann414d0732016-11-01 11:43:14 +0100363 <arg value="-Dmap.file.path=${map.file.path}"/>
364 <arg value="-DfetchCacheLocation=${fetchCacheLocation}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000365 <arg value="-Ddo.run.tests=${do.run.tests}"/>
366 <arg value="-Ddo.build.all=${do.build.all}"/>
367 <arg value="-Declipse-app.tgz=${eclipse-app.tgz}"/>
368 <arg value="-Declipse.tests.zip=${eclipse.tests.zip}"/>
Stephan Herrmanna11eb202016-11-10 21:53:44 +0100369 <arg value="-Djdt.compiler.apt=${jdt.compiler.apt}"/>
370 <arg value="-Djdt.compiler.tool=${jdt.compiler.tool}"/>
Stephan Herrmanneacdfde2010-08-25 05:58:42 +0000371 <!--arg value="-verbose" /-->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000372 <jvmarg value="${vm.args}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000373 <!-- arg value="${verboseAnt}"/ -->
374 <!-- arg value="-debug" / -->
375 </java>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000376 <!-- At this point a local update site exists, thanks to p2gathering=true -->
Stephan Herrmann99e184d2010-06-11 17:27:25 +0000377
Stephan Herrmann31101742019-05-23 19:11:12 +0200378 <ant antfile="${OTScriptDir}/p2helper.xml" target="patchMetadata" dir="${otdtUpdatesDir}"/>
379
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000380 <property name="_hasCreatedOTDTEclipse" value="true" />
381 </target>
382
383 <!-- TESTING at STAGE 3: -->
384 <target name="setupTests" depends="createOTDTEclipse" description="Install the tests into an fresh OTDT">
385 <available file="${buildDirectory}/label.properties" property="label.properties.exists" />
386 <ant antfile="${OTScriptDir}/test.xml" target="setupTests" dir="${build.root.dir}">
387 <property name="os" value="${os}" />
388 <property name="ws" value="${ws}" />
389 <property name="arch" value="${arch}" />
390 <property name="baseos" value="${os}" />
391 <property name="basews" value="${ws}" />
392 <property name="basearch" value="${arch}" />
393 <property name="eclipse-app.tgz" value="${eclipse-app.tgz}" />
394 <property file="${buildDirectory}/label.properties" />
395 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000396 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000397 </ant>
398 </target>
399
400 <target name="runAllTests" description="Delegate to the next level script to perform the actual testing.">
401 <ant antfile="${OTScriptDir}/test.xml" target="all" dir="${build.root.dir}">
402 <property name="os" value="${os}" />
403 <property name="ws" value="${ws}" />
404 <property name="arch" value="${arch}" />
405 <property name="baseos" value="${os}" />
406 <property name="basews" value="${ws}" />
407 <property name="basearch" value="${arch}" />
408 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000409 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmann56428e92013-02-23 12:29:56 +0100410 <property name="test.tmpDir" value="${test.tmpDir}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000411 <property name="vmargs" value="${vmargs}" />
412 </ant>
413 </target>
414
Stephan Herrmannd8c81652010-11-06 15:01:14 +0000415 <target name="runOTDTTests" description="Delegate to the next level script to perform the actual testing.">
416 <ant antfile="${OTScriptDir}/test.xml" target="otdt-tests" dir="${build.root.dir}">
417 <property name="os" value="${os}" />
418 <property name="ws" value="${ws}" />
419 <property name="arch" value="${arch}" />
420 <property name="baseos" value="${os}" />
421 <property name="basews" value="${ws}" />
422 <property name="basearch" value="${arch}" />
423 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
424 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmann56428e92013-02-23 12:29:56 +0100425 <property name="test.tmpDir" value="${test.tmpDir}"/>
Stephan Herrmannd8c81652010-11-06 15:01:14 +0000426 <property name="vmargs" value="${vmargs}" />
427 </ant>
428 </target>
429
Stephan Herrmanneb0f2922018-08-09 13:27:26 +0200430 <target name="runOnlyoneTests" description="Delegate to the next level script to perform the actual testing.">
431 <ant antfile="${OTScriptDir}/test.xml" target="onlyone" dir="${build.root.dir}">
432 <property name="os" value="${os}" />
433 <property name="ws" value="${ws}" />
434 <property name="arch" value="${arch}" />
435 <property name="baseos" value="${os}" />
436 <property name="basews" value="${ws}" />
437 <property name="basearch" value="${arch}" />
438 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
439 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
440 <property name="test.tmpDir" value="${test.tmpDir}"/>
441 <property name="vmargs" value="${vmargs}" />
442 </ant>
443 </target>
444
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000445 <!-- currently unused target name="collectResults">
Stephan Herrmanna1eeb302013-04-29 23:51:25 +0200446 <ant target="collect" antfile="${test.root.dir}/library.xml" dir="${otresults}">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000447 <property name="includes" value="org.*.xml"/>
448 <property name="output-file" value="AllTestSuites.xml"/>
449 </ant>
450 </target -->
451
452</project>