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

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

Issue 839543002: Revert "Build Observatory with runtime" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | « tools/testing/dart/test_configurations.dart ('k') | 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 }); 400 });
401 } 401 }
402 402
403 Future<Map> discoverPackagesInRepository() { 403 Future<Map> discoverPackagesInRepository() {
404 /* 404 /*
405 * Layout of packages inside the dart repository: 405 * Layout of packages inside the dart repository:
406 * dart/ 406 * dart/
407 * pkg/PACKAGE_NAME 407 * pkg/PACKAGE_NAME
408 * pkg/third_party/PACKAGE_NAME 408 * pkg/third_party/PACKAGE_NAME
409 * third_party/pkg/PACKAGE_NAME 409 * third_party/pkg/PACKAGE_NAME
410 * runtime/observatory/PACKAGE_NAME 410 * runtime/bin/vmservice/PACKAGE_NAME
411 */ 411 */
412 412
413 // Directories containing "-" are not valid pub packages and we therefore 413 // Directories containing "-" are not valid pub packages and we therefore
414 // do not include them in the list of packages. 414 // do not include them in the list of packages.
415 isValid(packageName) => 415 isValid(packageName) =>
416 packageName != 'third_party' && !packageName.contains('-'); 416 packageName != 'third_party' && !packageName.contains('-');
417 417
418 var dartDir = TestUtils.dartDir; 418 var dartDir = TestUtils.dartDir;
419 var futures = [ 419 var futures = [
420 listDir(dartDir.append('pkg'), isValid), 420 listDir(dartDir.append('pkg'), isValid),
421 listDir(dartDir.append('pkg').append('third_party'), isValid), 421 listDir(dartDir.append('pkg').append('third_party'), isValid),
422 listDir(dartDir.append('third_party').append('pkg'), isValid), 422 listDir(dartDir.append('third_party').append('pkg'), isValid),
423 listDir(dartDir.append('runtime').append('observatory'), isValid), 423 listDir(dartDir.append('runtime').append('bin').append('vmservice'),
424 isValid),
424 ]; 425 ];
425 return Future.wait(futures).then((results) { 426 return Future.wait(futures).then((results) {
426 var packageDirectories = {}; 427 var packageDirectories = {};
427 for (var result in results) { 428 for (var result in results) {
428 for (var packageTuple in result) { 429 for (var packageTuple in result) {
429 String packageName = packageTuple[0]; 430 String packageName = packageTuple[0];
430 String fullPath = packageTuple[1]; 431 String fullPath = packageTuple[1];
431 String yamlFile = 432 String yamlFile =
432 new Path(fullPath).append('pubspec.yaml').toNativePath(); 433 new Path(fullPath).append('pubspec.yaml').toNativePath();
433 if (new File(yamlFile).existsSync()) { 434 if (new File(yamlFile).existsSync()) {
(...skipping 2036 matching lines...) Expand 10 before | Expand all | Expand 10 after
2470 * $pass tests are expected to pass 2471 * $pass tests are expected to pass
2471 * $failOk tests are expected to fail that we won't fix 2472 * $failOk tests are expected to fail that we won't fix
2472 * $fail tests are expected to fail that we should fix 2473 * $fail tests are expected to fail that we should fix
2473 * $crash tests are expected to crash that we should fix 2474 * $crash tests are expected to crash that we should fix
2474 * $timeout tests are allowed to timeout 2475 * $timeout tests are allowed to timeout
2475 * $compileErrorSkip tests are skipped on browsers due to compile-time error 2476 * $compileErrorSkip tests are skipped on browsers due to compile-time error
2476 """; 2477 """;
2477 print(report); 2478 print(report);
2478 } 2479 }
2479 } 2480 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_configurations.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698