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

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

Issue 10229002: test rename overhaul: step 10 - crypto tests, and add back other tests commited (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
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.
Emily Fortuna 2012/04/28 00:06:14 When can we get rid of this file?
Siggi Cherem (dart-lang) 2012/04/28 00:08:55 not sure :(
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"); 20 #import("../tests/utils/test_config.dart");
21 #import("../runtime/tests/vm/test_config.dart"); 21 #import("../runtime/tests/vm/test_config.dart");
22 22
23 /** 23 /**
24 * The directories that contain test suites which follow the conventions 24 * The directories that contain test suites which follow the conventions
25 * required by [StandardTestSuite]'s forDirectory constructor. 25 * required by [StandardTestSuite]'s forDirectory constructor.
26 * New test suites should follow this convention because it makes it much 26 * 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 27 * simpler to add them to test.dart. Existing test suites should be
28 * moved to here, if possible. 28 * moved to here, if possible.
29 */ 29 */
30 final TEST_SUITE_DIRECTORIES = const [ 30 final TEST_SUITE_DIRECTORIES = const [
31 'tests/corelib', 31 'tests/corelib',
32 'tests/isolate', 32 'tests/isolate',
33 'tests/language', 33 'tests/language',
34 'tests/lib',
34 ]; 35 ];
35 36
36 main() { 37 main() {
37 var startTime = new Date.now(); 38 var startTime = new Date.now();
38 var optionsParser = new TestOptionsParser(); 39 var optionsParser = new TestOptionsParser();
39 List<Map> configurations = optionsParser.parse(new Options().arguments); 40 List<Map> configurations = optionsParser.parse(new Options().arguments);
40 if (configurations == null) return; 41 if (configurations == null) return;
41 42
42 // Extract global options from first configuration. 43 // Extract global options from first configuration.
43 var firstConf = configurations[0]; 44 var firstConf = configurations[0];
(...skipping 25 matching lines...) Expand all
69 return false; 70 return false;
70 } 71 }
71 72
72 var conf = configurationIterator.next(); 73 var conf = configurationIterator.next();
73 if (selectors.containsKey('standalone')) { 74 if (selectors.containsKey('standalone')) {
74 queue.addTestSuite(new StandaloneTestSuite(conf)); 75 queue.addTestSuite(new StandaloneTestSuite(conf));
75 } 76 }
76 if (selectors.containsKey('co19')) { 77 if (selectors.containsKey('co19')) {
77 queue.addTestSuite(new Co19TestSuite(conf)); 78 queue.addTestSuite(new Co19TestSuite(conf));
78 } 79 }
79 if (selectors.containsKey('lib')) {
80 queue.addTestSuite(new LibTestSuite(conf));
81 }
82 if (selectors.containsKey('utils')) { 80 if (selectors.containsKey('utils')) {
83 queue.addTestSuite(new UtilsTestSuite(conf)); 81 queue.addTestSuite(new UtilsTestSuite(conf));
84 } 82 }
85 if (conf['runtime'] == 'vm' && selectors.containsKey('vm')) { 83 if (conf['runtime'] == 'vm' && selectors.containsKey('vm')) {
86 queue.addTestSuite(new VMTestSuite(conf)); 84 queue.addTestSuite(new VMTestSuite(conf));
87 queue.addTestSuite(new VMDartTestSuite(conf)); 85 queue.addTestSuite(new VMDartTestSuite(conf));
88 } 86 }
89 87
90 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) { 88 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) {
91 final name = testSuiteDir.substring(testSuiteDir.lastIndexOf('/') + 1); 89 final name = testSuiteDir.substring(testSuiteDir.lastIndexOf('/') + 1);
92 if (selectors.containsKey(name)) { 90 if (selectors.containsKey(name)) {
93 queue.addTestSuite( 91 queue.addTestSuite(
94 new StandardTestSuite.forDirectory(conf, testSuiteDir)); 92 new StandardTestSuite.forDirectory(conf, testSuiteDir));
95 } 93 }
96 } 94 }
97 95
98 return true; 96 return true;
99 } 97 }
100 98
101 // Start process queue. 99 // Start process queue.
102 var queue = new ProcessQueue(maxProcesses, 100 var queue = new ProcessQueue(maxProcesses,
103 progressIndicator, 101 progressIndicator,
104 startTime, 102 startTime,
105 printTiming, 103 printTiming,
106 enqueueConfiguration, 104 enqueueConfiguration,
107 verbose, 105 verbose,
108 listTests, 106 listTests,
109 keepGeneratedTests); 107 keepGeneratedTests);
110 } 108 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698