|
Lines 1-6
Link Here
|
| 1 |
<!-- |
1 |
<!-- |
| 2 |
|
2 |
|
| 3 |
Copyright (c) 2008 IBM Corporation and others. |
3 |
Copyright (c) 2008, 2010 IBM Corporation and others. |
| 4 |
All rights reserved. This program and the accompanying materials |
4 |
All rights reserved. This program and the accompanying materials |
| 5 |
are made available under the terms of the Eclipse Public License v1.0 |
5 |
are made available under the terms of the Eclipse Public License v1.0 |
| 6 |
which accompanies this distribution, and is available at |
6 |
which accompanies this distribution, and is available at |
|
Lines 24-52
Link Here
|
| 24 |
<!-- Setup the location to store the BIRT Reports --> |
24 |
<!-- Setup the location to store the BIRT Reports --> |
| 25 |
<property name="report.publication.location" location="${reportLocation}"/> |
25 |
<property name="report.publication.location" location="${reportLocation}"/> |
| 26 |
|
26 |
|
| 27 |
<target name="runTests" depends="runTestSuites, checkResults, publishBVTReport" /> |
27 |
<!-- Set the project property --> |
|
|
28 |
<property name="tptp.test.project" value="${testProject}" /> |
| 29 |
|
| 30 |
<!-- import the tests into the workspace, configure the remote machine, run the tests, and update the test report --> |
| 31 |
<!-- import removed for artifact setup, call it first --> |
| 32 |
<target name="runTests" depends="configureRemoteMachine, runTestSuites, checkResults, publishBVTReport, checkInBVT" /> |
| 28 |
|
33 |
|
| 29 |
<!-- Execute multiple test suites --> |
34 |
<!-- Execute multiple test suites --> |
| 30 |
<target name="runTestSuites"> |
35 |
<target name="runTestSuites"> |
| 31 |
<property name="tptp.test.project" value="${testProject}" /> |
36 |
<antcall target="time"/> |
|
|
37 |
<!-- BVT cannot run AGR, see bug 305325 --> |
| 32 |
<!-- Setup the location of the test suites --> |
38 |
<!-- Setup the location of the test suites --> |
| 33 |
<property name="project.dir" value="${tptp.test.workspace}/${tptp.test.project}" /> |
39 |
<property name="project.dir" value="${tptp.test.workspace}/${tptp.test.project}" /> |
| 34 |
<!-- <property name="tptp.test.connection" value="tptp:rac://${hostname}:10002" /> --> |
|
|
| 35 |
<property name="tptp.test.deployment" value="deployment/BVTDeployment.deploy" /> |
40 |
<property name="tptp.test.deployment" value="deployment/BVTDeployment.deploy" /> |
| 36 |
|
41 |
|
| 37 |
<tptp:execution resultsrefid="tptp.test.results"> |
42 |
<tptp:execution resultsrefid="test_results_reference_ID" overwrite="true" results="BVT_results/"> |
| 38 |
<fileset dir="${project.dir}"> |
43 |
<filelist dir="${project.dir}" > |
| 39 |
<include name="**/*${testSuite}*.testsuite" /> |
44 |
<file name="BVT/AllBVTJUnitTests_${targetJRE}.testsuite"/> |
| 40 |
<exclude name="**/*${excludeTestSuite}*.testsuite" /> |
45 |
<file name="BVT/AllBVTJUnitPluginTests_${targetJRE}.testsuite"/> |
| 41 |
</fileset> |
46 |
<!-- <file name="BVT/AllBVTGUITests_${targetJRE}.testsuite"/> --> |
|
|
47 |
</filelist> |
| 42 |
</tptp:execution> |
48 |
</tptp:execution> |
| 43 |
</target> |
49 |
</target> |
| 44 |
|
50 |
|
| 45 |
<target name="checkResults" > |
51 |
<target name="checkResults"> |
|
|
52 |
<antcall target="time"/> |
| 46 |
<echo message="Checking results"/> |
53 |
<echo message="Checking results"/> |
| 47 |
<condition property="tptp.test.success"> |
54 |
<condition property="tptp.test.success"> |
| 48 |
<tptp:interrogation verdictproperty="tptp.test.verdict"> |
55 |
<tptp:interrogation verdictproperty="tptp.test.verdict"> |
| 49 |
<filelist refid="tptp.test.results"/> |
56 |
<filelist refid="test_results_reference_ID"/> |
| 50 |
</tptp:interrogation> |
57 |
</tptp:interrogation> |
| 51 |
</condition> |
58 |
</condition> |
| 52 |
<echo message="The test results are: '${tptp.test.verdict}'"/> |
59 |
<echo message="The test results are: '${tptp.test.verdict}'"/> |
|
Lines 66-81
Link Here
|
| 66 |
|
73 |
|
| 67 |
<!-- Publish report --> |
74 |
<!-- Publish report --> |
| 68 |
<target name="publishBVTReport"> |
75 |
<target name="publishBVTReport"> |
|
|
76 |
<antcall target="time"/> |
| 69 |
<property name="tptp.publication.service" value="org.eclipse.tptp.test.report.birt.publish-tabular" /> |
77 |
<property name="tptp.publication.service" value="org.eclipse.tptp.test.report.birt.publish-tabular" /> |
| 70 |
<property name="tptp.test.project" value="${testProject}" /> |
78 |
<tptp:publication report="${report.publication.location}/${targetJRE}"> |
| 71 |
<tptp:publication report="${report.publication.location}"> |
79 |
<filelist refid="test_results_reference_ID"/> |
| 72 |
<filelist refid="tptp.test.results"/> |
|
|
| 73 |
</tptp:publication> |
80 |
</tptp:publication> |
| 74 |
</target> |
81 |
</target> |
| 75 |
|
82 |
|
| 76 |
<target name="publishReport" depends="setPublishEndTime"> |
83 |
<target name="publishReport" depends="setPublishEndTime"> |
| 77 |
<property name="tptp.publication.service" value="org.eclipse.tptp.test.report.birt.publish-tabular-testsuites" /> |
84 |
<property name="tptp.publication.service" value="org.eclipse.tptp.test.report.birt.publish-tabular-testsuites" /> |
| 78 |
<property name="tptp.test.project" value="${testProject}" /> |
|
|
| 79 |
<echo message="Publishing reports ${startTime} ${endTime}" /> |
85 |
<echo message="Publishing reports ${startTime} ${endTime}" /> |
| 80 |
<tptp:publication report="${report.publication.location}" |
86 |
<tptp:publication report="${report.publication.location}" |
| 81 |
startDateTime="${startTime}" endDateTime="${endTime}"> |
87 |
startDateTime="${startTime}" endDateTime="${endTime}"> |
|
Lines 86-189
Link Here
|
| 86 |
</tptp:publication> |
92 |
</tptp:publication> |
| 87 |
</target> |
93 |
</target> |
| 88 |
|
94 |
|
| 89 |
<target name="setupBVT" depends="getDrivers, setupLocalMachine, setupRemoteMachine, cleanupDownloads, configureRemoteMachine, extractTests, import" /> |
95 |
<!-- Download the drivers, create a local workbench and workspace, and extract the tests from CVS --> |
|
|
96 |
<target name="setupBVT" depends="getDrivers, setupLocalMachine, extractTests" /> |
| 90 |
<target name="setupReport" depends="cleanupWorkspace, extractTests, import" /> |
97 |
<target name="setupReport" depends="cleanupWorkspace, extractTests, import" /> |
| 91 |
|
98 |
|
| 92 |
<target name="getDrivers"> |
99 |
<target name="getDrivers" depends="cleanupDownloads"> |
|
|
100 |
<antcall target="time"/> |
| 93 |
|
101 |
|
|
|
102 |
<!-- Create the working directories --> |
| 94 |
<mkdir dir="${tempDir}" /> |
103 |
<mkdir dir="${tempDir}" /> |
| 95 |
|
|
|
| 96 |
<!-- Download the tptp all in one and update it with the additional dependencies --> |
| 97 |
<get dest="${tempDir}/${tptpWinDriver}" src="${tptpWinUrl}" /> |
| 98 |
<get dest="${tempDir}/${tptpLinuxDriver}" src="${tptpLinuxUrl}" /> |
| 99 |
<get dest="${tempDir}/${apiRecFrameworkDriver}" src="${apiRecFrameworkUrl}" /> |
| 100 |
<get dest="${tempDir}/${agrDriver}" src="${agrUrl}" /> |
| 101 |
<get dest="${tempDir}/${ltaDriver}" src="${ltaUrl}" /> |
| 102 |
<get dest="${tempDir}/${testReportBirtDriver}" src="${testReportBirtUrl}" /> |
| 103 |
<get dest="${tempDir}/${monitorReportBirtDriver}" src="${monitorReportBirtUrl}" /> |
| 104 |
<get dest="${tempDir}/${traceReportBirtDriver}" src="${traceReportBirtUrl}" /> |
| 105 |
<get dest="${tempDir}/${platformReportBirtDriver}" src="${platformReportBirtUrl}" /> |
| 106 |
<get dest="${tempDir}/${perfmonDriver}" src="${perfmonUrl}" /> |
| 107 |
<get dest="${tempDir}/${codereviewCppDriver}" src="${codereviewCppUrl}" /> |
| 108 |
<get dest="${tempDir}/${birtDriver}" src="${birtUrl}"/> |
| 109 |
<get dest="${tempDir}/${cdtDriver}" src="${cdtUrl}"/> |
| 110 |
<get dest="${tempDir}/${dtpDriver}" src="${dtpUrl}"/> |
| 111 |
<get dest="${tempDir}/${gefDriver}" src="${gefUrl}"/> |
| 112 |
<get dest="${tempDir}/${wtpDriver}" src="${wtpUrl}"/> |
| 113 |
|
| 114 |
<mkdir dir="${tempDir}/dependencies" /> |
104 |
<mkdir dir="${tempDir}/dependencies" /> |
| 115 |
<antcall target="unzip"> |
105 |
<mkdir dir="${tempDir}/linuxAllInOne"/> |
| 116 |
<param name="destDir" value="${tempDir}/dependencies" /> |
106 |
<mkdir dir="${tempDir}/winAllInOne"/> |
| 117 |
<param name="srcDir" value="${tempDir}/${apiRecFrameworkDriver}" /> |
107 |
|
| 118 |
</antcall> |
108 |
<!-- Download TPTP first so As-Is overwrites empty plug-ins --> |
| 119 |
<antcall target="unzip"> |
109 |
<antcall target="fetch.unzip"> |
| 120 |
<param name="destDir" value="${tempDir}/dependencies" /> |
110 |
<param name="url" value="${tptpAllUrl}" /> |
| 121 |
<param name="srcDir" value="${tempDir}/${agrDriver}" /> |
111 |
<param name="driver" value="${tptpAllDriver}" /> |
|
|
112 |
<param name="srcDir" value="${tempDir}" /> |
| 113 |
<param name="destDir" value="${tempDir}/dependencies" /> |
| 122 |
</antcall> |
114 |
</antcall> |
| 123 |
<antcall target="unzip"> |
115 |
|
| 124 |
<param name="destDir" value="${tempDir}/dependencies" /> |
116 |
<!-- Download the tptp all in one and update it with the additional dependencies --> |
| 125 |
<param name="srcDir" value="${tempDir}/${ltaDriver}" /> |
117 |
<antcall target="fetch.unzip"> |
| 126 |
</antcall> |
118 |
<param name="url" value="${agrUrl}" /> |
| 127 |
<antcall target="unzip"> |
119 |
<param name="driver" value="${agrDriver}" /> |
| 128 |
<param name="destDir" value="${tempDir}/dependencies" /> |
120 |
<param name="srcDir" value="${tempDir}" /> |
| 129 |
<param name="srcDir" value="${tempDir}/${testReportBirtDriver}" /> |
121 |
<param name="destDir" value="${tempDir}/dependencies" /> |
| 130 |
</antcall> |
|
|
| 131 |
<antcall target="unzip"> |
| 132 |
<param name="destDir" value="${tempDir}/dependencies" /> |
| 133 |
<param name="srcDir" value="${tempDir}/${monitorReportBirtDriver}" /> |
| 134 |
</antcall> |
122 |
</antcall> |
| 135 |
<antcall target="unzip"> |
123 |
|
| 136 |
<param name="destDir" value="${tempDir}/dependencies" /> |
124 |
<antcall target="fetch.unzip"> |
| 137 |
<param name="srcDir" value="${tempDir}/${traceReportBirtDriver}" /> |
125 |
<param name="url" value="${testReportBirtUrl}" /> |
|
|
126 |
<param name="driver" value="${testReportBirtDriver}" /> |
| 127 |
<param name="srcDir" value="${tempDir}" /> |
| 128 |
<param name="destDir" value="${tempDir}/dependencies" /> |
| 138 |
</antcall> |
129 |
</antcall> |
| 139 |
<antcall target="unzip"> |
130 |
|
| 140 |
<param name="destDir" value="${tempDir}/dependencies" /> |
131 |
<antcall target="fetch.unzip"> |
| 141 |
<param name="srcDir" value="${tempDir}/${platformReportBirtDriver}" /> |
132 |
<param name="url" value="${traceReportBirtUrl}" /> |
|
|
133 |
<param name="driver" value="${traceReportBirtDriver}" /> |
| 134 |
<param name="srcDir" value="${tempDir}" /> |
| 135 |
<param name="destDir" value="${tempDir}/dependencies" /> |
| 142 |
</antcall> |
136 |
</antcall> |
| 143 |
<antcall target="unzip"> |
137 |
|
| 144 |
<param name="destDir" value="${tempDir}/dependencies" /> |
138 |
<antcall target="fetch.unzip"> |
| 145 |
<param name="srcDir" value="${tempDir}/${perfmonDriver}" /> |
139 |
<param name="url" value="${birtUrl}" /> |
|
|
140 |
<param name="driver" value="${birtDriver}" /> |
| 141 |
<param name="srcDir" value="${tempDir}" /> |
| 142 |
<param name="destDir" value="${tempDir}/dependencies" /> |
| 146 |
</antcall> |
143 |
</antcall> |
| 147 |
<antcall target="unzip"> |
144 |
|
| 148 |
<param name="destDir" value="${tempDir}/dependencies" /> |
145 |
<antcall target="fetch.unzip"> |
| 149 |
<param name="srcDir" value="${tempDir}/${codereviewCppDriver}" /> |
146 |
<param name="url" value="${dtpUrl}" /> |
|
|
147 |
<param name="driver" value="${dtpDriver}" /> |
| 148 |
<param name="srcDir" value="${tempDir}" /> |
| 149 |
<param name="destDir" value="${tempDir}/dependencies" /> |
| 150 |
</antcall> |
150 |
</antcall> |
| 151 |
<antcall target="unzip"> |
151 |
|
| 152 |
<param name="destDir" value="${tempDir}/dependencies" /> |
152 |
<!-- The eclipse project drivers are combined manually since the URL is generic to the project --> |
| 153 |
<param name="srcDir" value="${tempDir}/${birtDriver}" /> |
153 |
<antcall target="fetch.untar"> |
|
|
154 |
<param name="url" value="${eclipseSDKUrl}/${eclipseLinuxSDKDriver}" /> |
| 155 |
<param name="driver" value="${eclipseLinuxSDKDriver}" /> |
| 156 |
<param name="srcDir" value="${tempDir}" /> |
| 157 |
<param name="destDir" value="${tempDir}/linuxAllInOne" /> |
| 154 |
</antcall> |
158 |
</antcall> |
| 155 |
<antcall target="unzip"> |
159 |
|
| 156 |
<param name="destDir" value="${tempDir}/dependencies/eclipse" /> |
160 |
<antcall target="fetch.unzip"> |
| 157 |
<param name="srcDir" value="${tempDir}/${cdtDriver}" /> |
161 |
<param name="url" value="${eclipseSDKUrl}/${eclipseWinSDKDriver}" /> |
|
|
162 |
<param name="driver" value="${eclipseWinSDKDriver}" /> |
| 163 |
<param name="srcDir" value="${tempDir}" /> |
| 164 |
<param name="destDir" value="${tempDir}/winAllInOne" /> |
| 165 |
</antcall> |
| 166 |
|
| 167 |
<antcall target="fetch.unzip"> |
| 168 |
<param name="url" value="${emfUrl}" /> |
| 169 |
<param name="driver" value="${emfDriver}" /> |
| 170 |
<param name="srcDir" value="${tempDir}" /> |
| 171 |
<param name="destDir" value="${tempDir}/dependencies" /> |
| 158 |
</antcall> |
172 |
</antcall> |
| 159 |
<antcall target="unzip"> |
173 |
|
| 160 |
<param name="destDir" value="${tempDir}/dependencies" /> |
174 |
<antcall target="fetch.unzip"> |
| 161 |
<param name="srcDir" value="${tempDir}/${dtpDriver}" /> |
175 |
<param name="url" value="${xsdUrl}" /> |
|
|
176 |
<param name="driver" value="${xsdDriver}" /> |
| 177 |
<param name="srcDir" value="${tempDir}" /> |
| 178 |
<param name="destDir" value="${tempDir}/dependencies" /> |
| 162 |
</antcall> |
179 |
</antcall> |
| 163 |
<antcall target="unzip"> |
180 |
|
| 164 |
<param name="destDir" value="${tempDir}/dependencies" /> |
181 |
<antcall target="fetch.unzip"> |
| 165 |
<param name="srcDir" value="${tempDir}/${gefDriver}" /> |
182 |
<param name="url" value="${gefUrl}" /> |
|
|
183 |
<param name="driver" value="${gefDriver}" /> |
| 184 |
<param name="srcDir" value="${tempDir}" /> |
| 185 |
<param name="destDir" value="${tempDir}/dependencies" /> |
| 166 |
</antcall> |
186 |
</antcall> |
| 167 |
<antcall target="unzip"> |
187 |
|
| 168 |
<param name="destDir" value="${tempDir}/dependencies" /> |
188 |
<antcall target="fetch.unzip"> |
| 169 |
<param name="srcDir" value="${tempDir}/${wtpDriver}" /> |
189 |
<param name="url" value="${wtpUrl}" /> |
|
|
190 |
<param name="driver" value="${wtpDriver}" /> |
| 191 |
<param name="srcDir" value="${tempDir}" /> |
| 192 |
<param name="destDir" value="${tempDir}/dependencies" /> |
| 170 |
</antcall> |
193 |
</antcall> |
| 171 |
|
194 |
|
|
|
195 |
|
| 172 |
<echo message="Updating Windows All-In-One" /> |
196 |
<echo message="Updating Windows All-In-One" /> |
| 173 |
<mkdir dir="${tempDir}/winAllInOne" /> |
|
|
| 174 |
<antcall target="unzip"> |
| 175 |
<param name="destDir" value="${tempDir}/winAllInOne" /> |
| 176 |
<param name="srcDir" value="${tempDir}/${tptpWinDriver}" /> |
| 177 |
</antcall> |
| 178 |
|
197 |
|
|
|
198 |
<!-- Copy the plug-ins into the All In One --> |
| 179 |
<antcall target="copy"> |
199 |
<antcall target="copy"> |
| 180 |
<param name="baseDir" value="${tempDir}" /> |
200 |
<param name="baseDir" value="${tempDir}" /> |
| 181 |
<param name="destDir" value="winAllInOne" /> |
201 |
<param name="destDir" value="winAllInOne/eclipse/dropins" /> |
| 182 |
<param name="srcDir" value="dependencies/eclipse" /> |
202 |
<param name="srcDir" value="dependencies/eclipse" /> |
| 183 |
</antcall> |
203 |
</antcall> |
| 184 |
|
204 |
|
| 185 |
<delete file="${tempDir}/${tptpWinDriver}" /> |
|
|
| 186 |
|
| 187 |
<antcall target="zip"> |
205 |
<antcall target="zip"> |
| 188 |
<param name="destDir" value="${tempDir}" /> |
206 |
<param name="destDir" value="${tempDir}" /> |
| 189 |
<param name="zipName" value="${tptpWinDriver}" /> |
207 |
<param name="zipName" value="${tptpWinDriver}" /> |
|
Lines 192-211
Link Here
|
| 192 |
</antcall> |
210 |
</antcall> |
| 193 |
|
211 |
|
| 194 |
<echo message="Updating Linux All-In-One" /> |
212 |
<echo message="Updating Linux All-In-One" /> |
| 195 |
<mkdir dir="${tempDir}/linuxAllInOne" /> |
213 |
|
| 196 |
<antcall target="unzip"> |
214 |
<!-- Copy the plug-ins into the All In One --> |
| 197 |
<param name="destDir" value="${tempDir}/linuxAllInOne" /> |
|
|
| 198 |
<param name="srcDir" value="${tempDir}/${tptpLinuxDriver}" /> |
| 199 |
</antcall> |
| 200 |
|
| 201 |
<antcall target="copy"> |
215 |
<antcall target="copy"> |
| 202 |
<param name="baseDir" value="${tempDir}" /> |
216 |
<param name="baseDir" value="${tempDir}" /> |
| 203 |
<param name="destDir" value="linuxAllInOne" /> |
217 |
<param name="destDir" value="linuxAllInOne/eclipse/dropins" /> |
| 204 |
<param name="srcDir" value="dependencies/eclipse" /> |
218 |
<param name="srcDir" value="dependencies/eclipse" /> |
| 205 |
</antcall> |
219 |
</antcall> |
| 206 |
|
220 |
|
| 207 |
<delete file="${tempDir}/${tptpLinuxDriver}" /> |
|
|
| 208 |
|
| 209 |
<antcall target="zip"> |
221 |
<antcall target="zip"> |
| 210 |
<param name="destDir" value="${tempDir}" /> |
222 |
<param name="destDir" value="${tempDir}" /> |
| 211 |
<param name="zipName" value="${tptpLinuxDriver}" /> |
223 |
<param name="zipName" value="${tptpLinuxDriver}" /> |
|
Lines 213-222
Link Here
|
| 213 |
<param name="srcFolder" value="eclipse" /> |
225 |
<param name="srcFolder" value="eclipse" /> |
| 214 |
</antcall> |
226 |
</antcall> |
| 215 |
|
227 |
|
| 216 |
<get dest="${tempDir}/${acwinDriver}" src="${acwinUrl}" /> |
228 |
<get dest="${tempDir}/${acLinuxDriver}" src="${acLinuxUrl}" /> |
|
|
229 |
<get dest="${tempDir}/${acWinDriver}" src="${acWinUrl}" /> |
| 217 |
|
230 |
|
| 218 |
</target> |
231 |
</target> |
| 219 |
|
232 |
|
|
|
233 |
<target name="fetch.unzip"> |
| 234 |
<get dest="${srcDir}/${driver}" src="${url}" /> |
| 235 |
<antcall target="unzip"> |
| 236 |
<param name="srcDir" value="${srcDir}/${driver}" /> |
| 237 |
<param name="destDir" value="${destDir}" /> |
| 238 |
</antcall> |
| 239 |
</target> |
| 240 |
|
| 241 |
<target name="fetch.untar"> |
| 242 |
<get dest="${srcDir}/${driver}" src="${url}" /> |
| 243 |
<antcall target="untar"> |
| 244 |
<param name="srcDir" value="${srcDir}/${driver}" /> |
| 245 |
<param name="destDir" value="${destDir}" /> |
| 246 |
</antcall> |
| 247 |
</target> |
| 248 |
|
| 249 |
<target name="untar"> |
| 250 |
<exec executable="tar" dir="${destDir}"> |
| 251 |
<arg line="-oxzf ${srcDir}" /> |
| 252 |
</exec> |
| 253 |
</target> |
| 254 |
|
| 220 |
<target name="unzip"> |
255 |
<target name="unzip"> |
| 221 |
<exec executable="unzip" dir="${destDir}"> |
256 |
<exec executable="unzip" dir="${destDir}"> |
| 222 |
<arg line="-oq ${srcDir}" /> |
257 |
<arg line="-oq ${srcDir}" /> |
|
Lines 236-241
Link Here
|
| 236 |
</target> |
271 |
</target> |
| 237 |
|
272 |
|
| 238 |
<target name="setupLocalMachine"> |
273 |
<target name="setupLocalMachine"> |
|
|
274 |
<antcall target="time"/> |
| 239 |
<echo message="Cleaning up Local Machine before setup" /> |
275 |
<echo message="Cleaning up Local Machine before setup" /> |
| 240 |
<antcall target="cleanupLocal" /> |
276 |
<antcall target="cleanupLocal" /> |
| 241 |
<antcall target="copy"> |
277 |
<antcall target="copy"> |
|
Lines 250-255
Link Here
|
| 250 |
<include name="org.eclipse.hyades.execution_*/ant-tptp.jar" /> |
286 |
<include name="org.eclipse.hyades.execution_*/ant-tptp.jar" /> |
| 251 |
</fileset> |
287 |
</fileset> |
| 252 |
</copy> |
288 |
</copy> |
|
|
289 |
<copy todir="${ant.home}/lib" overwrite="true" flatten="true"> |
| 290 |
<fileset dir="${eclipse.home}/eclipse/dropins/eclipse/plugins"> |
| 291 |
<include name="org.eclipse.hyades.execution_*/ant-tptp.jar" /> |
| 292 |
</fileset> |
| 293 |
</copy> |
| 253 |
</target> |
294 |
</target> |
| 254 |
|
295 |
|
| 255 |
<target name="setupRemoteMachine"> |
296 |
<target name="setupRemoteMachine"> |
|
Lines 259-285
Link Here
|
| 259 |
<echo message="Copying All-In-One and Agent Controller to Remote Machine" /> |
300 |
<echo message="Copying All-In-One and Agent Controller to Remote Machine" /> |
| 260 |
<sshexec host="${hostname}" username="${user}" command="mkdir ${dir}/workbench; mkdir ${dir}/ac" keyfile="${keyfile}" passphrase="" trust="true" /> |
301 |
<sshexec host="${hostname}" username="${user}" command="mkdir ${dir}/workbench; mkdir ${dir}/ac" keyfile="${keyfile}" passphrase="" trust="true" /> |
| 261 |
<scp file="${tempDir}/${tptpDriver}" todir="${user}@${hostname}:${dir}/workbench/" keyfile="${keyfile}" passphrase="" trust="true" /> |
302 |
<scp file="${tempDir}/${tptpDriver}" todir="${user}@${hostname}:${dir}/workbench/" keyfile="${keyfile}" passphrase="" trust="true" /> |
| 262 |
<scp file="${tempDir}/${acwinDriver}" todir="${user}@${hostname}:${dir}/ac/" keyfile="${keyfile}" passphrase="" trust="true" /> |
303 |
<scp file="${tempDir}/${acDriver}" todir="${user}@${hostname}:${dir}/ac/" keyfile="${keyfile}" passphrase="" trust="true" /> |
| 263 |
|
304 |
|
| 264 |
<echo message="Extracting All-In-One and Agent Controller on Remote Machine" /> |
305 |
<echo message="Extracting Agent Controller on Remote Machine" /> |
| 265 |
<sshexec host="${hostname}" username="${user}" command="unzip -q ${dir}/ac/${acwinDriver} -d ${dir}/ac; chmod -R +x ${dir}/ac; unzip -q ${dir}/workbench/${tptpDriver} -d ${dir}/workbench; chmod -R +x ${dir}/workbench/eclipse" keyfile="${keyfile}" passphrase="" trust="true" /> |
306 |
<sshexec host="${hostname}" username="${user}" command="unzip -q ${dir}/ac/${acDriver} -d ${dir}/ac; chmod -R +x ${dir}/ac" keyfile="${keyfile}" passphrase="" trust="true" /> |
| 266 |
|
307 |
|
| 267 |
</target> |
308 |
</target> |
| 268 |
|
309 |
|
| 269 |
<target name="cleanupRemote"> |
310 |
<target name="cleanupRemote"> |
| 270 |
<echo message="Shutting down the agent controller on the remote machine" /> |
311 |
<echo message="Shutting down the agent controller on the remote machine" /> |
| 271 |
<sshexec host="${hostname}" username="${user}" command="${dir}/ac/bin/acserver -shutdown" keyfile="${keyfile}" passphrase="" trust="true" failonerror="false" /> |
312 |
<sshexec host="${hostname}" username="${user}" command="${dir}/ac/bin/ACServer -shutdown" keyfile="${keyfile}" passphrase="" trust="true" failonerror="false" /> |
| 272 |
<echo message="Removing agent controller and workbench directories on the remote machine" /> |
313 |
<echo message="Removing agent controller and workbench directories on the remote machine" /> |
| 273 |
<sshexec host="${hostname}" username="${user}" command="rm -fr ${dir}/ac; rm -fr ${dir}/workbench" keyfile="${keyfile}" passphrase="" trust="true" failonerror="false"/> |
314 |
<sshexec host="${hostname}" username="${user}" command="rm -fr ${dir}/ac; rm -fr ${dir}/workbench" keyfile="${keyfile}" passphrase="" trust="true" failonerror="false"/> |
| 274 |
</target> |
315 |
</target> |
| 275 |
|
316 |
|
| 276 |
<target name="cleanupDownloads"> |
317 |
<target name="cleanupDownloads"> |
|
|
318 |
<antcall target="time"/> |
| 277 |
<!-- Remove download directory --> |
319 |
<!-- Remove download directory --> |
| 278 |
<echo message="Removing download directory" /> |
320 |
<echo message="Removing download directory" /> |
| 279 |
<delete dir="${tempDir}" failonerror="false" /> |
321 |
<delete dir="${tempDir}" failonerror="false" /> |
| 280 |
</target> |
322 |
</target> |
| 281 |
|
323 |
|
| 282 |
<target name="cleanupLocal" depends="cleanupWorkspace, cleanupReports"> |
324 |
<target name="cleanupLocal" depends="cleanupWorkspace"> |
| 283 |
<!-- Remove eclipse --> |
325 |
<!-- Remove eclipse --> |
| 284 |
<echo message="Removing eclipse directory" /> |
326 |
<echo message="Removing eclipse directory" /> |
| 285 |
<delete dir="${eclipse.home}" failonerror="false" /> |
327 |
<delete dir="${eclipse.home}" failonerror="false" /> |
|
Lines 298-336
Link Here
|
| 298 |
</target> |
340 |
</target> |
| 299 |
|
341 |
|
| 300 |
<target name="extractTests"> |
342 |
<target name="extractTests"> |
| 301 |
<echo message="Extracting Monitor" /> |
343 |
<antcall target="time"/> |
| 302 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d monitor test-results/monitor" reallyquiet="true"/> |
344 |
<echo message="Extracting Monitor"/> |
| 303 |
|
345 |
<echo message="nothing to extract, skipping" /> |
| 304 |
<echo message="Removing org.eclipse.tptp.monitoring.notifications.test" /> |
346 |
<!-- No monitor tests, if tests are added update import to include this directory --> |
| 305 |
<delete dir="monitor/org.eclipse.tptp.monitoring.notifications.test" /> |
347 |
<!--<delete dir="monitor" failonerror="false" />--> |
|
|
348 |
<!--<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d monitor test-results/monitor" reallyquiet="true"/>--> |
| 306 |
|
349 |
|
| 307 |
<echo message="Extracting Platform" /> |
350 |
<echo message="Extracting Platform" /> |
| 308 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d platform test-results/platform" reallyquiet="true"/> |
351 |
<delete dir="platform" failonerror="false" /> |
|
|
352 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d platform/org.eclipse.hyades.probekit.tests test-results/platform/org.eclipse.hyades.probekit.tests" reallyquiet="true"/> |
| 353 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d platform/org.eclipse.hyades.tests test-results/platform/org.eclipse.hyades.tests" reallyquiet="true"/> |
| 354 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d platform/org.eclipse.hyades.trace.ui.tests test-results/platform/org.eclipse.hyades.trace.ui.tests" reallyquiet="true"/> |
| 355 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d platform/org.eclipse.hyades.use.cases test-results/platform/org.eclipse.hyades.use.cases" reallyquiet="true"/> |
| 356 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d platform/org.eclipse.tptp.ac.testautomation test-results/platform/org.eclipse.tptp.ac.testautomation" reallyquiet="true"/> |
| 357 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d platform/org.eclipse.tptp.platform.common.ui.tests test-results/platform/org.eclipse.tptp.platform.common.ui.tests" reallyquiet="true"/> |
| 358 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d platform/org.eclipse.tptp.platform.report.tests test-results/platform/org.eclipse.tptp.platform.report.tests" reallyquiet="true"/> |
| 309 |
|
359 |
|
| 310 |
<echo message="Extracting Test" /> |
360 |
<echo message="Extracting Test" /> |
| 311 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d test test-results/test" reallyquiet="true"/> |
361 |
<delete dir="test" failonerror="false" /> |
|
|
362 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d test/org.eclipse.hyades.execution.harness.tests test-results/test/org.eclipse.hyades.execution.harness.tests" reallyquiet="true"/> |
| 363 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d test/org.eclipse.hyades.test.core.services.tests test-results/test/org.eclipse.hyades.test.core.services.tests" reallyquiet="true"/> |
| 364 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d test/org.eclipse.hyades.test.core.tests test-results/test/org.eclipse.hyades.test.core.tests" reallyquiet="true"/> |
| 365 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d test/org.eclipse.hyades.test.java.tests test-results/test/org.eclipse.hyades.test.java.tests" reallyquiet="true"/> |
| 366 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d test/org.eclipse.hyades.test.tools.core.tests test-results/test/org.eclipse.hyades.test.tools.core.tests" reallyquiet="true"/> |
| 367 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d test/org.eclipse.hyades.test.ui.datapool.tests test-results/test/org.eclipse.hyades.test.ui.datapool.tests" reallyquiet="true"/> |
| 368 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d test/org.eclipse.hyades.test.ui.logViewer.tests test-results/test/org.eclipse.hyades.test.ui.logViewer.tests" reallyquiet="true"/> |
| 369 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d test/org.eclipse.hyades.test.ui.navigator.tests test-results/test/org.eclipse.hyades.test.ui.navigator.tests" reallyquiet="true"/> |
| 370 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d test/org.eclipse.hyades.test.URLTest.tests test-results/test/org.eclipse.hyades.test.URLTest.tests" reallyquiet="true"/> |
| 371 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d test/org.eclipse.tptp.test.auto.gui.tests test-results/test/org.eclipse.tptp.test.auto.gui.tests" reallyquiet="true"/> |
| 372 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d test/org.eclipse.tptp.test.testservices.tests test-results/test/org.eclipse.tptp.test.testservices.tests" reallyquiet="true"/> |
| 312 |
|
373 |
|
| 313 |
<echo message="Extracting Trace" /> |
374 |
<echo message="Extracting Trace" /> |
| 314 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d trace test-results/trace" reallyquiet="true"/> |
375 |
<delete dir="trace" failonerror="false" /> |
|
|
376 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d trace/org.eclipse.tptp.trace.use.cases test-results/trace/org.eclipse.tptp.trace.use.cases" reallyquiet="true"/> |
| 377 |
<antcall target="time"/> |
| 378 |
</target> |
| 315 |
|
379 |
|
|
|
380 |
<target name="import"> |
| 381 |
<antcall target="time"/> |
| 382 |
<echo message="Cleanup workspace, if it exists"/> |
| 383 |
<delete dir="${tptp.test.workspace}" failonerror="false"/> |
| 316 |
<mkdir dir="${tptp.test.workspace}" /> |
384 |
<mkdir dir="${tptp.test.workspace}" /> |
|
|
385 |
<echo message="Copying extracted tests to workspace" /> |
| 386 |
<copy todir="${tptp.test.workspace}"> |
| 387 |
<!--<fileset dir="monitor/" /> No monitor tests, if any are checked out, add this back --> |
| 388 |
<fileset dir="platform/" /> |
| 389 |
<fileset dir="test/" /> |
| 390 |
<fileset dir="trace/" /> |
| 391 |
</copy> |
| 317 |
|
392 |
|
| 318 |
<echo message="Moving to Workspace" /> |
393 |
<echo message="Updating BVT test results"/> |
| 319 |
<move todir="${tptp.test.workspace}"> |
394 |
<delete dir="${tptp.test.workspace}/org.eclipse.hyades.tests/BVT_results" /> |
| 320 |
<fileset dir="monitor/" /> |
395 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co -r ${cvsBranch} -d temp_BVT_results test-results/platform/org.eclipse.hyades.tests/BVT_results" reallyquiet="true"/> |
| 321 |
<fileset dir="platform/" /> |
396 |
<copy todir="${tptp.test.workspace}/org.eclipse.hyades.tests/BVT_results"> |
| 322 |
<fileset dir="test/" /> |
397 |
<fileset dir="temp_BVT_results/" /> |
| 323 |
<fileset dir="trace/" /> |
398 |
</copy> |
| 324 |
</move> |
399 |
<delete dir="temp_BVT_results" /> |
| 325 |
|
|
|
| 326 |
<echo message="Cleaning up extract" /> |
| 327 |
<delete dir="monitor" /> |
| 328 |
<delete dir="platform" /> |
| 329 |
<delete dir="test" /> |
| 330 |
<delete dir="trace" /> |
| 331 |
</target> |
| 332 |
|
400 |
|
| 333 |
<target name="import"> |
|
|
| 334 |
<echo message="Before import into workspace"/> |
401 |
<echo message="Before import into workspace"/> |
| 335 |
<tptp:importExistingProjects> |
402 |
<tptp:importExistingProjects> |
| 336 |
<fileset dir="${tptp.test.workspace}"> |
403 |
<fileset dir="${tptp.test.workspace}"> |
|
Lines 340-363
Link Here
|
| 340 |
<echo message="After import into workspace"/> |
407 |
<echo message="After import into workspace"/> |
| 341 |
</target> |
408 |
</target> |
| 342 |
|
409 |
|
| 343 |
<target name="configureRemoteMachine"> |
410 |
<target name="configureRemoteMachine" depends="setupRemoteMachine"> |
|
|
411 |
<antcall target="time"/> |
| 412 |
<echo message="Cleaning up workbench on Remote Machine" /> |
| 413 |
<sshexec host="${hostname}" username="${user}" command="rm -rf ${dir}/workbench/eclipse; rm -rf $TEMP/build" keyfile="${keyfile}" passphrase="" trust="true" /> |
| 414 |
|
| 415 |
<echo message="Extracting All-In-One and JRE on Remote Machine" /> |
| 416 |
<sshexec host="${hostname}" username="${user}" command="unzip -q ${dir}/workbench/${tptpDriver} -d ${dir}/workbench; cp -r ${dir}/jre/${targetJRE}/jre ${dir}/workbench/eclipse; chmod -R +x ${dir}/workbench/eclipse" keyfile="${keyfile}" passphrase="" trust="true" /> |
| 417 |
|
| 418 |
<echo message="Configuring Agent Controller on Remote Machine" /> |
| 419 |
<sshexec host="${hostname}" username="${user}" command="cd ${dir}/ac/bin; ./SetConfig.bat -s JAVA_PATH=${cygwinPath}\\workbench\\eclipse\\jre\\bin\\java.exe TYPE=ALL SECURITY=FALSE" keyfile="${keyfile}" passphrase="" trust="true" /> |
| 420 |
|
| 421 |
<echo message="Shutting down the agent controller on the remote machine" /> |
| 422 |
<sshexec host="${hostname}" username="${user}" command="${dir}/ac/bin/ACServer -shutdown" keyfile="${keyfile}" passphrase="" trust="true" failonerror="false" /> |
| 423 |
|
| 344 |
<echo message="Starting Agent Controller on Remote Machine" /> |
424 |
<echo message="Starting Agent Controller on Remote Machine" /> |
| 345 |
<java classname="AcConfigMain" fork="true"> |
425 |
<echo message="A timeout is set to allow for disconnecting since the AC continues to run"/> |
| 346 |
<classpath> |
426 |
<sshexec host="${hostname}" username="${user}" command="cd ${dir}/ac/bin; ./ACServer.exe &" keyfile="${keyfile}" passphrase="" trust="true" timeout="1000" failonerror="false" /> |
| 347 |
<pathelement location="bin/AcConfig.jar"/> |
427 |
<!-- add a test condition based on the result to exit with an error if it is not running --> |
| 348 |
<pathelement location="bin/DialogueUtil-20071120.jar"/> |
428 |
<sshexec host="${hostname}" username="${user}" command="ps -ef | grep ACServer | wc -l" keyfile="${keyfile}" passphrase="" trust="true" /> |
| 349 |
<pathelement location="bin/ganymed-ssh2-build211beta4.jar"/> |
|
|
| 350 |
</classpath> |
| 351 |
<arg value="${javaLocation}" /> |
| 352 |
<arg value="${acUser}" /> |
| 353 |
<arg value="${acPassword}" /> |
| 354 |
<arg value="${cygwinACPath}" /> |
| 355 |
</java> |
| 356 |
</target> |
429 |
</target> |
| 357 |
|
430 |
|
| 358 |
<target name="checkInReport"> |
431 |
<target name="checkInReport"> |
| 359 |
<mkdir dir="${basedir}/${reportCheckinDirectory}" /> |
432 |
<mkdir dir="${basedir}/${reportCheckinDirectory}" /> |
| 360 |
<cvs command="-d ${cvs.login}:/cvsroot/org.eclipse co -d ${reportCheckinDirectory} www/tptp/test/reports/${reportCheckinDirectory}" reallyquiet="true"/> |
433 |
<cvs command="-d ${cvs.login}:/cvsroot/org.eclipse co -r ${cvsBranch} -d ${reportCheckinDirectory} www/tptp/test/reports/${reportCheckinDirectory}" reallyquiet="true"/> |
| 361 |
|
434 |
|
| 362 |
<delete> |
435 |
<delete> |
| 363 |
<fileset dir="${basedir}/${reportCheckinDirectory}" includes="*.html" /> |
436 |
<fileset dir="${basedir}/${reportCheckinDirectory}" includes="*.html" /> |
|
Lines 377-385
Link Here
|
| 377 |
</target> |
450 |
</target> |
| 378 |
|
451 |
|
| 379 |
<target name="copyBVTReport"> |
452 |
<target name="copyBVTReport"> |
| 380 |
<scp todir="${reportUser}@${reportHostname}:/home/data/users/${reportUser}/downloads/tptp/${release}/dev/${driver}/BVT" keyfile="${keyfile}" passphrase="" trust="true"> |
453 |
<exec executable="bash"> |
| 381 |
<fileset dir="${reportLocation}"/> |
454 |
<arg line="-c \'scp -r -i ${keyfile} ${reportLocation}/* ${reportHost}:${remoteReportLocation}\'" /> |
| 382 |
</scp> |
455 |
</exec> |
| 383 |
</target> |
456 |
</target> |
| 384 |
|
457 |
|
| 385 |
</project> |
458 |
<target name="checkInBVT"> |
|
|
459 |
<antcall target="time"/> |
| 460 |
<!-- Look into handling for branches --> |
| 461 |
<condition property="bvtBranch" value="-r ${cvsBranch}" else=""> |
| 462 |
<not> |
| 463 |
<equals arg1="${cvsBranch}" arg2="HEAD" /> |
| 464 |
</not> |
| 465 |
</condition> |
| 466 |
<cvs command="-d ${cvs.login}:/cvsroot/tptp co ${bvtBranch} -d BVT_results test-results/platform/org.eclipse.hyades.tests/BVT_results" reallyquiet="true"/> |
| 467 |
<delete> |
| 468 |
<fileset dir="${basedir}/BVT_results" includes="*.execution" /> |
| 469 |
</delete> |
| 470 |
<copy todir="BVT_results" overwrite="true"> |
| 471 |
<fileset dir="${tptp.test.workspace}/org.eclipse.hyades.tests/BVT_results"> |
| 472 |
<include name="*.execution" /> |
| 473 |
</fileset> |
| 474 |
</copy> |
| 475 |
<echo message="BVT results for ${tptpAllDriver}" file="${basedir}/commitMessage.txt" /> |
| 476 |
<exec executable="bash"> |
| 477 |
<arg line="-c \'cd ${basedir}/BVT_results; cvs add -kb *; cvs commit -F ${basedir}/commitMessage.txt; cd .. *\' " /> |
| 478 |
</exec> |
| 479 |
<delete dir="BVT_results" failonerror="false" /> |
| 480 |
</target> |
| 481 |
|
| 482 |
<target name="time"> |
| 483 |
<exec executable="date"/> |
| 484 |
</target> |
| 485 |
|
| 486 |
|
| 487 |
</project> |