blob: aa5aedbc665a2b802c96bad93552bdc50bd25c8e [file] [log] [blame]
david_williams403beae2007-12-09 02:10:40 +00001<project
2 name="Automated Eclipse Testing"
3 default="all"
4 basedir=".">
david_williams43089362008-03-25 05:43:38 +00005 <property
6 environment="env" />
david_williamscfd9a4a2008-03-27 16:35:01 +00007 <!-- required to get proper value of dropinsFolder -->
8 <property name="keyCfgFile" value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg" />
9 <echo message="keyCfgFile: ${keyCfgFile}" />
10 <property file="${keyCfgFile}" />
11
david_williams403beae2007-12-09 02:10:40 +000012 <echo
13 level="info"
14 message="starting Automated Eclipse Testing" />
15 <echo
16 level="debug"
17 message="basedir: ${basedir}" />
18 <echo
19 level="debug"
20 message="testRoot: ${testRoot}" />
david_williams403beae2007-12-09 02:10:40 +000021 <fail
22 message="testRoot must be set"
23 unless="testRoot" />
david_williams535d6812007-03-29 06:46:26 +000024
david_williams403beae2007-12-09 02:10:40 +000025 <!--properties file containing the some server name properties -->
david_williams222a9472008-01-26 22:06:59 +000026 <property
27 file="${testRoot}/testServer.properties" />
ndaib8cedc82005-09-13 18:00:32 +000028
david_williams403beae2007-12-09 02:10:40 +000029 <!--properties file containing the build information-->
david_williams222a9472008-01-26 22:06:59 +000030 <property
31 file="${buildDirectory}/label.properties" />
ndaib8cedc82005-09-13 18:00:32 +000032
david_williams403beae2007-12-09 02:10:40 +000033 <!--default directory where test-eclipse will be installed-->
34 <property
35 name="install"
36 value="${testRoot}" />
ndaib8cedc82005-09-13 18:00:32 +000037
david_williams403beae2007-12-09 02:10:40 +000038 <!--name that can be added to report name to identify which platform tests results come from-->
39 <property
40 name="platform"
41 value="" />
ndaib8cedc82005-09-13 18:00:32 +000042
david_williams403beae2007-12-09 02:10:40 +000043 <!-- The root of the eclipse installation -->
44 <property
45 name="eclipse-home"
david_williams421f20d2008-05-02 03:55:11 +000046 value="${testRoot}${dropinsFolder}/eclipse/" />
ndaib8cedc82005-09-13 18:00:32 +000047
david_williams403beae2007-12-09 02:10:40 +000048 <!-- The directory that will contain the xml and html results from the tests that are run -->
49 <property
50 name="results"
51 value="${testRoot}/results" />
ndaib8cedc82005-09-13 18:00:32 +000052
david_williams403beae2007-12-09 02:10:40 +000053 <!-- jonas install directory -->
54 <property
55 name="jonas432Dir"
56 value="${testRoot}/${jonas432DirName}" />
david_williams222a9472008-01-26 22:06:59 +000057 <target
58 name="init">
59 <antcall
60 target="setPropertyJOnAS432Dir" />
61 <antcall
62 target="computePluginVersion" />
63 <property
64 file="${testRoot}/test2.properties" />
david_williams403beae2007-12-09 02:10:40 +000065 </target>
david_williams403beae2007-12-09 02:10:40 +000066 <target
67 name="setPropertyJOnAS432Dir"
68 unless="jonas432Dir">
69 <property
70 name="jonas432Dir"
71 value="${testRoot}/${jonas432DirName}" />
72 </target>
david_williams403beae2007-12-09 02:10:40 +000073 <target
74 name="runtests"
david_williams403beae2007-12-09 02:10:40 +000075 description="Runs ant on the test.xml for a specified plugin.">
76 <available
77 file="${eclipse-home}/plugins/${testPlugin}/test.xml"
78 property="test.xml.exists" />
david_williams222a9472008-01-26 22:06:59 +000079 <antcall
80 target="runtests2" />
david_williams403beae2007-12-09 02:10:40 +000081 </target>
david_williams403beae2007-12-09 02:10:40 +000082 <target
83 name="runtests2"
84 if="test.xml.exists">
david_williams222a9472008-01-26 22:06:59 +000085 <antcall
86 target="runtests-normal" />
david_williams403beae2007-12-09 02:10:40 +000087 <copy
88 file="${eclipse-home}/${report}.xml"
89 tofile="${results}/xml/${report}_${platform}.xml"
90 failonerror="false" />
david_williams222a9472008-01-26 22:06:59 +000091 <antcall
92 target="genHtml" />
david_williams403beae2007-12-09 02:10:40 +000093 </target>
david_williams222a9472008-01-26 22:06:59 +000094 <target
95 name="runtests-normal">
david_williams403beae2007-12-09 02:10:40 +000096 <ant
97 antfile="${eclipse-home}/plugins/${testPlugin}/test.xml"
98 dir="${eclipse-home}">
99 <property
100 name="library-file"
101 value="${testRoot}/wtp-junit-tests.xml" />
102 </ant>
103 <copy
104 file="${eclipse-home}/${report}.xml"
105 tofile="${results}/xml/${report}_${platform}.xml"
106 failonerror="false" />
david_williams222a9472008-01-26 22:06:59 +0000107 <antcall
108 target="genHtml" />
david_williams403beae2007-12-09 02:10:40 +0000109 </target>
david_williams403beae2007-12-09 02:10:40 +0000110 <target
111 name="wst-server-tests"
112 depends="init"
113 description="Runs the org.eclipse.wst.server.*.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000114 <antcall
david_williamsfe1d0922008-03-25 03:01:25 +0000115 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000116 <param
117 name="testPlugin"
118 value="${org.eclipse.wst.server.core.tests}" />
119 <param
120 name="report"
121 value="org.eclipse.wst.server.core.tests" />
david_williams403beae2007-12-09 02:10:40 +0000122 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000123 <antcall
david_williamsfe1d0922008-03-25 03:01:25 +0000124 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000125 <param
126 name="testPlugin"
127 value="${org.eclipse.wst.server.ui.tests}" />
128 <param
129 name="report"
130 value="org.eclipse.wst.server.ui.tests" />
david_williams403beae2007-12-09 02:10:40 +0000131 </antcall>
132 </target>
david_williams403beae2007-12-09 02:10:40 +0000133 <target
134 name="wst-monitor-tests"
135 depends="init"
136 description="Runs the org.eclipse.wst.internet.monitor.*.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000137 <antcall
138 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000139 <param
140 name="testPlugin"
141 value="${org.eclipse.wst.internet.monitor.core.tests}" />
142 <param
143 name="report"
144 value="org.eclipse.wst.internet.monitor.core.tests" />
145 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000146 <antcall
147 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000148 <param
149 name="testPlugin"
150 value="${org.eclipse.wst.internet.monitor.ui.tests}" />
151 <param
152 name="report"
153 value="org.eclipse.wst.internet.monitor.ui.tests" />
154 </antcall>
155 </target>
david_williams403beae2007-12-09 02:10:40 +0000156 <target
157 name="wst-cache-tests"
158 depends="init"
159 description="Runs the org.eclipse.wst.internet.cache.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000160 <antcall
161 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000162 <param
163 name="testPlugin"
164 value="${org.eclipse.wst.internet.cache.tests}" />
165 <param
166 name="report"
167 value="org.eclipse.wst.internet.cache.tests" />
168 </antcall>
169 </target>
david_williams403beae2007-12-09 02:10:40 +0000170 <target
171 name="jst-server-tests"
172 depends="init"
173 description="Runs the org.eclipse.jst.server.*.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000174 <antcall
175 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000176 <param
177 name="testPlugin"
178 value="${org.eclipse.jst.server.core.tests}" />
179 <param
180 name="report"
181 value="org.eclipse.jst.server.core.tests" />
182 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000183 <antcall
184 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000185 <param
186 name="testPlugin"
187 value="${org.eclipse.jst.server.ui.tests}" />
188 <param
189 name="report"
190 value="org.eclipse.jst.server.ui.tests" />
191 </antcall>
192 </target>
david_williams403beae2007-12-09 02:10:40 +0000193 <target
194 name="jst-server-tomcat-tests"
195 depends="init"
196 description="Runs the org.eclipse.jst.server.tomcat.*.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000197 <antcall
198 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000199 <param
200 name="testPlugin"
201 value="${org.eclipse.jst.server.tomcat.core.tests}" />
202 <param
203 name="report"
204 value="org.eclipse.jst.server.tomcat.core.tests" />
205 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000206 <antcall
207 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000208 <param
209 name="testPlugin"
210 value="${org.eclipse.jst.server.tomcat.ui.tests}" />
211 <param
212 name="report"
213 value="org.eclipse.jst.server.tomcat.ui.tests" />
214 </antcall>
215 </target>
david_williams403beae2007-12-09 02:10:40 +0000216 <target
217 name="jst-server-generic-tests"
218 depends="init"
219 description="Runs the org.eclipse.jst.server.generic.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000220 <antcall
221 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000222 <param
223 name="testPlugin"
224 value="${org.eclipse.jst.server.generic.tests}" />
225 <param
226 name="report"
227 value="org.eclipse.jst.server.generic.tests" />
228 </antcall>
229 </target>
david_williams403beae2007-12-09 02:10:40 +0000230 <target
231 name="jst-server-geronimo-tests"
232 depends="init"
233 description="Runs the org.eclipse.jst.server.geronimo.*.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000234 <antcall
235 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000236 <param
237 name="testPlugin"
238 value="${org.eclipse.jst.server.geronimo.core.tests}" />
239 <param
240 name="report"
241 value="org.eclipse.jst.server.geronimo.core.tests" />
242 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000243 <antcall
244 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000245 <param
246 name="testPlugin"
247 value="${org.eclipse.jst.server.geronimo.ui.tests}" />
248 <param
249 name="report"
250 value="org.eclipse.jst.server.geronimo.ui.tests" />
251 </antcall>
252 </target>
david_williams403beae2007-12-09 02:10:40 +0000253 <target
254 name="jst-jem-tests"
255 depends="init"
256 description="Runs the org.eclipse.jem.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000257 <antcall
258 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000259 <param
260 name="testPlugin"
261 value="${org.eclipse.jem.tests}" />
262 <param
263 name="report"
264 value="org.eclipse.jem.tests" />
265 </antcall>
266 </target>
david_williams403beae2007-12-09 02:10:40 +0000267 <target
268 name="jst-j2ee-core-tests"
269 depends="init"
270 description="Runs the org.eclipse.jst.j2ee.core.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000271 <antcall
272 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000273 <param
274 name="testPlugin"
275 value="${org.eclipse.jst.j2ee.core.tests}" />
276 <param
277 name="report"
278 value="org.eclipse.jst.j2ee.core.tests" />
279 </antcall>
280 </target>
david_williams403beae2007-12-09 02:10:40 +0000281 <target
282 name="jst-j2ee-tests"
283 depends="init"
284 description="Runs the org.eclipse.jst.j2ee.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000285 <antcall
286 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000287 <param
288 name="testPlugin"
289 value="${org.eclipse.jst.j2ee.tests}" />
290 <param
291 name="report"
292 value="org.eclipse.jst.j2ee.tests" />
293 </antcall>
294 </target>
david_williams403beae2007-12-09 02:10:40 +0000295 <target
296 name="wst-common-tests"
297 depends="init"
298 description="Runs the org.eclipse.jst.j2ee.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000299 <antcall
300 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000301 <param
302 name="testPlugin"
303 value="${org.eclipse.wst.common.tests}" />
304 <param
305 name="report"
306 value="org.eclipse.wst.common.tests" />
307 </antcall>
308 </target>
david_williams43089362008-03-25 05:43:38 +0000309 <target
310 name="validation-framework-tests"
311 depends="init"
312 description="Runs the common validation tests">
313 <antcall
314 target="runtests">
315 <param
316 name="testPlugin"
317 value="${org.eclipse.wst.common.tests.validation}" />
318 <param
319 name="report"
320 value="org.eclipse.wst.common.tests.validation" />
321 </antcall>
322 </target>
david_williams403beae2007-12-09 02:10:40 +0000323 <target
324 name="wst-common-snippets-tests"
325 depends="init">
david_williams222a9472008-01-26 22:06:59 +0000326 <antcall
327 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000328 <param
329 name="testPlugin"
330 value="${org.eclipse.wst.common.snippets.tests}" />
331 <param
332 name="report"
333 value="org.eclipse.wst.common.snippets.tests" />
334 </antcall>
335 </target>
david_williams403beae2007-12-09 02:10:40 +0000336 <target
337 name="jst-servlet-tests"
338 depends="init"
339 description="Runs the org.eclipse.jst.servlet.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000340 <antcall
341 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000342 <param
343 name="testPlugin"
344 value="${org.eclipse.jst.servlet.tests}" />
345 <param
346 name="report"
347 value="org.eclipse.jst.servlet.tests" />
348 </antcall>
349 </target>
david_williams403beae2007-12-09 02:10:40 +0000350 <target
351 name="jst-validation-framework-tests"
352 depends="init"
353 description="Runs the org.eclipse.jst.validation.test test.xml">
david_williams222a9472008-01-26 22:06:59 +0000354 <antcall
355 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000356 <param
357 name="testPlugin"
358 value="${org.eclipse.jst.validation.test}" />
359 <param
360 name="report"
361 value="org.eclipse.jst.validation.test" />
362 </antcall>
363 </target>
ndaib8cedc82005-09-13 18:00:32 +0000364
david_williams403beae2007-12-09 02:10:40 +0000365 <!-- JSP TESTS -->
366 <target
367 name="jst-jsp-tests"
368 depends="init"
369 description="Runs test.xml for JSP tests">
david_williams222a9472008-01-26 22:06:59 +0000370 <antcall
371 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000372 <param
373 name="testPlugin"
374 value="${org.eclipse.jst.jsp.core.tests}" />
375 <param
376 name="report"
377 value="org.eclipse.jst.jsp.core.tests" />
378 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000379 <antcall
380 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000381 <param
382 name="testPlugin"
383 value="${org.eclipse.jst.jsp.ui.tests}" />
384 <param
385 name="report"
386 value="org.eclipse.jst.jsp.ui.tests" />
387 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000388 <antcall
389 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000390 <param
391 name="testPlugin"
392 value="${org.eclipse.jst.jsp.tests.encoding}" />
393 <param
394 name="report"
395 value="org.eclipse.jst.jsp.tests.encoding" />
396 </antcall>
397 </target>
ndaib8cedc82005-09-13 18:00:32 +0000398
david_williams403beae2007-12-09 02:10:40 +0000399 <!-- SSE TESTS -->
400 <target
401 name="wst-sse-tests"
402 depends="init"
403 description="Runs test.xml for SSE tests">
david_williams222a9472008-01-26 22:06:59 +0000404 <antcall
405 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000406 <param
407 name="testPlugin"
408 value="${org.eclipse.wst.sse.core.tests}" />
409 <param
410 name="report"
411 value="org.eclipse.wst.sse.core.tests" />
412 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000413 <antcall
414 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000415 <param
416 name="testPlugin"
417 value="${org.eclipse.wst.sse.ui.tests}" />
418 <param
419 name="report"
420 value="org.eclipse.wst.sse.ui.tests" />
421 </antcall>
422 </target>
david_williams9d23a9d2007-03-16 02:23:53 +0000423
david_williams403beae2007-12-09 02:10:40 +0000424 <!-- XML TESTS -->
425 <target
426 name="wst-xml-tests"
427 depends="init"
428 description="Runs test.xml for XML tests">
david_williams222a9472008-01-26 22:06:59 +0000429 <antcall
430 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000431 <param
432 name="testPlugin"
433 value="${org.eclipse.wst.xml.core.tests}" />
434 <param
435 name="report"
436 value="org.eclipse.wst.xml.core.tests" />
437 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000438 <antcall
439 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000440 <param
441 name="testPlugin"
442 value="${org.eclipse.wst.xml.ui.tests}" />
443 <param
444 name="report"
445 value="org.eclipse.wst.xml.ui.tests" />
446 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000447 <antcall
448 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000449 <param
450 name="testPlugin"
451 value="${org.eclipse.wst.xml.tests.encoding}" />
452 <param
453 name="report"
454 value="org.eclipse.wst.xml.tests.encoding" />
455 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000456 <antcall
457 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000458 <param
459 name="testPlugin"
460 value="${org.eclipse.wst.xml.validation.tests}" />
461 <param
462 name="report"
463 value="org.eclipse.wst.xml.validation.tests" />
464 </antcall>
david_williams2e61cc92008-05-09 23:46:15 +0000465 <antcall
466 target="runtests">
467 <param
468 name="testPlugin"
469 value="${org.eclipse.wst.xml.catalog.tests}" />
470 <param
471 name="report"
472 value="org.eclipse.wst.xml.catalog.tests" />
473 </antcall>
david_williams403beae2007-12-09 02:10:40 +0000474 </target>
david_williams9d23a9d2007-03-16 02:23:53 +0000475
david_williams403beae2007-12-09 02:10:40 +0000476 <!-- WSDL TESTS -->
477 <target
478 name="wst-wsdl-tests"
479 depends="init"
480 description="Runs test.xml for WSDL ">
david_williams222a9472008-01-26 22:06:59 +0000481 <antcall
david_williamsfe1d0922008-03-25 03:01:25 +0000482 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000483 <param
484 name="testPlugin"
485 value="${org.eclipse.wst.wsdl.tests}" />
486 <param
487 name="report"
488 value="org.eclipse.wst.wsdl.tests" />
david_williams403beae2007-12-09 02:10:40 +0000489 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000490 <antcall
491 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000492 <param
493 name="testPlugin"
494 value="${org.eclipse.wst.wsdl.validation.tests}" />
495 <param
496 name="report"
497 value="org.eclipse.wst.wsdl.validation.tests" />
498 </antcall>
499 </target>
david_williams9d23a9d2007-03-16 02:23:53 +0000500
david_williams403beae2007-12-09 02:10:40 +0000501 <!-- WSI TESTS -->
502 <target
503 name="wst-wsi-tests"
504 depends="init"
505 description="Runs test.xml for WSI tests">
david_williams222a9472008-01-26 22:06:59 +0000506 <antcall
507 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000508 <param
509 name="testPlugin"
510 value="${org.eclipse.wst.wsi.tests}" />
511 <param
512 name="report"
513 value="org.eclipse.wst.wsi.tests" />
514 </antcall>
515 </target>
david_williams9d23a9d2007-03-16 02:23:53 +0000516
david_williams403beae2007-12-09 02:10:40 +0000517 <!-- XSD TESTS -->
518 <target
519 name="wst-xsd-tests"
520 depends="init"
521 description="Runs test.xml for XSD tests ">
david_williams222a9472008-01-26 22:06:59 +0000522 <antcall
523 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000524 <param
525 name="testPlugin"
526 value="${org.eclipse.wst.xsd.validation.tests}" />
527 <param
528 name="report"
529 value="org.eclipse.wst.xsd.validation.tests" />
530 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000531 <antcall
532 target="runtests">
david_williamsf5848192008-01-15 21:39:00 +0000533 <param
534 name="testPlugin"
535 value="${org.eclipse.wst.xsd.core.tests}" />
536 <param
537 name="report"
538 value="org.eclipse.wst.xsd.core.tests" />
539 </antcall>
david_williams403beae2007-12-09 02:10:40 +0000540 </target>
david_williams9d23a9d2007-03-16 02:23:53 +0000541
david_williams403beae2007-12-09 02:10:40 +0000542 <!-- HTML TESTS -->
543 <target
544 name="wst-html-tests"
545 depends="init"
546 description="Runs test.xml for HTML tests">
david_williams222a9472008-01-26 22:06:59 +0000547 <antcall
548 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000549 <param
550 name="testPlugin"
551 value="${org.eclipse.wst.html.core.tests}" />
552 <param
553 name="report"
554 value="org.eclipse.wst.html.core.tests" />
555 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000556 <antcall
557 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000558 <param
559 name="testPlugin"
560 value="${org.eclipse.wst.html.ui.tests}" />
561 <param
562 name="report"
563 value="org.eclipse.wst.html.ui.tests" />
564 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000565 <antcall
566 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000567 <param
568 name="testPlugin"
569 value="${org.eclipse.wst.html.tests.encoding}" />
570 <param
571 name="report"
572 value="org.eclipse.wst.html.tests.encoding" />
573 </antcall>
574 </target>
david_williams9d23a9d2007-03-16 02:23:53 +0000575
david_williams403beae2007-12-09 02:10:40 +0000576 <!-- DTD Tests -->
577 <target
578 name="wst-dtd-tests"
579 depends="init">
david_williams222a9472008-01-26 22:06:59 +0000580 <antcall
581 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000582 <param
583 name="testPlugin"
584 value="${org.eclipse.wst.dtd.ui.tests}" />
585 <param
586 name="report"
587 value="org.eclipse.wst.dtd.ui.tests" />
588 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000589 <antcall
590 target="runtests">
david_williams5b616312008-01-17 05:55:44 +0000591 <param
592 name="testPlugin"
593 value="${org.eclipse.wst.dtd.core.tests}" />
594 <param
595 name="report"
596 value="org.eclipse.wst.dtd.core.tests" />
597 </antcall>
david_williams403beae2007-12-09 02:10:40 +0000598 </target>
david_williams9d23a9d2007-03-16 02:23:53 +0000599
david_williams403beae2007-12-09 02:10:40 +0000600 <!-- CSS TESTS -->
601 <target
602 name="wst-css-tests"
603 depends="init"
604 description="Runs test.xml for
david_williams9d23a9d2007-03-16 02:23:53 +0000605 org.eclipse.wst.css.core.tests
606 org.eclipse.wst.css.ui.tests
607 org.eclipse.wst.css.tests.encoding">
david_williams222a9472008-01-26 22:06:59 +0000608 <antcall
609 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000610 <param
611 name="testPlugin"
612 value="${org.eclipse.wst.css.core.tests}" />
613 <param
614 name="report"
615 value="org.eclipse.wst.css.core.tests" />
616 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000617 <antcall
618 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000619 <param
620 name="testPlugin"
621 value="${org.eclipse.wst.css.tests.encoding}" />
622 <param
623 name="report"
624 value="org.eclipse.wst.css.tests.encoding" />
625 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000626 <antcall
627 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000628 <param
629 name="testPlugin"
630 value="${org.eclipse.wst.css.ui.tests}" />
631 <param
632 name="report"
633 value="org.eclipse.wst.css.ui.tests" />
634 </antcall>
635 </target>
david_williams9d23a9d2007-03-16 02:23:53 +0000636
david_williams403beae2007-12-09 02:10:40 +0000637 <!-- JSF TESTS -->
638 <target
639 name="jsf-tests"
640 depends="init"
641 description="Runs test.xml for org.eclipse.jst.jsf.core.tests, org.eclipse.jst.jsf.ui.tests">
david_williams222a9472008-01-26 22:06:59 +0000642 <antcall
643 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000644 <param
645 name="testPlugin"
646 value="${org.eclipse.jst.jsf.core.tests}" />
647 <param
648 name="report"
649 value="org.eclipse.jst.jsf.core.tests" />
650 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000651 <antcall
652 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000653 <param
654 name="testPlugin"
655 value="${org.eclipse.jst.jsf.ui.tests}" />
656 <param
657 name="report"
658 value="org.eclipse.jst.jsf.ui.tests" />
659 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000660 <antcall
661 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000662 <param
663 name="testPlugin"
664 value="${org.eclipse.jst.jsf.metadata.tests}" />
665 <param
666 name="report"
667 value="org.eclipse.jst.jsf.metadata.tests" />
668 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000669 <antcall
670 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000671 <param
672 name="testPlugin"
673 value="${org.eclipse.jst.jsf.contentassist.tests}" />
674 <param
675 name="report"
676 value="org.eclipse.jst.jsf.contentassist.tests" />
677 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000678 <antcall
679 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000680 <param
681 name="testPlugin"
682 value="${org.eclipse.jst.jsf.context.symbol.tests}" />
683 <param
684 name="report"
685 value="org.eclipse.jst.jsf.context.symbol.tests" />
686 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000687 <antcall
688 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000689 <param
690 name="testPlugin"
691 value="${org.eclipse.jst.jsf.designtime.tests}" />
692 <param
693 name="report"
694 value="org.eclipse.jst.jsf.designtime.tests" />
695 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000696 <antcall
697 target="runtests">
698 <param
699 name="testPlugin"
700 value="${org.eclipse.jst.jsf.facesconfig.tests}" />
701 <param
702 name="report"
703 value="org.eclipse.jst.jsf.facesconfig.tests" />
704 </antcall>
705 <antcall
706 target="runtests">
707 <param
708 name="testPlugin"
709 value="${org.eclipse.jst.jsf.facesconfig.ui.test}" />
710 <param
711 name="report"
712 value="org.eclipse.jst.jsf.facesconfig.ui.test" />
713 </antcall>
714 <antcall
715 target="runtests">
716 <param
717 name="testPlugin"
718 value="${org.eclipse.jst.jsf.validation.el.tests}" />
719 <param
720 name="report"
721 value="org.eclipse.jst.jsf.validation.el.tests" />
722 </antcall>
723 <antcall
724 target="runtests">
725 <param
726 name="testPlugin"
727 value="${org.eclipse.jst.pagedesigner.tests}" />
728 <param
729 name="report"
730 value="org.eclipse.jst.pagedesigner.tests" />
731 </antcall>
david_williams403beae2007-12-09 02:10:40 +0000732 </target>
david_williams9d23a9d2007-03-16 02:23:53 +0000733
david_williams403beae2007-12-09 02:10:40 +0000734 <!-- WS TESTS -->
david_williams403beae2007-12-09 02:10:40 +0000735 <target
736 name="wst-ws-tests"
737 depends="init"
738 description="Runs the org.eclipse.wst.ws.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000739 <antcall
740 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000741 <param
742 name="testPlugin"
743 value="${org.eclipse.wst.ws.tests}" />
744 <param
745 name="report"
746 value="org.eclipse.wst.ws.tests" />
747 </antcall>
748 </target>
david_williams403beae2007-12-09 02:10:40 +0000749 <target
750 name="jst-ws-tests"
751 depends="init"
752 description="Runs the org.eclipse.jst.ws.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000753 <antcall
754 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000755 <param
756 name="testPlugin"
757 value="${org.eclipse.jst.ws.tests}" />
758 <param
759 name="report"
760 value="org.eclipse.jst.ws.tests" />
761 </antcall>
762 </target>
david_williams9d23a9d2007-03-16 02:23:53 +0000763
david_williams403beae2007-12-09 02:10:40 +0000764 <!-- Faceted Project Framework Tests -->
david_williams403beae2007-12-09 02:10:40 +0000765 <target
766 name="wst-facets-tests"
767 depends="init"
768 description="Runs the Faceted Project Framework tests.">
david_williams222a9472008-01-26 22:06:59 +0000769 <antcall
770 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000771 <param
772 name="testPlugin"
773 value="${org.eclipse.wst.common.project.facet.core.tests}" />
774 <param
775 name="report"
776 value="org.eclipse.wst.common.project.facet.core.tests" />
777 </antcall>
778 </target>
david_williams9d23a9d2007-03-16 02:23:53 +0000779
david_williams403beae2007-12-09 02:10:40 +0000780 <!-- Dali tests -->
781 <target
782 name="jpt-utility-tests"
783 depends="init"
784 description="Runs the org.eclipse.jpt.utility.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000785 <antcall
786 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000787 <param
788 name="testPlugin"
789 value="${org.eclipse.jpt.utility.tests}" />
790 <param
791 name="report"
792 value="org.eclipse.jpt.utility.tests" />
793 </antcall>
794 </target>
795 <target
796 name="dali-core-tests"
797 description="Runs the org.eclipse.jpt.core.tests test.xml">
david_williams222a9472008-01-26 22:06:59 +0000798 <antcall
799 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000800 <param
801 name="testPlugin"
802 value="${org.eclipse.jpt.core.tests}" />
803 <param
804 name="report"
805 value="org.eclipse.jpt.core.tests" />
806 </antcall>
807 </target>
david_williams9f1bc312006-11-29 20:23:22 +0000808
david_williams30cb3bc2007-12-11 18:40:53 +0000809 <!-- JSDT tests -->
810 <target
811 name="jsdt-tests"
812 depends="init"
813 description="Runs the org.eclipse.wst.jsdt.core.test.* test.xml">
david_williams222a9472008-01-26 22:06:59 +0000814 <antcall
815 target="runtests">
david_williams30cb3bc2007-12-11 18:40:53 +0000816 <param
817 name="testPlugin"
818 value="${org.eclipse.wst.jsdt.core.tests.compiler}" />
819 <param
820 name="report"
821 value="org.eclipse.wst.jsdt.core.tests.compiler" />
822 </antcall>
david_williams222a9472008-01-26 22:06:59 +0000823 <antcall
824 target="runtests">
david_williams30cb3bc2007-12-11 18:40:53 +0000825 <param
826 name="testPlugin"
827 value="${org.eclipse.wst.jsdt.core.tests.model}" />
828 <param
829 name="report"
830 value="org.eclipse.wst.jsdt.core.tests.model" />
831 </antcall>
832 </target>
833
834
835 <!-- releng Tests -->
david_williams403beae2007-12-09 02:10:40 +0000836 <target
837 name="releng-tests"
838 depends="init"
839 description="Runs the releng tests.">
david_williams222a9472008-01-26 22:06:59 +0000840 <antcall
841 target="runtests">
david_williams403beae2007-12-09 02:10:40 +0000842 <param
843 name="testPlugin"
844 value="${org.eclipse.wtp.releng.tests}" />
845 <param
846 name="report"
847 value="org.eclipse.wtp.releng.tests" />
848 </antcall>
849 </target>
david_williams403beae2007-12-09 02:10:40 +0000850 <target
851 name="all"
852 depends="init">
david_williams403beae2007-12-09 02:10:40 +0000853 <echo
854 level="info"
855 message="Starting WTP Unit Tests" />
david_williams403beae2007-12-09 02:10:40 +0000856 <echo
857 level="info"
858 message="Starting releng tests" />
david_williams222a9472008-01-26 22:06:59 +0000859 <antcall
860 target="releng-tests" />
david_williams403beae2007-12-09 02:10:40 +0000861 <echo
862 level="info"
863 message="Starting wst-server-tests" />
david_williams222a9472008-01-26 22:06:59 +0000864 <antcall
865 target="wst-server-tests" />
david_williams403beae2007-12-09 02:10:40 +0000866 <echo
867 level="info"
868 message="Starting wst-monitor-tests" />
david_williams222a9472008-01-26 22:06:59 +0000869 <antcall
870 target="wst-monitor-tests" />
david_williams403beae2007-12-09 02:10:40 +0000871 <echo
872 level="info"
873 message="Starting wst-cache-tests" />
david_williams222a9472008-01-26 22:06:59 +0000874 <antcall
875 target="wst-cache-tests" />
david_williams403beae2007-12-09 02:10:40 +0000876 <echo
877 level="info"
878 message="Starting wst-common-tests" />
david_williams222a9472008-01-26 22:06:59 +0000879 <antcall
880 target="wst-common-tests" />
david_williams43089362008-03-25 05:43:38 +0000881 <echo
882 level="info"
883 message="Starting validation-framework-tests" />
884 <antcall
885 target="validation-framework-tests" />
david_williams403beae2007-12-09 02:10:40 +0000886 <echo
887 level="info"
888 message="Starting wst-common-snippets-tests" />
david_williams222a9472008-01-26 22:06:59 +0000889 <antcall
890 target="wst-common-snippets-tests" />
david_williams403beae2007-12-09 02:10:40 +0000891 <echo
892 level="info"
893 message="Starting wst-sse-tests" />
david_williams222a9472008-01-26 22:06:59 +0000894 <antcall
895 target="wst-sse-tests" />
david_williams403beae2007-12-09 02:10:40 +0000896 <echo
897 level="info"
898 message="Starting wst-xml-tests" />
david_williams222a9472008-01-26 22:06:59 +0000899 <antcall
900 target="wst-xml-tests" />
david_williams403beae2007-12-09 02:10:40 +0000901 <echo
902 level="info"
903 message="Starting wst-wsdl-tests" />
david_williams222a9472008-01-26 22:06:59 +0000904 <antcall
905 target="wst-wsdl-tests" />
david_williams403beae2007-12-09 02:10:40 +0000906 <echo
907 level="info"
908 message="Starting wst-wsi-tests" />
david_williams222a9472008-01-26 22:06:59 +0000909 <antcall
910 target="wst-wsi-tests" />
david_williams403beae2007-12-09 02:10:40 +0000911 <echo
912 level="info"
913 message="Starting wst-xsd-tests" />
david_williams222a9472008-01-26 22:06:59 +0000914 <antcall
915 target="wst-xsd-tests" />
david_williams403beae2007-12-09 02:10:40 +0000916 <echo
917 level="info"
918 message="Starting wst-html-tests" />
david_williams222a9472008-01-26 22:06:59 +0000919 <antcall
920 target="wst-html-tests" />
david_williams403beae2007-12-09 02:10:40 +0000921 <echo
922 level="info"
923 message="Starting wst-dtd-tests" />
david_williams222a9472008-01-26 22:06:59 +0000924 <antcall
925 target="wst-dtd-tests" />
david_williams403beae2007-12-09 02:10:40 +0000926 <echo
927 level="info"
928 message="Starting wst-css-tests" />
david_williams222a9472008-01-26 22:06:59 +0000929 <antcall
930 target="wst-css-tests" />
david_williams403beae2007-12-09 02:10:40 +0000931 <echo
932 level="info"
933 message="Starting wst-ws-tests" />
david_williams222a9472008-01-26 22:06:59 +0000934 <antcall
935 target="wst-ws-tests" />
david_williams403beae2007-12-09 02:10:40 +0000936 <echo
937 level="info"
938 message="Starting jst-server-tests" />
david_williams222a9472008-01-26 22:06:59 +0000939 <antcall
940 target="jst-server-tests" />
david_williams403beae2007-12-09 02:10:40 +0000941 <echo
942 level="info"
943 message="Starting jst-server-tomcat-tests" />
david_williams222a9472008-01-26 22:06:59 +0000944 <antcall
945 target="jst-server-tomcat-tests" />
david_williams403beae2007-12-09 02:10:40 +0000946 <echo
947 level="info"
948 message="Starting jst-server-geronimo-tests" />
david_williams222a9472008-01-26 22:06:59 +0000949 <antcall
950 target="jst-server-geronimo-tests" />
david_williams403beae2007-12-09 02:10:40 +0000951 <echo
952 level="info"
953 message="Starting jst-server-generic-tests" />
david_williams222a9472008-01-26 22:06:59 +0000954 <antcall
955 target="jst-server-generic-tests" />
david_williams403beae2007-12-09 02:10:40 +0000956 <echo
957 level="info"
958 message="Starting jst-jem-tests" />
david_williams222a9472008-01-26 22:06:59 +0000959 <antcall
960 target="jst-jem-tests" />
david_williams403beae2007-12-09 02:10:40 +0000961 <echo
962 level="info"
963 message="Starting jst-j2ee-core-tests" />
david_williams222a9472008-01-26 22:06:59 +0000964 <antcall
965 target="jst-j2ee-core-tests" />
david_williams403beae2007-12-09 02:10:40 +0000966 <echo
967 level="info"
968 message="Starting jst-j2ee-tests" />
david_williams222a9472008-01-26 22:06:59 +0000969 <antcall
970 target="jst-j2ee-tests" />
david_williams403beae2007-12-09 02:10:40 +0000971 <echo
972 level="info"
973 message="Starting jst-validation-framework-tests" />
david_williams222a9472008-01-26 22:06:59 +0000974 <antcall
975 target="jst-validation-framework-tests" />
david_williams403beae2007-12-09 02:10:40 +0000976 <echo
977 level="info"
978 message="Starting jst-jsp-tests" />
david_williams222a9472008-01-26 22:06:59 +0000979 <antcall
980 target="jst-jsp-tests" />
david_williams403beae2007-12-09 02:10:40 +0000981 <echo
982 level="info"
983 message="Starting jst-ws-tests" />
david_williams222a9472008-01-26 22:06:59 +0000984 <antcall
985 target="jst-ws-tests" />
david_williams403beae2007-12-09 02:10:40 +0000986 <echo
987 level="info"
988 message="Starting wst-facets-tests" />
david_williams222a9472008-01-26 22:06:59 +0000989 <antcall
990 target="wst-facets-tests" />
david_williams403beae2007-12-09 02:10:40 +0000991 <echo
992 level="info"
993 message="Starting JPT Unit Tests" />
david_williams403beae2007-12-09 02:10:40 +0000994 <echo
995 level="info"
996 message="Starting jpt-utility-tests" />
david_williams222a9472008-01-26 22:06:59 +0000997 <antcall
998 target="jpt-utility-tests" />
david_williams403beae2007-12-09 02:10:40 +0000999 <echo
1000 level="info"
1001 message="Starting dali-core-tests" />
david_williams222a9472008-01-26 22:06:59 +00001002 <antcall
1003 target="dali-core-tests" />
david_williams403beae2007-12-09 02:10:40 +00001004 <echo
1005 level="info"
1006 message="Ended JPT Unit Tests" />
david_williams403beae2007-12-09 02:10:40 +00001007 <echo
1008 level="info"
1009 message="Starting JSF Tests" />
david_williams222a9472008-01-26 22:06:59 +00001010 <antcall
1011 target="jsf-tests" />
david_williams403beae2007-12-09 02:10:40 +00001012 <echo
1013 level="info"
1014 message="Ended WTP Unit Tests" />
david_williams30cb3bc2007-12-11 18:40:53 +00001015 <echo
1016 level="info"
1017 message="Starting JSDT Tests" />
david_williams222a9472008-01-26 22:06:59 +00001018 <antcall
1019 target="jsdt-tests" />
david_williams30cb3bc2007-12-11 18:40:53 +00001020 <echo
1021 level="info"
1022 message="Ended JSDT Unit Tests" />
david_williams403beae2007-12-09 02:10:40 +00001023 </target>
david_williams403beae2007-12-09 02:10:40 +00001024 <target
1025 name="genHtml"
1026 description="Generates HTML results with provided JUNIT.XSL provided"
1027 unless="genHtml.disable">
david_williams6b198a72008-01-26 06:19:56 +00001028 <xslt
david_williams403beae2007-12-09 02:10:40 +00001029 style="JUNIT.XSL"
1030 basedir="${results}/xml"
1031 destdir="${results}/html" />
1032 </target>
david_williams403beae2007-12-09 02:10:40 +00001033 <target
1034 name="computePluginVersion"
1035 depends="test2properties"
1036 unless="test2propertiesexists">
1037 <java
1038 classname="org.eclipse.wtp.releng.test.ComputePluginVersion">
1039 <classpath>
david_williams222a9472008-01-26 22:06:59 +00001040 <pathelement
1041 location="ComputePluginVersion.jar" />
david_williams403beae2007-12-09 02:10:40 +00001042 </classpath>
david_williams222a9472008-01-26 22:06:59 +00001043 <arg
david_williamsfe1d0922008-03-25 03:01:25 +00001044 value="${eclipse-home}/plugins" />
david_williams222a9472008-01-26 22:06:59 +00001045 <arg
1046 value="${testRoot}/test2.properties" />
david_williams43089362008-03-25 05:43:38 +00001047 <jvmarg
1048 value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" />
david_williams403beae2007-12-09 02:10:40 +00001049 </java>
1050 </target>
david_williams222a9472008-01-26 22:06:59 +00001051 <target
1052 name="test2properties">
1053 <condition
1054 property="test2propertiesexists">
1055 <available
1056 file="${testRoot}/test2.properties" />
david_williams403beae2007-12-09 02:10:40 +00001057 </condition>
1058 </target>
jeffliu5e3253d2006-06-13 19:38:32 +00001059</project>