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

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

Issue 306603002: Don't run tests against pinned barback versions in third_party. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 var futures = [ 408 var futures = [
409 listDir(dartDir.append('pkg'), isValid), 409 listDir(dartDir.append('pkg'), isValid),
410 listDir(dartDir.append('pkg').append('third_party'), isValid), 410 listDir(dartDir.append('pkg').append('third_party'), isValid),
411 listDir(dartDir.append('third_party').append('pkg'), isValid), 411 listDir(dartDir.append('third_party').append('pkg'), isValid),
412 ]; 412 ];
413 return Future.wait(futures).then((results) { 413 return Future.wait(futures).then((results) {
414 var packageDirectories = {}; 414 var packageDirectories = {};
415 for (var result in results) { 415 for (var result in results) {
416 for (var packageTuple in result) { 416 for (var packageTuple in result) {
417 String packageName = packageTuple[0]; 417 String packageName = packageTuple[0];
418
419 // Some packages are pinned to specific versions. We can ignore those
420 // for the purposes of testing.
421 if (packageName.contains('-')) continue;
kustermann 2014/05/27 23:28:17 I'd prefer if you move this logic into the "isVali
nweiz 2014/05/27 23:56:22 Done.
422
418 String fullPath = packageTuple[1]; 423 String fullPath = packageTuple[1];
419 String yamlFile = 424 String yamlFile =
420 new Path(fullPath).append('pubspec.yaml').toNativePath(); 425 new Path(fullPath).append('pubspec.yaml').toNativePath();
421 if (new File(yamlFile).existsSync()) { 426 if (new File(yamlFile).existsSync()) {
422 packageDirectories[packageName] = fullPath; 427 packageDirectories[packageName] = fullPath;
423 } 428 }
424 } 429 }
425 } 430 }
426 return packageDirectories; 431 return packageDirectories;
427 }); 432 });
(...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after
2219 * $pass tests are expected to pass 2224 * $pass tests are expected to pass
2220 * $failOk tests are expected to fail that we won't fix 2225 * $failOk tests are expected to fail that we won't fix
2221 * $fail tests are expected to fail that we should fix 2226 * $fail tests are expected to fail that we should fix
2222 * $crash tests are expected to crash that we should fix 2227 * $crash tests are expected to crash that we should fix
2223 * $timeout tests are allowed to timeout 2228 * $timeout tests are allowed to timeout
2224 * $compileErrorSkip tests are skipped on browsers due to compile-time error 2229 * $compileErrorSkip tests are skipped on browsers due to compile-time error
2225 """; 2230 """;
2226 print(report); 2231 print(report);
2227 } 2232 }
2228 } 2233 }
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