blob: dbc8bc9db74394827438a72b64b9f4787d86b2d7 [file] [log] [blame]
david_williams403beae2007-12-09 02:10:40 +00001<project
2 name="Build specific targets and properties"
3 default="runTest">
david_williams8e4dc9c2008-07-06 08:08:58 +00004 <!--
5 Note to be cross-platform, "environment variables" are only
6 appropriate for some variables, e.g. ones we set, since
7 properties are case sensitive, even if the environment variables
8 on your operating system are not, e.g. it will be ${env.Path}
9 not ${env.PATH} on Windows
10 -->
david_williams2398e362011-03-05 02:45:39 +000011 <property environment="env"/>
david_williams2f43da22009-07-22 04:25:24 +000012 <fail
13 message="testRoot must be set for this task"
14 unless="testRoot"/>
david_williams13291642010-10-07 05:06:11 +000015 <!-- required to get proper value of branch specific values -->
david_williams8e4dc9c2008-07-06 08:08:58 +000016 <property
17 name="keyCfgFile"
18 value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
19 <echo
david_williams14cadd12011-03-23 06:43:39 +000020 level="debug"
david_williams8e4dc9c2008-07-06 08:08:58 +000021 message="keyCfgFile: ${keyCfgFile}"/>
david_williams2398e362011-03-05 02:45:39 +000022 <property file="${keyCfgFile}"/>
david_williams2f43da22009-07-22 04:25:24 +000023 <!--
24 typcially already set, but in case of standalone tests, may not
25 be
26 -->
27 <property
28 name="buildLabel"
29 value="${buildType}-${buildId}-${timestamp}"/>
30
ndaib8cedc82005-09-13 18:00:32 +000031
david_williams43089362008-03-25 05:43:38 +000032 <!--
33 Steps to do after the build is done.
34 -->
david_williams2398e362011-03-05 02:45:39 +000035 <target name="test">
david_williams403beae2007-12-09 02:10:40 +000036 <dirname
37 file="${ant.file}"
david_williams8e4dc9c2008-07-06 08:08:58 +000038 property="currentDirectory"/>
david_williams403beae2007-12-09 02:10:40 +000039 <ant
40 antfile="${ant.file}"
41 target="runTest"
david_williams8e4dc9c2008-07-06 08:08:58 +000042 dir="${currentDirectory}"/>
david_williams403beae2007-12-09 02:10:40 +000043 </target>
ndaib8cedc82005-09-13 18:00:32 +000044
david_williams43089362008-03-25 05:43:38 +000045 <!--
46 Steps to do to test the build results
47 -->
david_williams2398e362011-03-05 02:45:39 +000048 <target name="runTest">
david_williams403beae2007-12-09 02:10:40 +000049 <dirname
50 file="${ant.file}"
david_williams8e4dc9c2008-07-06 08:08:58 +000051 property="test.component.dir"/>
david_williams2398e362011-03-05 02:45:39 +000052 <ant antfile="${wtp.builder.home}/scripts/build/label.xml"/>
53 <property file="${buildDirectory}/label.properties"/>
54 <property file="${wtp.builder.home}/build.properties"/>
david_williams403beae2007-12-09 02:10:40 +000055 <fail
56 message="testRoot must be set for this task"
david_williams8e4dc9c2008-07-06 08:08:58 +000057 unless="testRoot"/>
david_williams2398e362011-03-05 02:45:39 +000058 <mkdir dir="${testRoot}"/>
david_williamsf5f131a2007-03-17 06:12:13 +000059
david_williams403beae2007-12-09 02:10:40 +000060 <!-- if results already exist, delete them -->
61 <delete
david_williams14cadd12011-03-23 06:43:39 +000062 quiet="true"
david_williams403beae2007-12-09 02:10:40 +000063 dir="${testRoot}/results"
david_williams8e4dc9c2008-07-06 08:08:58 +000064 failOnError="false"/>
david_williams2398e362011-03-05 02:45:39 +000065 <mkdir dir="${testRoot}/results"/>
66 <mkdir dir="${testRoot}/results/consolelogs"/>
david_williams403beae2007-12-09 02:10:40 +000067 <copy
68 todir="${testRoot}"
69 overwrite="true">
david_williams2398e362011-03-05 02:45:39 +000070 <fileset dir="${test.component.dir}/testScripts"/>
david_williams403beae2007-12-09 02:10:40 +000071 </copy>
david_williams14cadd12011-03-23 06:43:39 +000072 <echo level="debug" message="BASEOS: ${env.BASEOS} BASEWS: ${env.BASEWS} BASEARCH: ${env.BASEARCH} "/>
david_williamsf46c7712010-08-08 01:58:59 +000073
david_williams2f53d7b2009-08-03 05:48:34 +000074 <property
75 name="dependency.properties"
david_williamsf46c7712010-08-08 01:58:59 +000076 value="${buildDirectory}/maps/${env.RELENG}/${dependencyFileLocation}"/>
david_williams508f8602009-08-04 06:31:37 +000077 <available
78 file="${dependency.properties}"
79 property="dependency.properties.exists"/>
80 <fail
david_williamsc253e572009-08-04 07:09:44 +000081 message="dependency file not found: ${dependency.properties}"
david_williams508f8602009-08-04 06:31:37 +000082 unless="dependency.properties.exists"/>
david_williamsf4ad4d52010-08-22 16:00:26 +000083 <property
84 name="test.dependency"
david_williamsbf62a202010-09-27 05:03:32 +000085 value="${wtp.builder.home}/scripts/dependency/dependency.xml"/>
david_williamsf4ad4d52010-08-22 16:00:26 +000086 <available
87 file="${test.dependency}"
88 property="test.dependency.exists"/>
89 <fail
90 message="test dependency file not found: ${test.dependency}"
91 unless="test.dependency.exists"/>
david_williams14cadd12011-03-23 06:43:39 +000092 <echo level="debug" message="test.dependency file: ${test.dependency}"/>
david_williams508f8602009-08-04 06:31:37 +000093 <ant
david_williams147f6ad2010-08-05 06:33:47 +000094 antfile="${test.dependency}"
david_williams508f8602009-08-04 06:31:37 +000095 target="get">
96 <property
david_williams403beae2007-12-09 02:10:40 +000097 name="base.install.dir"
david_williams8e4dc9c2008-07-06 08:08:58 +000098 value="${testRoot}"/>
david_williamsbf62a202010-09-27 05:03:32 +000099 <property
100 name="tobeinstalled.properties"
david_williams5e5f04f2011-03-07 20:07:42 +0000101 value="${buildDirectory}/maps/${env.RELENG}/distribution/${build.distribution}.tests/tobeInstalled.properties"/>
david_williamsba00a342011-03-12 05:11:19 +0000102
david_williamsbf62a202010-09-27 05:03:32 +0000103 <property
david_williams2398e362011-03-05 02:45:39 +0000104 name="installWorkingDirectory"
105 value="${testRoot}"/>
106
107
108
david_williams403beae2007-12-09 02:10:40 +0000109 </ant>
david_williams2398e362011-03-05 02:45:39 +0000110 <antcall target="installTests"/>
111 <antcall target="runTestEclipse">
david_williamsfcdb6972009-11-19 07:25:49 +0000112 <param
113 name="testTarget"
114 value="all"/>
david_williams403beae2007-12-09 02:10:40 +0000115 </antcall>
david_williams2398e362011-03-05 02:45:39 +0000116 <antcall target="postRunTestEclipse">
david_williamsfcdb6972009-11-19 07:25:49 +0000117 <param
118 name="testTarget"
119 value="all"/>
david_williams403beae2007-12-09 02:10:40 +0000120 </antcall>
david_williams403beae2007-12-09 02:10:40 +0000121 </target>
david_williams9e7f5842011-03-06 03:32:03 +0000122
123 <!--
124 note: the 'test.installed' attribute is a temporary hack
125 to allow standalone tests to do the install themselves.
126 Eventually, this script should be improved so this hack would
127 be not required. The "location" of the
128 zips/repos are indirectly currently "hard coded" to
129 be in /projects/... but
130 this should become a variable, sometimes (maybe)
131 set to /projects/...,
132 more often set to some URL from committers or downloads pages.
133 See the repos values below in repo install:
134 value="file://${buildDirectory}/${buildLabel}/repository/,file://${buildDirectory}/${buildLabel}/repositoryunittests/"/>
135 These should be changed to be something like
136 value="${coderepo},${unittestsrepo}"/>
137 Or similar. Then could be set as desired.
138 -->
david_williamsad2097e2008-01-28 06:06:12 +0000139 <target
david_williamsbecf0212011-02-21 08:08:51 +0000140 name="installTests"
david_williams2398e362011-03-05 02:45:39 +0000141 unless="test.installed">
david_williams13291642010-10-07 05:06:11 +0000142
david_williams9e7f5842011-03-06 03:32:03 +0000143 <!-- hard code for now
david_williams13291642010-10-07 05:06:11 +0000144 <antcall
145 target="installTestsFromZips">
146 <param
147 name="compName"
148 value="patches32x"/>
149 </antcall>
150 -->
david_williams2398e362011-03-05 02:45:39 +0000151 <antcall target="installTestsFromRepo">
152 </antcall>
153
david_williams13291642010-10-07 05:06:11 +0000154
155 </target>
156
157 <target
158 name="installTestsFromZips"
159 depends="init">
david_williams9e7f5842011-03-06 03:32:03 +0000160
161 <!-- a bit hard coded here, will need work for general case -->
david_williams13291642010-10-07 05:06:11 +0000162 <property
163 name="zipFile"
164 value="${compName}-${buildLabel}.zip"/>
165
166
167 <!--
168 We use the exec method for unzip, so we won't fail if a
169 prereq can not be unzipped for some reason. See
170 https://bugs.eclipse.org/bugs/show_bug.cgi?id=283968
171-->
david_williams2398e362011-03-05 02:45:39 +0000172 <mkdir dir="${install.destination}"/>
david_williams13291642010-10-07 05:06:11 +0000173 <exec
174 dir="."
175 executable="unzip">
david_williams2398e362011-03-05 02:45:39 +0000176 <arg line="-o -qq ${buildDirectory}/${buildLabel}/${zipFile} -d ${install.destination}/${compName}"/>
david_williams13291642010-10-07 05:06:11 +0000177 </exec>
178
179 </target>
180
david_williams2398e362011-03-05 02:45:39 +0000181 <target name="installTestsFromRepo">
david_williams03299442010-09-25 14:54:01 +0000182
david_williams81a16892010-03-17 07:50:46 +0000183 <java
184 taskname="p2Director Install"
185 fork="true"
186 resultProperty="p2DirectorInstallResult"
david_williams46fae5f2010-08-22 06:00:35 +0000187 failonerror="false"
david_williams81a16892010-03-17 07:50:46 +0000188 timeout="${testTimeLimit}"
189 dir="${testRoot}"
190 jvm="${env.JAVA_6_HOME}/bin/java"
191 classname="org.eclipse.equinox.launcher.Main">
192 <classpath>
david_williams2398e362011-03-05 02:45:39 +0000193 <fileset dir="${testRoot}/eclipse/plugins">
194 <include name="org.eclipse.equinox.launcher_*.jar"/>
david_williams81a16892010-03-17 07:50:46 +0000195 </fileset>
196 </classpath>
david_williams2398e362011-03-05 02:45:39 +0000197 <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}"/>
198 <jvmarg value="-Dwtp.builder.home=${wtp.builder.home}"/>
199 <jvmarg value="-Dbuild.distribution=${build.distribution}"/>
200 <arg value="-nosplash"/>
201 <arg value="-debug"/>
202 <arg value="-consolelog"/>
203 <arg value="-data"/>
204 <arg value="${testRoot}/p2DirectorInstall"/>
205 <arg value="-application"/>
206 <arg value="org.eclipse.equinox.p2.director"/>
207 <arg value="-destination"/>
208 <arg value="${testRoot}/eclipse"/>
david_williamsea4791b2010-09-14 18:44:03 +0000209
david_williams2398e362011-03-05 02:45:39 +0000210 <arg value="-repository"/>
211 <arg value="file://${buildDirectory}/${buildLabel}/repository/,file://${buildDirectory}/${buildLabel}/repositoryunittests/"/>
212 <arg value="-installIU"/>
213 <arg value="${wtpFeatureIUs},${testFeatureIUs}"/>
david_williams68319022010-01-23 23:15:11 +0000214
david_williams81a16892010-03-17 07:50:46 +0000215 <!-- make sure our forked env has a DISPLAY -->
216 <env
217 key="DISPLAY"
218 value="${env.DISPLAY}"/>
219 <redirector
220 output="${testRoot}/results/fullOutput.txt"
221 error="${testRoot}/results/fullErrorLog.txt"/>
david_williamsea4791b2010-09-14 18:44:03 +0000222
david_williams81a16892010-03-17 07:50:46 +0000223 </java>
david_williams9e7f5842011-03-06 03:32:03 +0000224 <!-- If the task succeeds, this ouput log won't be that relevent ... (can be make better in future ... but for now we'll make a copy,
225 just in case we need it -->
david_williams14cadd12011-03-23 06:43:39 +0000226 <echo level="debug" message="p2DirectorInstallResult: ${p2DirectorInstallResult}"/>
david_williamsf4ad4d52010-08-22 16:00:26 +0000227
david_williams2398e362011-03-05 02:45:39 +0000228 <condition property="p2DirectorInstallFailed">
david_williamsf4ad4d52010-08-22 16:00:26 +0000229 <not>
230 <equals
231 arg1="0"
232 arg2="${p2DirectorInstallResult}"/>
233 </not>
234 </condition>
235
236<!-- always copy to test results, even when successful -->
david_williams7e568c72010-09-12 09:04:15 +0000237 <copy
238 file="${testRoot}/results/fullOutput.txt"
239 tofile="${buildDirectory}/${buildLabel}/testResults/p2DirectorInstall.log.txt"
240 overwrite="false"
241 failonerror="false">
242 </copy>
243
david_williams2398e362011-03-05 02:45:39 +0000244 <antcall target="handleFailedInstall"/>
david_williamsf4ad4d52010-08-22 16:00:26 +0000245
246
247 </target>
248 <target
249 name="handleFailedInstall"
250 if="p2DirectorInstallFailed">
251
david_williams9e7f5842011-03-06 03:32:03 +0000252 <!-- copy to direct location, as a signal (to web pages) it failed and link should be provided -->
david_williamsf4ad4d52010-08-22 16:00:26 +0000253 <copy
254 file="${testRoot}/results/fullOutput.txt"
david_williams021e63a2010-08-22 18:21:51 +0000255 tofile="${buildDirectory}/${buildLabel}/p2DirectorInstall.log.txt"
david_williamsf4ad4d52010-08-22 16:00:26 +0000256 overwrite="false"
257 failonerror="false">
258 </copy>
259
260 <fail
david_williams021e63a2010-08-22 18:21:51 +0000261 message="installation of tests failed. See p2DirectorInstall.log.txt."
david_williamsf4ad4d52010-08-22 16:00:26 +0000262 if="p2DirectorInstallResult"/>
263
david_williams403beae2007-12-09 02:10:40 +0000264 </target>
david_williams8e4dc9c2008-07-06 08:08:58 +0000265 <!--
266 time out may need to be set/adjust for api or performance tests?
267 This testTimeLimit is the whole, overall limit on tests. There's
268 a shorter one for individual suites. some common values, of
david_williamsb4d960f2010-04-14 13:58:23 +0000269 milliseconds to more recognizable units:
270 14400000: 4 hours
271 7200000: 2 hours
272 3600000: 1 hour
273 1800000: 30 minutes
274 600000: 10 minutes
david_williams403beae2007-12-09 02:10:40 +0000275 -->
david_williams403beae2007-12-09 02:10:40 +0000276 <property
277 name="testTimeLimit"
david_williams22adbcc2010-08-07 13:48:08 +0000278 value="28800000"/>
david_williams403beae2007-12-09 02:10:40 +0000279 <property
280 name="testFailOnError"
david_williams8e4dc9c2008-07-06 08:08:58 +0000281 value="false"/>
david_williams403beae2007-12-09 02:10:40 +0000282 <target
283 name="runTestEclipse"
284 description="Run our JUnit's within an instance of antRunner">
david_williams403beae2007-12-09 02:10:40 +0000285 <property
286 name="test-vm"
david_williamsdbd9d832009-01-13 06:37:49 +0000287 value="${env.JAVA_6_HOME}/bin/java"/>
david_williams81a16892010-03-17 07:50:46 +0000288 <!--
david_williams8e4dc9c2008-07-06 08:08:58 +0000289 set path to eclipse folder. If local folder, use '.';
290 otherwise, use c:\path\to\eclipse or /path/to/eclipse/
291 -->
david_williams403beae2007-12-09 02:10:40 +0000292 <property
293 name="eclipse.home"
david_williams8e4dc9c2008-07-06 08:08:58 +0000294 value="${testRoot}"/>
david_williams14cadd12011-03-23 06:43:39 +0000295 <echo level="debug" message="testTarget: ${testTarget}"/>
david_williamsdb9eed92009-11-18 20:03:49 +0000296 <!--
297 can not pass in empty values in jvmargs so if not testBundle
298 specified, we'll pass a junk (unused) value
299 -->
300 <condition
301 property="testBundleParam"
302 value="-DtestBundle=${testBundle}"
303 else="-Dunused=nouse">
david_williams2398e362011-03-05 02:45:39 +0000304 <isset property="testBundle"/>
david_williamsdb9eed92009-11-18 20:03:49 +0000305 </condition>
david_williams2398e362011-03-05 02:45:39 +0000306 <echo message="Running junits"/>
david_williams8e4dc9c2008-07-06 08:08:58 +0000307 <!--
308 If there is not exactly one launcher in the stack, we'd best
309 fail fast, since we are not expecting that, and may indicate
310 an installation that would produce unpredictable results
david_williams403beae2007-12-09 02:10:40 +0000311 -->
david_williams8e4dc9c2008-07-06 08:08:58 +0000312 <!--
313 requires ant 1.7, and at this point, we're running 1.6 from
314 eclipse ... <condition property="expectedNumberOfLaunchers">
315 <resourcecount when="equal" count="1" > <fileset
316 dir="${testRoot}/eclipse/plugins"> <include
317 name="org.eclipse.equinox.launcher_*.jar" /> </fileset>
318 </resourcecount> </condition> <fail message="Did not find
319 expected number of launcher jars. Check installation."
320 unless="expectedNumberOfLaunchers" />
321 -->
david_williamsef62fc42011-03-18 02:33:39 +0000322
david_williamsba00a342011-03-12 05:11:19 +0000323 <condition
324 property="antQuietValue"
325 value="-quiet"
326 else="">
327 <istrue value="${env.USE_QUIET}"/>
328 </condition>
david_williams403beae2007-12-09 02:10:40 +0000329 <java
330 taskname="unit-test-masterprocess"
331 fork="true"
332 resultProperty="wtpmasterjunitresult"
333 failonerror="false"
334 timeout="${testTimeLimit}"
335 dir="${testRoot}/eclipse"
david_williamsdbd9d832009-01-13 06:37:49 +0000336 jvm="${env.JAVA_6_HOME}/bin/java"
david_williams403beae2007-12-09 02:10:40 +0000337 classname="org.eclipse.equinox.launcher.Main">
338 <classpath>
david_williams2398e362011-03-05 02:45:39 +0000339 <fileset dir="${testRoot}/eclipse/plugins">
340 <include name="org.eclipse.equinox.launcher_*.jar"/>
david_williams403beae2007-12-09 02:10:40 +0000341 </fileset>
342 </classpath>
david_williams2398e362011-03-05 02:45:39 +0000343 <jvmarg value="-Dosgi.ws=${env.BASEWS}"/>
344 <jvmarg value="-Dosgi.os=${env.BASEOS}"/>
345 <jvmarg value="-Dosgi.arch=${env.BASEARCH}"/>
346 <jvmarg value="-Dws=${env.BASEWS}"/>
347 <jvmarg value="-Dos=${env.BASEOS}"/>
348 <jvmarg value="-Darch=${env.BASEARCH}"/>
349 <jvmarg value="-DbuildBranch=${buildBranch}"/>
350 <jvmarg value="-DbuildType=${buildType}"/>
351 <jvmarg value="-DdependencyFileLocation=${dependencyFileLocation}"/>
352 <jvmarg value="-DbuildId=${buildId}"/>
353 <jvmarg value="-Dprojectname=${projectname}"/>
354 <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}"/>
355 <jvmarg value="-Dwtp.builder.home=${wtp.builder.home}"/>
356 <jvmarg value="-Dbuild.distribution=${build.distribution}"/>
357 <jvmarg value="${testBundleParam}"/>
358 <arg value="-nosplash"/>
359 <arg value="-consolelog"/>
360 <arg value="-data"/>
361 <arg value="${testRoot}/overallTestWorkspace"/>
362 <arg value="-application"/>
363 <arg value="org.eclipse.ant.core.antRunner"/>
david_williamsba00a342011-03-12 05:11:19 +0000364 <arg value="${antQuietValue}"/>
david_williams2398e362011-03-05 02:45:39 +0000365 <arg value="-logger"/>
366 <arg value="org.apache.tools.ant.DefaultLogger"/>
367 <arg value="-file"/>
368 <arg value="${testRoot}/test.xml"/>
369 <arg value="${testTarget}"/>
david_williams2f43da22009-07-22 04:25:24 +0000370
371 <!-- make sure our forked env has a DISPLAY -->
david_williams403beae2007-12-09 02:10:40 +0000372 <env
373 key="DISPLAY"
david_williams8e4dc9c2008-07-06 08:08:58 +0000374 value="${env.DISPLAY}"/>
david_williams403beae2007-12-09 02:10:40 +0000375 <redirector
376 output="${testRoot}/results/fullOutput.txt"
david_williams8e4dc9c2008-07-06 08:08:58 +0000377 error="${testRoot}/results/fullErrorLog.txt"/>
david_williams2398e362011-03-05 02:45:39 +0000378 <jvmarg value="-Dbuild.home=${env.BUILD_HOME}"/>
379 <jvmarg value="-DbuildDirectory=${buildDirectory}"/>
380 <jvmarg value="-DbuildLabel=${buildLabel}"/>
381 <jvmarg value="-DbaseLocation=${baseLocation}"/>
382 <jvmarg value="-DtestRoot=${testRoot}"/>
383 <jvmarg value="-DtestDir=${testRoot}"/>
384 <jvmarg value="-DeclipseBuilderDirectory=${pde.builder.path}"/>
david_williams81a16892010-03-17 07:50:46 +0000385 <!--
386 <!- - IBM_JAVA_OPTIONS contains JIT work arounds for bug
387 284441 - -> <env key="IBM_JAVA_OPTIONS"
david_williamsa41839a2009-08-05 08:06:51 +0000388 value="-Xjit:{org/eclipse/wst/html/core/internal/contenttype/HTMLHeadTokenizer.primGetNextToken()Ljava/lang/String;}(disableLookahead),{org/eclipse/jst/jsp/core/internal/parser/internal/JSPTokenizer.primGetNextToken()Ljava/lang/String;}(disableLookahead)"/>
david_williams81a16892010-03-17 07:50:46 +0000389 -->
david_williams403beae2007-12-09 02:10:40 +0000390 </java>
david_williams2398e362011-03-05 02:45:39 +0000391 <echo message="wtpmasterjunitresult ${wtpmasterjunitresult}"/>
david_williams403beae2007-12-09 02:10:40 +0000392 </target>
david_williams2398e362011-03-05 02:45:39 +0000393 <target name="postRunTestEclipse">
david_williams403beae2007-12-09 02:10:40 +0000394 <copy
395 todir="${buildDirectory}/${buildLabel}/testResults/consolelogs/testLogs"
396 overwrite="true"
397 failonerror="false">
david_williams2398e362011-03-05 02:45:39 +0000398 <fileset dir="${testRoot}/results">
399 <include name="*output.txt"/>
david_williams403beae2007-12-09 02:10:40 +0000400 </fileset>
401 </copy>
402 <copy
403 todir="${buildDirectory}/${buildLabel}/testResults/consolelogs/testSysErrorLogs"
404 overwrite="true"
405 failonerror="false">
david_williams2398e362011-03-05 02:45:39 +0000406 <fileset dir="${testRoot}/results">
407 <include name="*error.txt"/>
david_williams403beae2007-12-09 02:10:40 +0000408 </fileset>
409 </copy>
410 <copy
411 file="${testRoot}/results/fullOutput.txt"
412 toDir="${buildDirectory}/${buildLabel}/testResults/consolelogs/full"
413 overwrite="true"
414 failonerror="false">
415 </copy>
416 <copy
417 file="${testRoot}/results/fullErrorLog.txt"
418 toDir="${buildDirectory}/${buildLabel}/testResults/consolelogs/full"
419 overwrite="true"
420 failonerror="false">
421 </copy>
david_williams403beae2007-12-09 02:10:40 +0000422 <copy
423 todir="${buildDirectory}/${buildLabel}/testResults/xml"
424 overwrite="true"
425 failonerror="false">
david_williams2398e362011-03-05 02:45:39 +0000426 <fileset dir="${testRoot}/results/xml">
427 <include name="*.xml"/>
david_williams403beae2007-12-09 02:10:40 +0000428 </fileset>
429 </copy>
430 <copy
431 todir="${buildDirectory}/${buildLabel}/testResults/html"
432 overwrite="true"
433 failonerror="false">
david_williams2398e362011-03-05 02:45:39 +0000434 <fileset dir="${testRoot}/results/html">
435 <include name="*.html"/>
david_williams403beae2007-12-09 02:10:40 +0000436 </fileset>
437 </copy>
david_williamsf4ad4d52010-08-22 16:00:26 +0000438 <copy
david_williamsefc103a2011-09-25 04:57:53 +0000439 todir="${buildDirectory}/${buildLabel}/testResults/httplogstest"
440 overwrite="true"
441 failonerror="false">
442 <fileset dir="${testRoot}/results/httplogstest">
443 <include name="*.log"/>
444 </fileset>
445 </copy>
446 <copy
david_williamsf4ad4d52010-08-22 16:00:26 +0000447 todir="${buildDirectory}/${buildLabel}/testResults/"
448 overwrite="true"
449 failonerror="false">
david_williams2398e362011-03-05 02:45:39 +0000450 <fileset dir="${testRoot}/results/">
451 <include name="*.html"/>
david_williamsf4ad4d52010-08-22 16:00:26 +0000452 </fileset>
453 </copy>
david_williams403beae2007-12-09 02:10:40 +0000454 </target>
david_williams13291642010-10-07 05:06:11 +0000455
david_williams2398e362011-03-05 02:45:39 +0000456 <target name="init">
david_williams13291642010-10-07 05:06:11 +0000457
david_williams14cadd12011-03-23 06:43:39 +0000458 <echo level="debug" message="dropinsFolder: ${dropinsFolder} "/>
david_williams13291642010-10-07 05:06:11 +0000459 <condition
460 property="install.destination"
461 value="${testRoot}${dropinsFolder}/"
462 else="${testRoot}/eclipse">
david_williams2398e362011-03-05 02:45:39 +0000463 <isset property="dropinsFolder"/>
david_williams13291642010-10-07 05:06:11 +0000464 </condition>
465
466 </target>
467
david_williamsad2097e2008-01-28 06:06:12 +0000468</project>