blob: d7dc11e0645289a20bb200cece762044318d7cad [file] [log] [blame]
Stephan Herrmann5ed21e42010-04-01 21:40:57 +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.compiler"/>
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 <condition property="onWin32">
37 <and>
38 <os family="windows" />
39 </and>
40 </condition>
41 <!-- Parser tests -->
42 <property name="jdt-parser-folder"
43 value="${eclipse-home}/jdt_parser_folder"/>
44 <delete dir="${jdt-parser-folder}" quiet="true"/>
45 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
46 <property name="data-dir" value="${jdt-parser-folder}"/>
47 <property name="plugin-name" value="${plugin-name}"/>
48 <property name="classname"
49 value="org.eclipse.jdt.core.tests.compiler.parser.TestAll"/>
50 </ant>
51
52 <!-- Compiler regression tests -->
53 <property name="jdt-compiler-folder"
54 value="${eclipse-home}/jdt_compiler_folder"/>
55 <delete dir="${jdt-compiler-folder}" quiet="true"/>
56 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
57 <property name="data-dir" value="${jdt-compiler-folder}"/>
58 <property name="plugin-name" value="${plugin-name}"/>
59 <property name="classname"
60 value="org.eclipse.jdt.core.tests.compiler.regression.TestAll"/>
61 </ant>
62
63 <antcall target="evaluation_tests"/>
64 </target>
65
66 <target name="evaluation_tests" if="onWin32">
67 <!-- Evaluation tests -->
68 <property name="jdt-eval-folder"
69 value="${eclipse-home}/jdt_eval_folder"/>
70 <delete dir="${jdt-eval-folder}" quiet="true"/>
71 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
72 <property name="data-dir" value="${jdt-eval-folder}"/>
73 <property name="plugin-name" value="${plugin-name}"/>
74 <property name="classname"
75 value="org.eclipse.jdt.core.tests.eval.TestAll"/>
76 </ant>
77 </target>
78 <!-- This target holds code to cleanup the testing environment after -->
79 <!-- after all of the tests have been run. You can use this target to -->
80 <!-- delete temporary files that have been created. -->
81 <target name="cleanup">
82 </target>
83
84 <!-- This target runs the test suite. Any actions that need to happen -->
85 <!-- after all the tests have been run should go here. -->
86 <target name="run" depends="init,suite,cleanup">
87 <echo message="OTTest: done running ${plugin-name}"/>
88<!-- ObjectTeams: per-plugin collect not needed.
89 <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
90 <property name="includes" value="org*.xml"/>
91 <property name="output-file" value="${plugin-name}.xml"/>
92 </ant>
93-->
94 </target>
95
96
97 <!-- This target runs the performance test suites. -->
98 <target name="performance">
99 </target>
100
101</project>