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

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

Issue 2993043002: Split language_2.status into multiple files. (Closed)
Patch Set: Merge branch 'master' into split-language-tests Created 3 years, 4 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
« no previous file with comments | « tests/language_2/language_2_vm.status ('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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 * instead of having to create a custom [StandardTestSuite] subclass. In 611 * instead of having to create a custom [StandardTestSuite] subclass. In
612 * particular, if you add 'path/to/mytestsuite' to [TEST_SUITE_DIRECTORIES] 612 * particular, if you add 'path/to/mytestsuite' to [TEST_SUITE_DIRECTORIES]
613 * in test.dart, this will all be set up for you. 613 * in test.dart, this will all be set up for you.
614 */ 614 */
615 factory StandardTestSuite.forDirectory( 615 factory StandardTestSuite.forDirectory(
616 Configuration configuration, Path directory) { 616 Configuration configuration, Path directory) {
617 var name = directory.filename; 617 var name = directory.filename;
618 var status_paths = [ 618 var status_paths = [
619 '$directory/$name.status', 619 '$directory/$name.status',
620 '$directory/.status', 620 '$directory/.status',
621 '$directory/${name}_analyzer.status',
622 '$directory/${name}_analyzer2.status',
621 '$directory/${name}_dart2js.status', 623 '$directory/${name}_dart2js.status',
622 '$directory/${name}_analyzer2.status', 624 '$directory/${name}_dartdevc.status',
623 '$directory/${name}_kernel.status' 625 '$directory/${name}_kernel.status',
626 '$directory/${name}_precompiled.status',
627 '$directory/${name}_vm.status',
624 ]; 628 ];
625 629
626 return new StandardTestSuite(configuration, name, directory, status_paths, 630 return new StandardTestSuite(configuration, name, directory, status_paths,
627 isTestFilePredicate: (filename) => filename.endsWith('_test.dart'), 631 isTestFilePredicate: (filename) => filename.endsWith('_test.dart'),
628 recursive: true); 632 recursive: true);
629 } 633 }
630 634
631 List<Uri> get dart2JsBootstrapDependencies => _dart2JsBootstrapDependencies; 635 List<Uri> get dart2JsBootstrapDependencies => _dart2JsBootstrapDependencies;
632 636
633 /** 637 /**
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
1694 1698
1695 bool isTestFile(String filename) { 1699 bool isTestFile(String filename) {
1696 // NOTE: We exclude tests and patch files for now. 1700 // NOTE: We exclude tests and patch files for now.
1697 return filename.endsWith(".dart") && 1701 return filename.endsWith(".dart") &&
1698 !filename.endsWith("_test.dart") && 1702 !filename.endsWith("_test.dart") &&
1699 !filename.contains("_internal/js_runtime/lib"); 1703 !filename.contains("_internal/js_runtime/lib");
1700 } 1704 }
1701 1705
1702 bool get listRecursively => true; 1706 bool get listRecursively => true;
1703 } 1707 }
OLDNEW
« no previous file with comments | « tests/language_2/language_2_vm.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698