blob: 07b24f9edc6555e263ba25fc9b7ed01aa4d3225c [file] [log] [blame]
Stephan Herrmannbe6c0ea2010-04-01 21:59:30 +00001<?xml version="1.0"?>
2 <!--
3 Copyright (c) 2002, 2009 IBM Corporation 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 IBM Corporation - initial API and implementation
11 Technical University Berlin - adapted for Object Teams
12 -->
13
14<project name="testsuite" default="run" basedir=".">
15 <!-- The property ${eclipse-home} should be passed into this script -->
16 <!-- Set a meaningful default value for when it is not. -->
17 <property name="eclipse-home" value="${basedir}\..\.."/>
18
19 <!-- sets the properties eclipse-home, and library-file -->
20 <property name="plugin-name" value="org.eclipse.jdt.core.tests.model"/>
21 <property name="library-file"
22 value="${eclipse-home}/plugins/${org.eclipse.test}/library.xml"/>
23
24 <!-- This target holds all initialization code that needs to be done for -->
25 <!-- all tests that are to be run. Initialization for individual tests -->
26 <!-- should be done within the body of the suite target. -->
27 <target name="init">
28 <tstamp/>
29 <delete>
30 <fileset dir="${eclipse-home}" includes="org*.xml"/>
31 </delete>
32 </target>
33
34 <!-- This target defines the tests that need to be run. -->
35 <target name="suite">
36 <!-- Java Model tests -->
37 <property name="jdt-model-folder"
38 value="${eclipse-home}/jdt_model_folder"/>
39 <delete dir="${jdt-model-folder}" quiet="true"/>
40 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
41 <!-- Use a subdir 'data' so that the JCL jars are put in jdt-model-folder and are deleted at the end of the tests. -->
42 <property name="data-dir" value="${jdt-model-folder}/data"/>
43 <property name="vmargs" value="-XX:+HeapDumpOnOutOfMemoryError -DstoreMemory=jdtcoremodel_mem_trace,dir=${basedir}/../.."/>
44 <property name="plugin-name" value="${plugin-name}"/>
45 <property name="classname"
46 value="org.eclipse.jdt.core.tests.model.AllJavaModelTests"/>
47 </ant>
48
49 <!-- DOM tests -->
50 <property name="jdt-dom-folder"
51 value="${eclipse-home}/jdt_dom_folder"/>
52 <delete dir="${jdt-dom-folder}" quiet="true"/>
53 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
54 <!-- Use a subdir 'data' so that the JCL jars are put in jdt-model-folder and are deleted at the end of the tests. -->
55 <property name="data-dir" value="${jdt-dom-folder}/data"/>
56 <property name="plugin-name" value="${plugin-name}"/>
57 <property name="classname"
58 value="org.eclipse.jdt.core.tests.dom.RunAllTests"/>
59 </ant>
60
61 <!-- Formatter tests -->
62 <property name="formatter-folder"
63 value="${eclipse-home}/formatter-folder"/>
64 <delete dir="${formatter-folder}" quiet="true"/>
65 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
66 <property name="data-dir" value="${formatter-folder}"/>
67 <property name="plugin-name" value="${plugin-name}"/>
68 <property name="classname"
69 value="org.eclipse.jdt.core.tests.RunFormatterTests"/>
70 </ant>
71 </target>
72
73 <!-- This target holds code to cleanup the testing environment after -->
74 <!-- after all of the tests have been run. You can use this target to -->
75 <!-- delete temporary files that have been created. -->
76 <target name="cleanup">
77 </target>
78
79 <!-- This target runs the test suite. Any actions that need to happen -->
80 <!-- after all the tests have been run should go here. -->
81 <target name="run" depends="init,suite,cleanup">
82 <echo message="OTTest: done running ${plugin-name}"/>
83<!-- ObjectTeams: per-plugin collect not needed.
84 <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
85 <property name="includes" value="org*.xml"/>
86 <property name="output-file" value="${plugin-name}.xml"/>
87 </ant>
88-->
89 </target>
90
91 <!-- This target runs the performance test suites. -->
92 <target name="performance">
93 </target>
94
95</project>