blob: 69a33412f2c041dd617d917c13ce064d7904be9b [file] [log] [blame]
Stephan Herrmann71432c02011-10-25 16:30:36 +00001<?xml version="1.0" encoding="UTF-8"?>
2
3<!--
Stephan Herrmann56e07ed2021-08-19 18:56:14 +02004 Copyright (c) 2002, 2021 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"/>
Stephan Herrmann56e07ed2021-08-19 18:56:14 +020060 <property name="vmargs"
61 value="-Dcompliance.jre.11=1.8,9,10,11 -Dcompliance.jre.16=1.8,11,15,16 -Dcompliance.jre.17=1.8,11,16,17"
62 />
Stephan Herrmann5ed21e42010-04-01 21:40:57 +000063 </ant>
64
65 <antcall target="evaluation_tests"/>
66 </target>
67
Stephan Herrmanncf711a12014-03-11 16:19:58 +010068 <target name="evaluation_tests">
Stephan Herrmann5ed21e42010-04-01 21:40:57 +000069 <!-- Evaluation tests -->
70 <property name="jdt-eval-folder"
71 value="${eclipse-home}/jdt_eval_folder"/>
72 <delete dir="${jdt-eval-folder}" quiet="true"/>
73 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
74 <property name="data-dir" value="${jdt-eval-folder}"/>
75 <property name="plugin-name" value="${plugin-name}"/>
76 <property name="classname"
77 value="org.eclipse.jdt.core.tests.eval.TestAll"/>
78 </ant>
79 </target>
80 <!-- This target holds code to cleanup the testing environment after -->
81 <!-- after all of the tests have been run. You can use this target to -->
82 <!-- delete temporary files that have been created. -->
83 <target name="cleanup">
84 </target>
85
86 <!-- This target runs the test suite. Any actions that need to happen -->
87 <!-- after all the tests have been run should go here. -->
88 <target name="run" depends="init,suite,cleanup">
89 <echo message="OTTest: done running ${plugin-name}"/>
90<!-- ObjectTeams: per-plugin collect not needed.
91 <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
92 <property name="includes" value="org*.xml"/>
93 <property name="output-file" value="${plugin-name}.xml"/>
94 </ant>
95-->
96 </target>
97
Stephan Herrmann5ed21e42010-04-01 21:40:57 +000098</project>