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

Side by Side Diff: tools/test-runtime.dart

Issue 10170040: test rename overhaul: step 11 - tests/utils (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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/test.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 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 // TODO(ager): Get rid of this version of test.dart when we don't have 6 // TODO(ager): Get rid of this version of test.dart when we don't have
7 // to worry about the special runtime checkout anymore. 7 // to worry about the special runtime checkout anymore.
8 // This file is identical to test.dart with test suites in the 8 // This file is identical to test.dart with test suites in the
9 // directories samples, client, compiler, frog, and utils removed. 9 // directories samples, client, compiler, frog, and utils removed.
10 10
11 #library("test"); 11 #library("test");
12 12
13 #import("testing/dart/test_runner.dart"); 13 #import("testing/dart/test_runner.dart");
14 #import("testing/dart/test_options.dart"); 14 #import("testing/dart/test_options.dart");
15 #import("testing/dart/test_suite.dart"); 15 #import("testing/dart/test_suite.dart");
16 16
17 #import("../tests/co19/test_config.dart"); 17 #import("../tests/co19/test_config.dart");
18 #import("../tests/lib/test_config.dart"); 18 #import("../tests/lib/test_config.dart");
19 #import("../tests/standalone/test_config.dart"); 19 #import("../tests/standalone/test_config.dart");
20 #import("../tests/utils/test_config.dart");
21 #import("../runtime/tests/vm/test_config.dart"); 20 #import("../runtime/tests/vm/test_config.dart");
22 21
23 /** 22 /**
24 * The directories that contain test suites which follow the conventions 23 * The directories that contain test suites which follow the conventions
25 * required by [StandardTestSuite]'s forDirectory constructor. 24 * required by [StandardTestSuite]'s forDirectory constructor.
26 * New test suites should follow this convention because it makes it much 25 * New test suites should follow this convention because it makes it much
27 * simpler to add them to test.dart. Existing test suites should be 26 * simpler to add them to test.dart. Existing test suites should be
28 * moved to here, if possible. 27 * moved to here, if possible.
29 */ 28 */
30 final TEST_SUITE_DIRECTORIES = const [ 29 final TEST_SUITE_DIRECTORIES = const [
31 'tests/corelib', 30 'tests/corelib',
32 'tests/isolate', 31 'tests/isolate',
33 'tests/language', 32 'tests/language',
33 'tests/utils',
34 ]; 34 ];
35 35
36 main() { 36 main() {
37 var startTime = new Date.now(); 37 var startTime = new Date.now();
38 var optionsParser = new TestOptionsParser(); 38 var optionsParser = new TestOptionsParser();
39 List<Map> configurations = optionsParser.parse(new Options().arguments); 39 List<Map> configurations = optionsParser.parse(new Options().arguments);
40 if (configurations == null) return; 40 if (configurations == null) return;
41 41
42 // Extract global options from first configuration. 42 // Extract global options from first configuration.
43 var firstConf = configurations[0]; 43 var firstConf = configurations[0];
(...skipping 28 matching lines...) Expand all
72 var conf = configurationIterator.next(); 72 var conf = configurationIterator.next();
73 if (selectors.containsKey('standalone')) { 73 if (selectors.containsKey('standalone')) {
74 queue.addTestSuite(new StandaloneTestSuite(conf)); 74 queue.addTestSuite(new StandaloneTestSuite(conf));
75 } 75 }
76 if (selectors.containsKey('co19')) { 76 if (selectors.containsKey('co19')) {
77 queue.addTestSuite(new Co19TestSuite(conf)); 77 queue.addTestSuite(new Co19TestSuite(conf));
78 } 78 }
79 if (selectors.containsKey('lib')) { 79 if (selectors.containsKey('lib')) {
80 queue.addTestSuite(new LibTestSuite(conf)); 80 queue.addTestSuite(new LibTestSuite(conf));
81 } 81 }
82 if (selectors.containsKey('utils')) {
83 queue.addTestSuite(new UtilsTestSuite(conf));
84 }
85 if (conf['runtime'] == 'vm' && selectors.containsKey('vm')) { 82 if (conf['runtime'] == 'vm' && selectors.containsKey('vm')) {
86 queue.addTestSuite(new VMTestSuite(conf)); 83 queue.addTestSuite(new VMTestSuite(conf));
87 queue.addTestSuite(new VMDartTestSuite(conf)); 84 queue.addTestSuite(new VMDartTestSuite(conf));
88 } 85 }
89 86
90 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) { 87 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) {
91 final name = testSuiteDir.substring(testSuiteDir.lastIndexOf('/') + 1); 88 final name = testSuiteDir.substring(testSuiteDir.lastIndexOf('/') + 1);
92 if (selectors.containsKey(name)) { 89 if (selectors.containsKey(name)) {
93 queue.addTestSuite( 90 queue.addTestSuite(
94 new StandardTestSuite.forDirectory(conf, testSuiteDir)); 91 new StandardTestSuite.forDirectory(conf, testSuiteDir));
95 } 92 }
96 } 93 }
97 94
98 return true; 95 return true;
99 } 96 }
100 97
101 // Start process queue. 98 // Start process queue.
102 var queue = new ProcessQueue(maxProcesses, 99 var queue = new ProcessQueue(maxProcesses,
103 progressIndicator, 100 progressIndicator,
104 startTime, 101 startTime,
105 printTiming, 102 printTiming,
106 enqueueConfiguration, 103 enqueueConfiguration,
107 verbose, 104 verbose,
108 listTests, 105 listTests,
109 keepGeneratedTests); 106 keepGeneratedTests);
110 } 107 }
OLDNEW
« no previous file with comments | « tools/test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698