blob: 40f3f5368b5f57272f3b1a7c350920c11e48344a [file] [log] [blame]
Stephan Herrmann47e58902010-04-01 23:52:56 +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.refactoring"/>
10 <property name="library-file"
11 value="${eclipse-home}/plugins/${org.eclipse.test}/library.xml"/>
12
13 <!-- This target holds all initialization code that needs to be done for -->
14 <!-- all tests that are to be run. Initialization for individual tests -->
15 <!-- should be done within the body of the suite target. -->
16 <target name="init">
17 <tstamp/>
18 <delete>
19 <fileset dir="${eclipse-home}" includes="org*.xml"/>
20 </delete>
21 </target>
22
23 <!-- This target defines the tests that need to be run. -->
24 <target name="suite">
25 <property name="refactoring-folder"
26 value="${eclipse-home}/refactoring_folder"/>
27 <delete dir="${refactoring-folder}" quiet="true"/>
28 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
29 <property name="data-dir" value="${refactoring-folder}"/>
30 <property name="plugin-name" value="${plugin-name}"/>
31 <property name="classname"
32 value="org.eclipse.jdt.ui.tests.refactoring.all.AllAllRefactoringTests"/>
33 </ant>
34 </target>
35
36 <!-- performance test target -->
37 <target name="performance-suite">
38 <property name="jdt-ui-refactoring-performance-folder" value="${eclipse-home}/jdt_ui_refactoring_performance_folder"/>
39 <property name="data-dir" value="${jdt-ui-refactoring-performance-folder}"/>
40 <property name="plugin-name" value="${plugin-name}"/>
41
42 <delete dir="${jdt-ui-refactoring-performance-folder}" quiet="true"/>
43 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
44 <property name="classname" value="org.eclipse.jdt.ui.tests.refactoring.reorg.RenamePackagePerfTests1"/>
45 </ant>
46 <delete dir="${jdt-ui-refactoring-performance-folder}" quiet="true"/>
47 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
48 <property name="classname" value="org.eclipse.jdt.ui.tests.refactoring.reorg.RenamePackagePerfTests2"/>
49 </ant>
50
51 <delete dir="${jdt-ui-refactoring-performance-folder}" quiet="true"/>
52 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
53 <property name="classname" value="org.eclipse.jdt.ui.tests.refactoring.reorg.RenameTypePerfAcceptanceTests"/>
54 </ant>
55 <delete dir="${jdt-ui-refactoring-performance-folder}" quiet="true"/>
56 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
57 <property name="classname" value="org.eclipse.jdt.ui.tests.refactoring.reorg.RenameTypePerfTests1"/>
58 </ant>
59 <delete dir="${jdt-ui-refactoring-performance-folder}" quiet="true"/>
60 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
61 <property name="classname" value="org.eclipse.jdt.ui.tests.refactoring.reorg.RenameTypePerfTests2"/>
62 </ant>
63
64 <delete dir="${jdt-ui-refactoring-performance-folder}" quiet="true"/>
65 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
66 <property name="classname" value="org.eclipse.jdt.ui.tests.refactoring.reorg.RenameMethodPerfTests1"/>
67 </ant>
68 <delete dir="${jdt-ui-refactoring-performance-folder}" quiet="true"/>
69 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
70 <property name="classname" value="org.eclipse.jdt.ui.tests.refactoring.reorg.RenameMethodPerfTests2"/>
71 </ant>
72
73 <delete dir="${jdt-ui-refactoring-performance-folder}" quiet="true"/>
74 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
75 <property name="classname" value="org.eclipse.jdt.ui.tests.refactoring.reorg.RenameMethodWithOverloadPerfTests"/>
76 </ant>
77
78 <delete dir="${jdt-ui-refactoring-performance-folder}" quiet="true"/>
79 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
80 <property name="classname" value="org.eclipse.jdt.ui.tests.refactoring.reorg.MoveCompilationUnitPerfTests1"/>
81 </ant>
82 <delete dir="${jdt-ui-refactoring-performance-folder}" quiet="true"/>
83 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
84 <property name="classname" value="org.eclipse.jdt.ui.tests.refactoring.reorg.MoveCompilationUnitPerfTests2"/>
85 </ant>
86
87 <delete dir="${jdt-ui-refactoring-performance-folder}" quiet="true"/>
88 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
89 <property name="classname" value="org.eclipse.jdt.ui.tests.refactoring.reorg.MoveStaticMembersPerfTests1"/>
90 </ant>
91 <delete dir="${jdt-ui-refactoring-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.refactoring.reorg.MoveStaticMembersPerfTests2"/>
94 </ant>
95
96 <delete dir="${jdt-ui-refactoring-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.refactoring.type.ExtractInterfacePerfAcceptanceTests" />
99 </ant>
100
101 <delete dir="${jdt-ui-refactoring-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.refactoring.type.ExtractInterfaceHeapAcceptanceTests" />
104 </ant>
105
106 <delete dir="${jdt-ui-refactoring-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.refactoring.reorg.IntroduceIndirectionPerfAcceptanceTests" />
109 </ant>
110 </target>
111
112 <!-- This target holds code to cleanup the testing environment after -->
113 <!-- after all of the tests have been run. You can use this target to -->
114 <!-- delete temporary files that have been created. -->
115 <target name="cleanup">
116 </target>
117
118 <!-- This target runs the test suite. Any actions that need to happen -->
119 <!-- after all the tests have been run should go here. -->
120 <target name="run" depends="init,suite,cleanup">
121 <echo message="OTTest: done running ${plugin-name}"/>
122<!-- ObjectTeams: per-plugin collect not needed.
123 <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
124 <property name="includes" value="org*.xml"/>
125 <property name="output-file" value="${plugin-name}.xml"/>
126 </ant>
127-->
128 </target>
129
130
131 <!-- This target runs the performance test suite. Any actions that need to happen -->
132 <!-- after all the tests have been run should go here. -->
133 <target name="performance" depends="init,performance-suite,cleanup">
134 <echo message="OTTest: done performance testing ${plugin-name}"/>
135<!-- ObjectTeams: per-plugin collect not needed.
136 <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
137 <property name="includes" value="org*.xml"/>
138 <property name="output-file" value="${plugin-name}.xml"/>
139 </ant>
140-->
141 </target>
142</project>