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

Side by Side Diff: tools/testing/dart/test_runner.dart

Issue 17619013: Bugfix: make the new compilation artifact layout also work with dart2dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 months 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
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Classes and methods for executing tests. 6 * Classes and methods for executing tests.
7 * 7 *
8 * This module includes: 8 * This module includes:
9 * - Managing parallel execution of tests, including timeout checks. 9 * - Managing parallel execution of tests, including timeout checks.
10 * - Evaluating the output of each test as pass/fail/crash/timeout. 10 * - Evaluating the output of each test as pass/fail/crash/timeout.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // After the actual compile, we synchronously copy the compiled output files 191 // After the actual compile, we synchronously copy the compiled output files
192 // to shadow files. 192 // to shadow files.
193 _copyFilesSync(_outputFile, _shadowFile); 193 _copyFilesSync(_outputFile, _shadowFile);
194 return new Future.immediate(null); 194 return new Future.immediate(null);
195 } 195 }
196 196
197 _copyFilesSync(String from, String to) { 197 _copyFilesSync(String from, String to) {
198 for (var ending in ['', '.deps', '.map']) { 198 for (var ending in ['', '.deps', '.map']) {
199 var fromFile = new io.File("${from}${ending}"); 199 var fromFile = new io.File("${from}${ending}");
200 var toFile = new io.File("${to}${ending}"); 200 var toFile = new io.File("${to}${ending}");
201 // We copy the dart2js results synchronously to make it atomic. 201 if (fromFile.existsSync()) {
kustermann 2013/06/25 13:58:57 Seems like we don't have .map files with dart2dart
202 // This ensures that the shadow files are always in a consistent state (no 202 // We copy the dart2js results synchronously to make it atomic.
203 // other code in the testing scripts will see a half-written shadow 203 // This ensures that the shadow files are always in a consistent state
204 // file). 204 // (no other code in the testing scripts will see a half-written shadow
205 toFile.writeAsBytesSync(fromFile.readAsBytesSync()); 205 // file).
206 toFile.writeAsBytesSync(fromFile.readAsBytesSync());
207 }
206 } 208 }
207 } 209 }
208 } 210 }
209 211
210 class ContentShellCommand extends Command { 212 class ContentShellCommand extends Command {
211 /** 213 /**
212 * If [expectedOutputPath] is set, the output of content shell is compared 214 * If [expectedOutputPath] is set, the output of content shell is compared
213 * with the content of [expectedOutputPath]. 215 * with the content of [expectedOutputPath].
214 * This is used for example for pixel tests, where [expectedOutputPath] points 216 * This is used for example for pixel tests, where [expectedOutputPath] points
215 * to a *png file. 217 * to a *png file.
(...skipping 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after
1944 } 1946 }
1945 } 1947 }
1946 1948
1947 void eventAllTestsDone() { 1949 void eventAllTestsDone() {
1948 for (var listener in _eventListener) { 1950 for (var listener in _eventListener) {
1949 listener.allDone(); 1951 listener.allDone();
1950 } 1952 }
1951 } 1953 }
1952 } 1954 }
1953 1955
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698