Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Side by Side Diff: editor/tools/features/com.google.dart.tools.tests.feature_releng/buildTests.xml

Issue 11638015: Fix 2 failing tests on windows. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- ====================================================================== 2 <!-- ======================================================================
3 Sep 6, 2011 4:04:51 PM 3 Sep 6, 2011 4:04:51 PM
4 4
5 Dart Tools Tests Build 5 Dart Tools Tests Build
6 Build the Dart Tools tests and then run them over the Dart code 6 Build the Dart Tools tests and then run them over the Dart code
7 7
8 Mark R Russell (mrrussell@google.com) 8 Mark R Russell (mrrussell@google.com)
9 ====================================================================== --> 9 ====================================================================== -->
10 <project name="Dart Tools Tests Build" default="test"> 10 <project name="Dart Tools Tests Build" default="test">
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 </sequential> 165 </sequential>
166 </parallel> 166 </parallel>
167 <mkdir dir="${build.test.reports.dir}" /> 167 <mkdir dir="${build.test.reports.dir}" />
168 <move todir="${build.test.reports.dir}"> 168 <move todir="${build.test.reports.dir}">
169 <fileset dir="."> 169 <fileset dir=".">
170 <include name="**/TEST-*.xml" /> 170 <include name="**/TEST-*.xml" />
171 </fileset> 171 </fileset>
172 </move> 172 </move>
173 </target> 173 </target>
174 174
175 <!-- We have not set "failonerror='true'" for either the test runner 175 <!-- The -check_results task parses the generated XML report and looks for
176 or test collector, because we want the HTML report to be generated 176 the substrings 'failures="0"' and 'errors="0"'. If eitherof these
177 even when the tests fail. Unfortunately, this will cause ant to 177 strings cannot be found, then a <fail> task is run.-->
178 report "BUILD SUCCESSFUL, even if the tests fail. To get around this 178 <target name="check_results">
179 problem, the -check_results task will parse the generated XML report 179 <copy
180 and look for the substrings 'failures="0"' and 'errors="0"'. If either 180 file="${build.test.reports.dir}/TEST-${build.test.suite}.xml"
181 of these strings cannot be found, then a <fail> task is run.--> 181 tofile="${build.out}/test-results.xml"/>
182 <target name="check_results" depends="generateHtml">
183 182
184 <loadfile 183 <loadfile
185 srcfile="${build.test.reports.dir}/TEST-${build.test.suite}.xml" 184 srcfile="${build.test.reports.dir}/TEST-${build.test.suite}.xml"
186 property="build.results.summary"> 185 property="build.results.summary">
187 <filterchain> 186 <filterchain>
188 <headfilter lines="10" /> 187 <headfilter lines="10" />
189 </filterchain> 188 </filterchain>
190 </loadfile> 189 </loadfile>
191 190
192 <!-- TODO: This condition assumes that there is a single report file wit h a 191 <!-- TODO: This condition assumes that there is a single report file wit h a
(...skipping 13 matching lines...) Expand all
206 </and> 205 </and>
207 </condition> 206 </condition>
208 <fail 207 <fail
209 message="FAILED - some tests failed - see the XML report in ${build. test.reports.dir} for more details" 208 message="FAILED - some tests failed - see the XML report in ${build. test.reports.dir} for more details"
210 unless="tests.passed" /> 209 unless="tests.passed" />
211 <echo 210 <echo
212 message="SUCCESS - all tests passed - see the XML report in ${build. test.reports.dir} for more details" /> 211 message="SUCCESS - all tests passed - see the XML report in ${build. test.reports.dir} for more details" />
213 </target> 212 </target>
214 213
215 <!-- 214 <!--
216 create an HTML version of the Junit output
217 -->
218 <target name="generateHtml">
219 <junitreport>
220 <fileset dir="${build.test.reports.dir}">
221 <include name="TEST-${build.test.suite}.xml" />
222 </fileset>
223 <report todir="${build.out}/html" >
224 </report>
225 </junitreport>
226 </target>
227
228 <!--
229 deploy the tests to the out directory so they cna be used by the test ru nner 215 deploy the tests to the out directory so they cna be used by the test ru nner
230 --> 216 -->
231 <target name="deploy" depends="build" description="Deploy the built Dart tes ts"> 217 <target name="deploy" depends="build" description="Deploy the built Dart tes ts">
232 <property file="${build.stage.scripts}/build.properties" prefix="build.p de."/> 218 <property file="${build.stage.scripts}/build.properties" prefix="build.p de."/>
233 <unzip dest="${build.target.dropins}" > 219 <unzip dest="${build.target.dropins}" >
234 <fileset dir="${build.stage.abs}/${build.pde.buildLabel}" includes=" *.zip" /> 220 <fileset dir="${build.stage.abs}/${build.pde.buildLabel}" includes=" *.zip" />
235 </unzip> 221 </unzip>
236 <copy todir="${build.target.abs}/eclipse"> 222 <copy todir="${build.target.abs}/eclipse">
237 <fileset dir="."> 223 <fileset dir=".">
238 <include name=".options"/> 224 <include name=".options"/>
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 426
441 <mkdir dir="${build.runtime}" /> 427 <mkdir dir="${build.runtime}" />
442 <mkdir dir="${build.target}" /> 428 <mkdir dir="${build.target}" />
443 <mkdir dir="${build.stage.plugins}" /> 429 <mkdir dir="${build.stage.plugins}" />
444 <mkdir dir="${build.stage.features}" /> 430 <mkdir dir="${build.stage.features}" />
445 <mkdir dir="${build.out}" /> 431 <mkdir dir="${build.out}" />
446 432
447 </target> 433 </target>
448 434
449 </project> 435 </project>
OLDNEW
« no previous file with comments | « editor/build/promote.py ('k') | editor/tools/plugins/com.google.dart.tools.core/META-INF/MANIFEST.MF » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698