blob: 665620835197874c59f678f54b110982b4a3a51d [file] [log] [blame]
Stephan Herrmann1bdfa722010-04-01 23:26:59 +00001<project name="testsuite" default="run" basedir=".">
2
3 <property name="otdt-tests-workspace" value="${test.eclipseDir}/otdt-tests-workspace"/>
4
5 <!-- sets the properties eclipseTest-home, and library-file -->
6 <property name="plugin-name" value="org.eclipse.objectteams.otdt.ui.tests.refactoring"/>
7
8 <!-- library.xml need these properties-->
9 <property name="eclipse-home" value="${test.eclipseDir}"/>
10
11 <property name="library-file" value="${test.eclipseDir}/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="${test.eclipseDir}" includes="${plugin-name}.AllTests.xml,${plugin-name}..${file-id}.xml"/>
20<!--
21 <fileset dir="${test.eclipseDir}" includes="${plugin-name}.extractmethod.AllTests.xml,${plugin-name}.extractmethod.${file-id}.xml"/>
22 <fileset dir="${test.eclipseDir}" includes="${plugin-name}.move.AllTests.xml,${plugin-name}.move.${file-id}.xml"/>
23 <fileset dir="${test.eclipseDir}" includes="${plugin-name}.rename.AllTests.xml,${plugin-name}.rename.${file-id}.xml"/>
24 <fileset dir="${test.eclipseDir}" includes="${plugin-name}.reorg.AllTests.xml,${plugin-name}.reorg.${file-id}.xml"/>
25 <fileset dir="${test.eclipseDir}" includes="${plugin-name}.util.AllTests.xml,${plugin-name}.util.${file-id}.xml"/>
26-->
27 </delete>
28 </target>
29
30 <!-- This target defines the tests that need to be run. -->
31 <target name="suite">
32
33 <!-- All OTDT Refactoring tests -->
34 <property name="otdt-allrefactorings-folder"
35 value="${otdt-tests-workspace}/otdt-allrefactorings-folder"/>
36 <delete dir="${otdt-allrefactorings-folder}" quiet="true"/>
37
38 <ant target="ui-test" antfile="${library-file}" dir="${test.eclipseDir}">
39 <property name="data-dir" value="${otdt-allrefactorings-folder}"/>
40 <property name="plugin-name" value="${plugin-name}"/>
41 <property name="classname"
42 value="${plugin-name}.AllTests"/>
43 </ant>
44
45<!--
46 <property name="otdt-extractmethod-folder"
47 value="${otdt-tests-workspace}/otdt-extractmethod-folder"/>
48 <delete dir="${otdt-extractmethod-folder}" quiet="true"/>
49
50 <ant target="ui-test" antfile="${library-file}" dir="${test.eclipseDir}">
51 <property name="data-dir" value="${otdt-extractmethod-folder}"/>
52 <property name="plugin-name" value="${plugin-name}"/>
53 <property name="classname"
54 value="${plugin-name}.extractmethod.AllTests"/>
55 </ant>
56-->
57 <!-- OTDT Move Refactoring tests -->
58<!--
59 <property name="otdt-move-folder"
60 value="${otdt-tests-workspace}/otdt-move-folder"/>
61 <delete dir="${otdt-move-folder}" quiet="true"/>
62
63 <ant target="ui-test" antfile="${library-file}" dir="${test.eclipseDir}">
64 <property name="data-dir" value="${otdt-move-folder}"/>
65 <property name="plugin-name" value="${plugin-name}"/>
66 <property name="classname"
67 value="${plugin-name}.move.AllTests"/>
68 </ant>
69-->
70 <!-- OTDT Rename Refactoring tests -->
71<!--
72 <property name="otdt-rename-folder"
73 value="${otdt-tests-workspace}/otdt-rename-folder"/>
74 <delete dir="${otdt-rename-folder}" quiet="true"/>
75
76 <ant target="ui-test" antfile="${library-file}" dir="${test.eclipseDir}">
77 <property name="data-dir" value="${otdt-rename-folder}"/>
78 <property name="plugin-name" value="${plugin-name}"/>
79 <property name="classname"
80 value="${plugin-name}.rename.AllTests"/>
81 </ant>
82-->
83
84 <!-- OTDT Reorg Refactoring tests -->
85<!--
86 <property name="otdt-reorg-folder"
87 value="${otdt-tests-workspace}/otdt-reorg-folder"/>
88 <delete dir="${otdt-reorg-folder}" quiet="true"/>
89
90 <ant target="ui-test" antfile="${library-file}" dir="${test.eclipseDir}">
91 <property name="data-dir" value="${otdt-reorg-folder}"/>
92 <property name="plugin-name" value="${plugin-name}"/>
93 <property name="classname"
94 value="${plugin-name}.reorg.AllTests"/>
95 </ant>
96-->
97
98 <!-- OTDT Util Refactoring tests -->
99<!--
100 <property name="otdt-util-folder"
101 value="${otdt-tests-workspace}/otdt-util-folder"/>
102 <delete dir="${otdt-util-folder}" quiet="true"/>
103
104 <ant target="ui-test" antfile="${library-file}" dir="${test.eclipseDir}">
105 <property name="data-dir" value="${otdt-util-folder}"/>
106 <property name="plugin-name" value="${plugin-name}"/>
107 <property name="classname"
108 value="${plugin-name}.util.AllTests"/>
109 </ant>
110-->
111 </target>
112
113
114
115 <target name="checkOS">
116 <condition property="os.isWindows">
117 <os family="windows"/>
118 </condition>
119 </target>
120
121 <!-- This target holds code to cleanup the testing environment after -->
122 <!-- after all of the tests have been run. You can use this target to -->
123 <!-- delete temporary files that have been created. -->
124 <target name="cleanup">
125
126 </target>
127
128 <!-- This target runs the test suite. Any actions that need to happen -->
129 <!-- after all the tests have been run should go here. -->
130 <target name="run" depends="init,suite,cleanup">
131
132<!--
133 <ant target="collect" antfile="${library-file}" dir="${test.eclipseDir}">
134 <property name="includes" value="${plugin-name}.AllTests.xml"/>
135 <property name="output-file" value="${plugin-name}.${file-id}.xml"/>
136 </ant>
137-->
138<!--
139 <ant target="collect" antfile="${library-file}" dir="${test.eclipseDir}">
140 <property name="includes" value="${plugin-name}.extractmethod.AllTests.xml"/>
141 <property name="output-file" value="${plugin-name}.extractmethod.${file-id}.xml"/>
142 </ant>
143
144 <ant target="collect" antfile="${library-file}" dir="${test.eclipseDir}">
145 <property name="includes" value="${plugin-name}.move.AllTests.xml"/>
146 <property name="output-file" value="${plugin-name}.move.${file-id}.xml"/>
147 </ant>
148
149 <ant target="collect" antfile="${library-file}" dir="${test.eclipseDir}">
150 <property name="includes" value="${plugin-name}.rename.AllTests.xml"/>
151 <property name="output-file" value="${plugin-name}.rename.${file-id}.xml"/>
152 </ant>
153
154 <ant target="collect" antfile="${library-file}" dir="${test.eclipseDir}">
155 <property name="includes" value="${plugin-name}.reorg.AllTests.xml"/>
156 <property name="output-file" value="${plugin-name}.reorg.${file-id}.xml"/>
157 </ant>
158
159 <ant target="collect" antfile="${library-file}" dir="${test.eclipseDir}">
160 <property name="includes" value="${plugin-name}.util.AllTests.xml"/>
161 <property name="output-file" value="${plugin-name}.util.${file-id}.xml"/>
162 </ant>
163-->
164 </target>
165
166</project>