david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 1 | <project |
| 2 | name="Build specific targets and properties" |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 3 | default="runTest"> |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 4 | <!-- |
| 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 | --> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 11 | <property |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 12 | environment="env"/> |
david_williams | 0f24289 | 2009-07-23 00:24:10 +0000 | [diff] [blame] | 13 | <fail |
| 14 | message="testRoot must be set for this task" |
tle | ff16536 | 2009-07-27 17:11:33 +0000 | [diff] [blame] | 15 | unless="testRoot" /> |
| 16 | <!-- required to get proper value of dropinsFolder --> |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 17 | <property |
| 18 | name="keyCfgFile" |
| 19 | value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/> |
| 20 | <echo |
| 21 | level="debug" |
| 22 | message="keyCfgFile: ${keyCfgFile}"/> |
| 23 | <property |
| 24 | file="${keyCfgFile}"/> |
david_williams | 0f24289 | 2009-07-23 00:24:10 +0000 | [diff] [blame] | 25 | |
| 26 | <!-- if not otherwise set, assume 'all' tests --> |
| 27 | <property |
| 28 | name="testTarget" |
| 29 | value="all"/> |
| 30 | <!-- |
| 31 | typcially already set, but in case of standalone tests, may not |
| 32 | be |
| 33 | --> |
| 34 | <property |
| 35 | name="buildLabel" |
| 36 | value="${buildType}-${buildId}-${timestamp}"/> |
| 37 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 38 | |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 39 | <!-- |
| 40 | Steps to do after the build is done. |
| 41 | --> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 42 | <target |
| 43 | name="test"> |
| 44 | <dirname |
| 45 | file="${ant.file}" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 46 | property="currentDirectory"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 47 | <ant |
| 48 | antfile="${ant.file}" |
| 49 | target="runTest" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 50 | dir="${currentDirectory}"/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 51 | </target> |
| 52 | |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 53 | <!-- |
| 54 | Steps to do to test the build results |
| 55 | --> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 56 | <target |
| 57 | name="runTest"> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 58 | <dirname |
| 59 | file="${ant.file}" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 60 | property="test.component.dir"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 61 | <ant |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 62 | antfile="${wtp.builder.home}/scripts/build/label.xml"/> |
david_williams | 0987a07 | 2007-02-20 18:27:24 +0000 | [diff] [blame] | 63 | <property |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 64 | file="${buildDirectory}/label.properties"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 65 | <property |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 66 | file="${wtp.builder.home}/build.properties"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 67 | <fail |
| 68 | message="testRoot must be set for this task" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 69 | unless="testRoot"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 70 | <mkdir |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 71 | dir="${testRoot}"/> |
ndai | 91f5c9b | 2006-03-12 13:56:45 +0000 | [diff] [blame] | 72 | |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 73 | <!-- if results already exist, delete them --> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 74 | <delete |
| 75 | dir="${testRoot}/results" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 76 | failOnError="false"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 77 | <mkdir |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 78 | dir="${testRoot}/results"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 79 | <mkdir |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 80 | dir="${testRoot}/results/consolelogs"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 81 | <mkdir |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 82 | dir="${testRoot}/results/consolelogs/metadata-logs"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 83 | <mkdir |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 84 | dir="${testRoot}/results/consolelogs/configuration-logs"/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 85 | <copy |
| 86 | todir="${testRoot}" |
| 87 | overwrite="true"> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 88 | <fileset |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 89 | dir="${test.component.dir}/testScripts"/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 90 | </copy> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 91 | <echo |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 92 | message="BASEOS: ${env.BASEOS} BASEWS: ${env.BASEWS} BASEARCH: ${env.BASEARCH} "/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 93 | <ant |
| 94 | antfile="${test.component.dir}/testdependency.xml" |
| 95 | target="get"> |
| 96 | <property |
| 97 | name="dependency.properties" |
tle | ff16536 | 2009-07-27 17:11:33 +0000 | [diff] [blame] | 98 | value="${buildDirectory}/${env.RELENGDALI}/maps/dependencies.properties"/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 99 | <property |
| 100 | name="base.install.dir" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 101 | value="${testRoot}"/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 102 | </ant> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 103 | <antcall |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 104 | target="unzipTests"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 105 | <antcall |
| 106 | target="runTestEclipse"> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 107 | </antcall> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 108 | <antcall |
| 109 | target="postRunTestEclipse"> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 110 | </antcall> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 111 | </target> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 112 | <target |
| 113 | name="unzipTests"> |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 114 | <!-- |
| 115 | unzip the builds and junit tests we use 'unzip' here, so we |
| 116 | can continue on error, if desired. (such as if zip was not |
| 117 | created, due to other failures or options). |
david_williams | 0987a07 | 2007-02-20 18:27:24 +0000 | [diff] [blame] | 118 | --> |
tle | ff16536 | 2009-07-27 17:11:33 +0000 | [diff] [blame] | 119 | <echo |
| 120 | message="installing dali sdk" /> |
david_williams | 0987a07 | 2007-02-20 18:27:24 +0000 | [diff] [blame] | 121 | <exec |
| 122 | dir="${buildDirectory}/${buildLabel}" |
| 123 | executable="unzip" |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 124 | failonerror="true"> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 125 | <arg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 126 | line="-o -qq wtp-jpt-sdk-${buildLabel}.zip -d ${testRoot}${dropinsFolder}"/> |
david_williams | 0987a07 | 2007-02-20 18:27:24 +0000 | [diff] [blame] | 127 | </exec> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 128 | <echo |
| 129 | message="installing dali tests" /> |
| 130 | <exec |
| 131 | dir="${buildDirectory}/${buildLabel}" |
| 132 | executable="unzip" |
| 133 | failonerror="true"> |
| 134 | <arg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 135 | line="-o -qq wtp-jpt-Automated-Tests-${buildLabel}.zip -d ${testRoot}${dropinsFolder}"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 136 | </exec> |
david_williams | 0987a07 | 2007-02-20 18:27:24 +0000 | [diff] [blame] | 137 | </target> |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 138 | <!-- |
| 139 | time out may need to be set/adjust for api or performance tests? |
| 140 | This testTimeLimit is the whole, overall limit on tests. There's |
| 141 | a shorter one for individual suites. some common values, of |
| 142 | milliseconds to more recognizable units: |
| 143 | 14400000: 4 hours |
| 144 | 7200000: 2 hours |
| 145 | 3600000: 1 hour |
| 146 | 1800000: 30 minutes |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 147 | 600000: 10 minutes |
| 148 | --> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 149 | <property |
| 150 | name="testTimeLimit" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 151 | value="14400000"/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 152 | <property |
| 153 | name="testFailOnError" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 154 | value="false"/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 155 | <target |
| 156 | name="runTestEclipse" |
| 157 | description="Run our JUnit's within an instance of antRunner"> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 158 | <property |
| 159 | name="test-vm" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 160 | value="${env.JAVA_6_HOME}/bin/java"/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 161 | <property |
| 162 | name="plugin-path" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 163 | value="${testRoot}${dropinsFolder}/eclipse/plugins"/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 164 | <property |
| 165 | name="vmargs" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 166 | value="-Dosgi.ws=${env.BASEWS} -Dosgi.os=${env.BASEOS} -Dosgi.arch=${env.BASEARCH} -Dws=${env.BASEWS} -Dos=${env.BASEOS} -Darch=${env.BASEARCH} -Dnoclean=true -DbuildBranch=${buildBranch} -DbuildType=${buildType} -DbuildId=${buildId} -DtestRoot=${testRoot} -DtestDir=${testRoot} -DbuildDirectory=${buildDirectory} -Dbuild.home=${env.BUILD_HOME} -DeclipseBuilderDirectory=${pde.builder.path} -DbuildLabel=${buildLabel} -Dtest-vm=${test-vm} -Dperf.buildId=${buildType}${date}-${time}"/> |
| 167 | <!-- |
| 168 | set path to eclipse folder. If local folder, use '.'; |
| 169 | otherwise, use c:\path\to\eclipse or /path/to/eclipse/ |
| 170 | --> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 171 | <property |
| 172 | name="eclipse.home" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 173 | value="${testRoot}"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 174 | <echo |
david_williams | 0f24289 | 2009-07-23 00:24:10 +0000 | [diff] [blame] | 175 | message="testTarget: ${testTarget}"/> |
| 176 | <echo |
| 177 | message="plugin-path: ${plugin-path}"/> |
| 178 | <echo |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 179 | message="Running junits"/> |
| 180 | <!-- |
| 181 | If there is not exactly one launcher in the stack, we'd best |
| 182 | fail fast, since we are not expecting that, and may indicate |
| 183 | an installation that would produce unpredictable results |
| 184 | --> |
| 185 | <!-- |
| 186 | requires ant 1.7, and at this point, we're running 1.6 from |
| 187 | eclipse ... <condition property="expectedNumberOfLaunchers"> |
| 188 | <resourcecount when="equal" count="1" > <fileset |
| 189 | dir="${testRoot}/eclipse/plugins"> <include |
| 190 | name="org.eclipse.equinox.launcher_*.jar" /> </fileset> |
| 191 | </resourcecount> </condition> <fail message="Did not find |
| 192 | expected number of launcher jars. Check installation." |
| 193 | unless="expectedNumberOfLaunchers" /> |
| 194 | --> |
| 195 | <!-- |
| 196 | Remember: using -debug for org.eclipse.ant.core.antRunner |
| 197 | produces ant debug info to be output ... which is a TON of |
| 198 | stuff |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 199 | --> |
| 200 | <java |
| 201 | taskname="unit-test-masterprocess" |
| 202 | fork="true" |
| 203 | resultProperty="wtpmasterjunitresult" |
| 204 | failonerror="false" |
| 205 | timeout="${testTimeLimit}" |
| 206 | dir="${testRoot}/eclipse" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 207 | jvm="${env.JAVA_6_HOME}/bin/java" |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 208 | classname="org.eclipse.equinox.launcher.Main"> |
| 209 | <classpath> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 210 | <fileset |
| 211 | dir="${testRoot}/eclipse/plugins"> |
| 212 | <include |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 213 | name="org.eclipse.equinox.launcher_*.jar"/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 214 | </fileset> |
| 215 | </classpath> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 216 | <jvmarg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 217 | value="-Xverify"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 218 | <jvmarg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 219 | value="-Dosgi.ws=${env.BASEWS}"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 220 | <jvmarg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 221 | value="-Dosgi.os=${env.BASEOS}"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 222 | <jvmarg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 223 | value="-Dosgi.arch=${env.BASEARCH}"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 224 | <jvmarg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 225 | value="-Dws=${env.BASEWS}"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 226 | <jvmarg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 227 | value="-Dos=${env.BASEOS}"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 228 | <jvmarg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 229 | value="-Darch=${env.BASEARCH}"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 230 | <jvmarg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 231 | value="-Dnoclean=true"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 232 | <jvmarg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 233 | value="-DbuildBranch=${buildBranch}"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 234 | <jvmarg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 235 | value="-DbuildType=${buildType}"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 236 | <jvmarg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 237 | value="-DbuildId=${buildId}"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 238 | <jvmarg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 239 | value="-Dprojectname=${projectname}"/> |
david_williams | 249fae5 | 2008-05-02 03:41:42 +0000 | [diff] [blame] | 240 | <jvmarg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 241 | value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}"/> |
tle | ff16536 | 2009-07-27 17:11:33 +0000 | [diff] [blame] | 242 | <arg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 243 | value="-nosplash"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 244 | <arg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 245 | value="-consolelog"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 246 | <arg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 247 | value="-data"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 248 | <arg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 249 | value="${testRoot}/overallTestWorkspace"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 250 | <arg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 251 | value="-application"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 252 | <arg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 253 | value="org.eclipse.ant.core.antRunner"/> |
david_williams | e3faadc | 2009-07-23 02:27:12 +0000 | [diff] [blame] | 254 | <!-- |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 255 | <arg |
david_williams | 0f24289 | 2009-07-23 00:24:10 +0000 | [diff] [blame] | 256 | value="-verbose"/> |
david_williams | e3faadc | 2009-07-23 02:27:12 +0000 | [diff] [blame] | 257 | --> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 258 | <arg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 259 | value="-logger"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 260 | <arg |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 261 | value="org.apache.tools.ant.DefaultLogger"/> |
tle | ff16536 | 2009-07-27 17:11:33 +0000 | [diff] [blame] | 262 | <arg |
david_williams | 0f24289 | 2009-07-23 00:24:10 +0000 | [diff] [blame] | 263 | value="-file"/> |
| 264 | <arg |
| 265 | value="${testRoot}/test.xml"/> |
| 266 | <arg |
| 267 | value="${testTarget}"/> |
| 268 | |
| 269 | <!-- make sure our forked env has a DISPLAY --> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 270 | <env |
| 271 | key="DISPLAY" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 272 | value="${env.DISPLAY}"/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 273 | <redirector |
| 274 | output="${testRoot}/results/fullOutput.txt" |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 275 | error="${testRoot}/results/fullErrorLog.txt"/> |
david_williams | 0f24289 | 2009-07-23 00:24:10 +0000 | [diff] [blame] | 276 | <jvmarg |
| 277 | value="-Dbuild.home=${env.BUILD_HOME}"/> |
| 278 | <jvmarg |
| 279 | value="-DbuildDirectory=${buildDirectory}"/> |
| 280 | <jvmarg |
| 281 | value="-DbuildLabel=${buildLabel}"/> |
| 282 | <jvmarg |
| 283 | value="-DbaseLocation=${baseLocation}"/> |
| 284 | <jvmarg |
| 285 | value="-DtestRoot=${testRoot}"/> |
| 286 | <jvmarg |
| 287 | value="-DtestDir=${testRoot}"/> |
| 288 | <jvmarg |
| 289 | value="-Dperf.buildId=${buildType}${date}-${time}"/> |
| 290 | <jvmarg |
| 291 | value="-DeclipseBuilderDirectory=${pde.builder.path}"/> |
| 292 | <jvmarg |
| 293 | value="-DbuildLabel=${buildLabel}"/> |
| 294 | <jvmarg |
| 295 | value="-Dplugin-path=${plugin-path}"/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 296 | </java> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 297 | <echo |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 298 | message="wtpmasterjunitresult ${wtpmasterjunitresult}"/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 299 | </target> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 300 | <target |
| 301 | name="postRunTestEclipse"> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 302 | <copy |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 303 | todir="${buildDirectory}/${buildLabel}/testResults/consolelogs/testLogs" |
| 304 | overwrite="true" |
| 305 | failonerror="false"> |
| 306 | <fileset |
| 307 | dir="${testRoot}/results"> |
| 308 | <include |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 309 | name="*output.txt"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 310 | </fileset> |
| 311 | </copy> |
| 312 | <copy |
| 313 | todir="${buildDirectory}/${buildLabel}/testResults/consolelogs/testSysErrorLogs" |
| 314 | overwrite="true" |
| 315 | failonerror="false"> |
| 316 | <fileset |
| 317 | dir="${testRoot}/results"> |
| 318 | <include |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 319 | name="*error.txt"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 320 | </fileset> |
| 321 | </copy> |
| 322 | <copy |
| 323 | file="${testRoot}/results/fullOutput.txt" |
| 324 | toDir="${buildDirectory}/${buildLabel}/testResults/consolelogs/full" |
| 325 | overwrite="true" |
| 326 | failonerror="false"> |
| 327 | </copy> |
| 328 | <copy |
| 329 | file="${testRoot}/results/fullErrorLog.txt" |
| 330 | toDir="${buildDirectory}/${buildLabel}/testResults/consolelogs/full" |
| 331 | overwrite="true" |
| 332 | failonerror="false"> |
| 333 | </copy> |
| 334 | <copy |
| 335 | todir="${buildDirectory}/${buildLabel}/testResults/xml" |
| 336 | overwrite="true" |
| 337 | failonerror="false"> |
| 338 | <fileset |
| 339 | dir="${testRoot}/results/xml"> |
| 340 | <include |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 341 | name="*.xml"/> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 342 | </fileset> |
| 343 | </copy> |
| 344 | <copy |
| 345 | todir="${buildDirectory}/${buildLabel}/testResults/html" |
| 346 | overwrite="true" |
| 347 | failonerror="false"> |
| 348 | <fileset |
| 349 | dir="${testRoot}/results/html"> |
| 350 | <include |
tle | 3bda23c | 2009-07-22 16:23:03 +0000 | [diff] [blame] | 351 | name="*.html"/> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 352 | </fileset> |
| 353 | </copy> |
| 354 | </target> |
tle | 170c790 | 2008-10-02 03:15:49 +0000 | [diff] [blame] | 355 | </project> |