blob: ca6abfbad89a266b1fc86e150cec07b60d30f761 [file] [log] [blame]
Stephan Herrmannc656def2011-10-25 16:30:41 +00001<?xml version="1.0" encoding="UTF-8"?>
2
3<!--
Stephan Herrmannfdc9d1a2017-03-26 17:35:22 +02004 Copyright (c) 2002, 2017 IBM Corporation and others.
Stephan Herrmanna441c702018-10-14 17:51:04 +02005
6 This program and the accompanying materials
7 are made available under the terms of the Eclipse Public License 2.0
Stephan Herrmannbe6c0ea2010-04-01 21:59:30 +00008 which accompanies this distribution, and is available at
Stephan Herrmanna441c702018-10-14 17:51:04 +02009 https://www.eclipse.org/legal/epl-2.0/
10
11 SPDX-License-Identifier: EPL-2.0
Stephan Herrmannbe6c0ea2010-04-01 21:59:30 +000012
13 Contributors:
14 IBM Corporation - initial API and implementation
15 Technical University Berlin - adapted for Object Teams
16 -->
17
18<project name="testsuite" default="run" basedir=".">
19 <!-- The property ${eclipse-home} should be passed into this script -->
20 <!-- Set a meaningful default value for when it is not. -->
21 <property name="eclipse-home" value="${basedir}\..\.."/>
22
23 <!-- sets the properties eclipse-home, and library-file -->
24 <property name="plugin-name" value="org.eclipse.jdt.core.tests.model"/>
25 <property name="library-file"
26 value="${eclipse-home}/plugins/${org.eclipse.test}/library.xml"/>
27
28 <!-- This target holds all initialization code that needs to be done for -->
29 <!-- all tests that are to be run. Initialization for individual tests -->
30 <!-- should be done within the body of the suite target. -->
31 <target name="init">
32 <tstamp/>
33 <delete>
34 <fileset dir="${eclipse-home}" includes="org*.xml"/>
35 </delete>
36 </target>
37
38 <!-- This target defines the tests that need to be run. -->
39 <target name="suite">
40 <!-- Java Model tests -->
41 <property name="jdt-model-folder"
42 value="${eclipse-home}/jdt_model_folder"/>
43 <delete dir="${jdt-model-folder}" quiet="true"/>
44 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
45 <!-- Use a subdir 'data' so that the JCL jars are put in jdt-model-folder and are deleted at the end of the tests. -->
46 <property name="data-dir" value="${jdt-model-folder}/data"/>
Stephan Herrmannfdc9d1a2017-03-26 17:35:22 +020047 <property name="vmargs" value="-Xmx800M -XX:+HeapDumpOnOutOfMemoryError -DstoreMemory=jdtcoremodel_mem_trace,dir=${basedir}/../.. -Djdt.default.test.compliance=1.8"/>
Stephan Herrmannbe6c0ea2010-04-01 21:59:30 +000048 <property name="plugin-name" value="${plugin-name}"/>
49 <property name="classname"
50 value="org.eclipse.jdt.core.tests.model.AllJavaModelTests"/>
51 </ant>
52
53 <!-- DOM tests -->
54 <property name="jdt-dom-folder"
55 value="${eclipse-home}/jdt_dom_folder"/>
56 <delete dir="${jdt-dom-folder}" quiet="true"/>
57 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
58 <!-- Use a subdir 'data' so that the JCL jars are put in jdt-model-folder and are deleted at the end of the tests. -->
59 <property name="data-dir" value="${jdt-dom-folder}/data"/>
Stephan Herrmannfdc9d1a2017-03-26 17:35:22 +020060 <property name="vmargs" value="-Djdt.default.test.compliance=1.8"/>
Stephan Herrmannbe6c0ea2010-04-01 21:59:30 +000061 <property name="plugin-name" value="${plugin-name}"/>
62 <property name="classname"
63 value="org.eclipse.jdt.core.tests.dom.RunAllTests"/>
64 </ant>
65
66 <!-- Formatter tests -->
67 <property name="formatter-folder"
68 value="${eclipse-home}/formatter-folder"/>
69 <delete dir="${formatter-folder}" quiet="true"/>
70 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
71 <property name="data-dir" value="${formatter-folder}"/>
Stephan Herrmannfdc9d1a2017-03-26 17:35:22 +020072 <property name="vmargs" value="-Djdt.default.test.compliance=1.8"/>
Stephan Herrmannbe6c0ea2010-04-01 21:59:30 +000073 <property name="plugin-name" value="${plugin-name}"/>
74 <property name="classname"
75 value="org.eclipse.jdt.core.tests.RunFormatterTests"/>
76 </ant>
77 </target>
78
79 <!-- This target holds code to cleanup the testing environment after -->
80 <!-- after all of the tests have been run. You can use this target to -->
81 <!-- delete temporary files that have been created. -->
82 <target name="cleanup">
83 </target>
84
85 <!-- This target runs the test suite. Any actions that need to happen -->
86 <!-- after all the tests have been run should go here. -->
87 <target name="run" depends="init,suite,cleanup">
88 <echo message="OTTest: done running ${plugin-name}"/>
89<!-- ObjectTeams: per-plugin collect not needed.
90 <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
91 <property name="includes" value="org*.xml"/>
92 <property name="output-file" value="${plugin-name}.xml"/>
93 </ant>
94-->
95 </target>
96
Stephan Herrmannbe6c0ea2010-04-01 21:59:30 +000097</project>