blob: 7fa892ceb80df616f7226d0b8b7e7bd4066b31a6 [file] [log] [blame]
Stephan Herrmann02518472010-04-01 22:07:48 +00001<?xml version="1.0" encoding="UTF-8"?>
2
3<project name="testsuite" default="run" basedir=".">
4 <!-- The property ${eclipse-home} should be passed into this script -->
5 <!-- Set a meaningful default value for when it is not. -->
6 <property name="eclipse-home" value="${basedir}\..\.."/>
7
8 <!-- sets the properties eclipse-home, and library-file -->
9 <property name="plugin-name" value="org.eclipse.jdt.ui.tests"/>
10 <property name="library-file"
11 value="${test.eclipseDir}/plugins/${org.eclipse.test}/library.xml"/>
12
13
14 <!-- This target holds all initialization code that needs to be done for -->
15 <!-- all tests that are to be run. Initialization for individual tests -->
16 <!-- should be done within the body of the suite target. -->
17 <target name="init">
18 <tstamp/>
19 <delete>
20 <fileset dir="${eclipse-home}" includes="org*.xml"/>
21 </delete>
22
23 </target>
24
25 <!-- This target defines the tests that need to be run. -->
26 <target name="suite">
27 <property name="jdt-folder"
28 value="${eclipse-home}/jdt_folder"/>
29 <delete dir="${jdt-folder}" quiet="true"/>
30 <condition property="os.isWindows">
31 <os family="windows"/>
32 </condition>
33
34
35 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
36 <property name="data-dir" value="${jdt-folder}"/>
37 <property name="plugin-name" value="${plugin-name}"/>
38 <property name="classname" value="org.eclipse.jdt.ui.tests.AutomatedSuite"/>
39 </ant>
40
41 </target>
42
43 <!-- leak test target -->
44 <target name="leaksuite">
45 <property name="jdt-folder" value="${eclipse-home}/jdt_folder"/>
46
47 <delete dir="${jdt-folder}" quiet="true"/>
48
49 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
50 <property name="data-dir" value="${jdt-folder}"/>
51 <property name="plugin-name" value="${plugin-name}"/>
52 <property name="classname" value="org.eclipse.jdt.ui.tests.leaks.LeakTestSuite"/>
53 </ant>
54 </target>
55
56 <!-- This target holds code to cleanup the testing environment after -->
57 <!-- after all of the tests have been run. You can use this target to -->
58 <!-- delete temporary files that have been created. -->
59 <target name="cleanup">
60
61 </target>
62
63 <!-- This target runs the test suite. Any actions that need to happen -->
64 <!-- after all the tests have been run should go here. -->
65 <target name="run" depends="init,leaksuite,suite,cleanup">
66 <echo message="OTTest: done running ${plugin-name}"/>
67<!-- ObjectTeams: per-plugin collect not needed.
68 <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
69 <property name="includes" value="org*.xml"/>
70 <property name="output-file" value="${plugin-name}.xml"/>
71 </ant>
72-->
73 </target>
74
75 <!-- performance test target -->
76 <target name="performance-suite">
77 <property name="jdt-ui-performance-folder" value="${eclipse-home}/jdt_ui_performance_folder"/>
78 <property name="data-dir" value="${jdt-ui-performance-folder}"/>
79 <property name="plugin-name" value="${plugin-name}"/>
80
81 <delete dir="${jdt-ui-performance-folder}" quiet="true"/>
82 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
83 <property name="classname" value="org.eclipse.jdt.ui.tests.performance.PerformanceTestSuite"/>
84 </ant>
85
86 <delete dir="${jdt-ui-performance-folder}" quiet="true"/>
87 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
88 <property name="classname" value="org.eclipse.jdt.ui.tests.performance.views.PackageExplorerPerfTest"/>
89 </ant>
90
91 <delete dir="${jdt-ui-performance-folder}" quiet="true"/>
92 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
93 <property name="classname" value="org.eclipse.jdt.ui.tests.performance.views.PackageExplorerEmptyPerfTest"/>
94 </ant>
95
96 <delete dir="${jdt-ui-performance-folder}" quiet="true"/>
97 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
98 <property name="classname" value="org.eclipse.jdt.ui.tests.performance.views.PackageExplorerColdPerfTest"/>
99 </ant>
100
101 <delete dir="${jdt-ui-performance-folder}" quiet="true"/>
102 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
103 <property name="classname" value="org.eclipse.jdt.ui.tests.performance.views.PackageExplorerWarmPerfTest"/>
104 </ant>
105
106 <delete dir="${jdt-ui-performance-folder}" quiet="true"/>
107 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
108 <property name="classname" value="org.eclipse.jdt.ui.tests.performance.views.CleanUpPerfTest"/>
109 </ant>
110
111 <delete dir="${jdt-ui-performance-folder}" quiet="true"/>
112 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
113 <property name="classname" value="org.eclipse.jdt.ui.tests.performance.views.OrganizeImportsPerfTest"/>
114 </ant>
115
116 <delete dir="${jdt-ui-performance-folder}" quiet="true"/>
117 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
118 <property name="classname" value="org.eclipse.jdt.ui.tests.performance.views.OpenTypePerfTest"/>
119 </ant>
120
121 <!--
122 <delete dir="${jdt-ui-performance-folder}" quiet="true"/>
123 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
124 <property name="classname" value="org.eclipse.jdt.ui.tests.performance.views.PackageExplorerWorkspaceWarmPerfTest"/>
125 </ant>
126
127 <delete dir="${jdt-ui-performance-folder}" quiet="true"/>
128 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
129 <property name="classname" value="org.eclipse.jdt.ui.tests.performance.views.PackageExplorerWorkspacePerfTest"/>
130 </ant>
131 -->
132 </target>
133
134 <!-- This target runs the performance test suites. -->
135 <target name="performance" depends="init,performance-suite,cleanup">
136 <echo message="OTTest: done running ${plugin-name}"/>
137<!-- ObjectTeams: per-plugin collect not needed.
138 <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
139 <property name="includes" value="org*.xml"/>
140 <property name="output-file" value="${plugin-name}.xml"/>
141 </ant>
142-->
143 </target>
144
145</project>