blob: 2ff4a2719430918bee7eb71fe4d5996bad563cc7 [file] [log] [blame]
Stephan Herrmann71432c02011-10-25 16:30:36 +00001<?xml version="1.0" encoding="UTF-8"?>
2
3<!--
4 Copyright (c) 2002, 2011 IBM Corporation and others.
Stephan Herrmann5ed21e42010-04-01 21:40:57 +00005 All rights reserved. This program and the accompanying materials
6 are made available under the terms of the Eclipse Public License v1.0
7 which accompanies this distribution, and is available at
8 http://www.eclipse.org/legal/epl-v10.html
9
10 Contributors:
11 IBM Corporation - initial API and implementation
12 Technical University Berlin - adapted for Object Teams
13 -->
14
15<project name="testsuite" default="run" basedir=".">
16 <!-- The property ${eclipse-home} should be passed into this script -->
17 <!-- Set a meaningful default value for when it is not. -->
18 <property name="eclipse-home" value="${basedir}\..\.."/>
19
20 <!-- sets the properties eclipse-home, and library-file -->
21 <property name="plugin-name" value="org.eclipse.jdt.core.tests.compiler"/>
22 <property name="library-file"
23 value="${eclipse-home}/plugins/${org.eclipse.test}/library.xml"/>
24
25 <!-- This target holds all initialization code that needs to be done for -->
26 <!-- all tests that are to be run. Initialization for individual tests -->
27 <!-- should be done within the body of the suite target. -->
28 <target name="init">
29 <tstamp/>
30 <delete>
31 <fileset dir="${eclipse-home}" includes="org*.xml"/>
32 </delete>
33 </target>
34
35 <!-- This target defines the tests that need to be run. -->
36 <target name="suite">
37 <condition property="onWin32">
38 <and>
39 <os family="windows" />
40 </and>
41 </condition>
42 <!-- Parser tests -->
43 <property name="jdt-parser-folder"
44 value="${eclipse-home}/jdt_parser_folder"/>
45 <delete dir="${jdt-parser-folder}" quiet="true"/>
46 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
47 <property name="data-dir" value="${jdt-parser-folder}"/>
48 <property name="plugin-name" value="${plugin-name}"/>
49 <property name="classname"
50 value="org.eclipse.jdt.core.tests.compiler.parser.TestAll"/>
51 </ant>
52
53 <!-- Compiler regression tests -->
54 <property name="jdt-compiler-folder"
55 value="${eclipse-home}/jdt_compiler_folder"/>
56 <delete dir="${jdt-compiler-folder}" quiet="true"/>
57 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
58 <property name="data-dir" value="${jdt-compiler-folder}"/>
59 <property name="plugin-name" value="${plugin-name}"/>
60 <property name="classname"
61 value="org.eclipse.jdt.core.tests.compiler.regression.TestAll"/>
62 </ant>
63
64 <antcall target="evaluation_tests"/>
65 </target>
66
67 <target name="evaluation_tests" if="onWin32">
68 <!-- Evaluation tests -->
69 <property name="jdt-eval-folder"
70 value="${eclipse-home}/jdt_eval_folder"/>
71 <delete dir="${jdt-eval-folder}" quiet="true"/>
72 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
73 <property name="data-dir" value="${jdt-eval-folder}"/>
74 <property name="plugin-name" value="${plugin-name}"/>
75 <property name="classname"
76 value="org.eclipse.jdt.core.tests.eval.TestAll"/>
77 </ant>
78 </target>
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
97
98 <!-- This target runs the performance test suites. -->
99 <target name="performance">
100 </target>
101
102</project>