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

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

Issue 11411356: Reduce debug printing from test script when testing --build-directory option. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed debugging code. 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
« no previous file with comments | « no previous file | no next file » | 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 enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
(...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after
1509 */ 1509 */
1510 static Directory mkdirRecursive(Path base, Path relativePath) { 1510 static Directory mkdirRecursive(Path base, Path relativePath) {
1511 if (relativePath.isAbsolute) { 1511 if (relativePath.isAbsolute) {
1512 base = new Path('/'); 1512 base = new Path('/');
1513 } 1513 }
1514 Directory dir = new Directory.fromPath(base); 1514 Directory dir = new Directory.fromPath(base);
1515 Expect.isTrue(dir.existsSync(), 1515 Expect.isTrue(dir.existsSync(),
1516 "Expected ${dir} to already exist"); 1516 "Expected ${dir} to already exist");
1517 var segments = relativePath.segments(); 1517 var segments = relativePath.segments();
1518 for (String segment in segments) { 1518 for (String segment in segments) {
1519 // Ugly hack: if Windows absolute path starts with a drive, 1519 base = base.append(segment);
1520 // rewrite [base] properly. 1520 if (base.toString() == "/$segment" &&
Anton Muhin 2012/12/04 14:19:57 this all looks ugly, maybe we should extend Path a
1521 if (segment.length == 2 && segment.endsWith(':')) { 1521 segment.length == 2 &&
1522 base = new Path(segment); 1522 segment.endsWith(':')) {
1523 // Skip the directory creation for a path like "/E:".
1523 continue; 1524 continue;
1524 } 1525 }
1525 base = base.append(segment);
1526 dir = new Directory.fromPath(base); 1526 dir = new Directory.fromPath(base);
1527 print("======= creating $dir $base");
1528 if (!dir.existsSync()) { 1527 if (!dir.existsSync()) {
1529 dir.createSync(); 1528 dir.createSync();
1530 } 1529 }
1531 Expect.isTrue(dir.existsSync(), "Failed to create ${dir.path}"); 1530 Expect.isTrue(dir.existsSync(), "Failed to create ${dir.path}");
1532 } 1531 }
1533 return dir; 1532 return dir;
1534 } 1533 }
1535 1534
1536 /** 1535 /**
1537 * Copy a [source] file to a new place. 1536 * Copy a [source] file to a new place.
1538 * Assumes that the directory for [dest] already exists. 1537 * Assumes that the directory for [dest] already exists.
1539 */ 1538 */
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1683 * $pass tests are expected to pass 1682 * $pass tests are expected to pass
1684 * $failOk tests are expected to fail that we won't fix 1683 * $failOk tests are expected to fail that we won't fix
1685 * $fail tests are expected to fail that we should fix 1684 * $fail tests are expected to fail that we should fix
1686 * $crash tests are expected to crash that we should fix 1685 * $crash tests are expected to crash that we should fix
1687 * $timeout tests are allowed to timeout 1686 * $timeout tests are allowed to timeout
1688 * $compileErrorSkip tests are skipped on browsers due to compile-time error 1687 * $compileErrorSkip tests are skipped on browsers due to compile-time error
1689 """; 1688 """;
1690 print(report); 1689 print(report);
1691 } 1690 }
1692 } 1691 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698