blob: 5ea814b19fc70b9db37b93660cd88d72369c2ecd [file] [log] [blame]
Stephan Herrmann71432c02011-10-25 16:30:36 +00001<?xml version="1.0" encoding="UTF-8"?>
2
3<!--
Stephan Herrmann03fc98b2014-11-04 20:35:01 +01004 Copyright (c) 2002, 2014 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 Herrmann5ed21e42010-04-01 21:40:57 +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 Herrmann5ed21e42010-04-01 21:40:57 +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.compiler"/>
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">
Stephan Herrmann5ed21e42010-04-01 21:40:57 +000040 <!-- Parser tests -->
41 <property name="jdt-parser-folder"
42 value="${eclipse-home}/jdt_parser_folder"/>
43 <delete dir="${jdt-parser-folder}" quiet="true"/>
44 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
45 <property name="data-dir" value="${jdt-parser-folder}"/>
46 <property name="plugin-name" value="${plugin-name}"/>
47 <property name="classname"
48 value="org.eclipse.jdt.core.tests.compiler.parser.TestAll"/>
49 </ant>
50
51 <!-- Compiler regression tests -->
52 <property name="jdt-compiler-folder"
53 value="${eclipse-home}/jdt_compiler_folder"/>
54 <delete dir="${jdt-compiler-folder}" quiet="true"/>
55 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
56 <property name="data-dir" value="${jdt-compiler-folder}"/>
57 <property name="plugin-name" value="${plugin-name}"/>
58 <property name="classname"
59 value="org.eclipse.jdt.core.tests.compiler.regression.TestAll"/>
60 </ant>
61
62 <antcall target="evaluation_tests"/>
63 </target>
64
Stephan Herrmanncf711a12014-03-11 16:19:58 +010065 <target name="evaluation_tests">
Stephan Herrmann5ed21e42010-04-01 21:40:57 +000066 <!-- Evaluation tests -->
67 <property name="jdt-eval-folder"
68 value="${eclipse-home}/jdt_eval_folder"/>
69 <delete dir="${jdt-eval-folder}" quiet="true"/>
70 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
71 <property name="data-dir" value="${jdt-eval-folder}"/>
72 <property name="plugin-name" value="${plugin-name}"/>
73 <property name="classname"
74 value="org.eclipse.jdt.core.tests.eval.TestAll"/>
75 </ant>
76 </target>
77 <!-- This target holds code to cleanup the testing environment after -->
78 <!-- after all of the tests have been run. You can use this target to -->
79 <!-- delete temporary files that have been created. -->
80 <target name="cleanup">
81 </target>
82
83 <!-- This target runs the test suite. Any actions that need to happen -->
84 <!-- after all the tests have been run should go here. -->
85 <target name="run" depends="init,suite,cleanup">
86 <echo message="OTTest: done running ${plugin-name}"/>
87<!-- ObjectTeams: per-plugin collect not needed.
88 <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
89 <property name="includes" value="org*.xml"/>
90 <property name="output-file" value="${plugin-name}.xml"/>
91 </ant>
92-->
93 </target>
94
Stephan Herrmann5ed21e42010-04-01 21:40:57 +000095</project>