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

Side by Side Diff: tools/test.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 | « tests/utils/yaml_test.dart ('k') | tools/test-runtime.dart » ('j') | 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 /** 6 /**
7 * This file is the entrypoint of the dart test suite. This suite is used 7 * This file is the entrypoint of the dart test suite. This suite is used
8 * to test: 8 * to test:
9 * 9 *
10 * 1. the dart vm 10 * 1. the dart vm
(...skipping 19 matching lines...) Expand all
30 #import("testing/dart/test_suite.dart"); 30 #import("testing/dart/test_suite.dart");
31 31
32 #import("../client/tests/dartc/test_config.dart"); 32 #import("../client/tests/dartc/test_config.dart");
33 #import("../compiler/tests/dartc/test_config.dart"); 33 #import("../compiler/tests/dartc/test_config.dart");
34 #import("../frog/tests/await/test_config.dart"); 34 #import("../frog/tests/await/test_config.dart");
35 #import("../runtime/tests/vm/test_config.dart"); 35 #import("../runtime/tests/vm/test_config.dart");
36 #import("../samples/tests/samples/test_config.dart"); 36 #import("../samples/tests/samples/test_config.dart");
37 #import("../tests/co19/test_config.dart"); 37 #import("../tests/co19/test_config.dart");
38 #import("../tests/lib/test_config.dart"); 38 #import("../tests/lib/test_config.dart");
39 #import("../tests/standalone/test_config.dart"); 39 #import("../tests/standalone/test_config.dart");
40 #import("../tests/utils/test_config.dart");
41 40
42 /** 41 /**
43 * The directories that contain test suites which follow the conventions 42 * The directories that contain test suites which follow the conventions
44 * required by [StandardTestSuite]'s forDirectory constructor. 43 * required by [StandardTestSuite]'s forDirectory constructor.
45 * New test suites should follow this convention because it makes it much 44 * New test suites should follow this convention because it makes it much
46 * simpler to add them to test.dart. Existing test suites should be 45 * simpler to add them to test.dart. Existing test suites should be
47 * moved to here, if possible. 46 * moved to here, if possible.
48 */ 47 */
49 final TEST_SUITE_DIRECTORIES = const [ 48 final TEST_SUITE_DIRECTORIES = const [
50 'frog/tests/frog', 49 'frog/tests/frog',
51 'frog/tests/frog_native', 50 'frog/tests/frog_native',
52 'frog/tests/leg', 51 'frog/tests/leg',
53 'frog/tests/leg_only', 52 'frog/tests/leg_only',
54 'tests/benchmark_smoke', 53 'tests/benchmark_smoke',
55 'tests/corelib', 54 'tests/corelib',
56 'tests/dom', 55 'tests/dom',
57 'tests/html', 56 'tests/html',
58 'tests/isolate', 57 'tests/isolate',
59 'tests/json', 58 'tests/json',
60 'tests/language', 59 'tests/language',
60 'tests/utils',
61 'utils/tests/css', 61 'utils/tests/css',
62 'utils/tests/peg', 62 'utils/tests/peg',
63 'utils/tests/pub', 63 'utils/tests/pub',
64 ]; 64 ];
65 65
66 main() { 66 main() {
67 var startTime = new Date.now(); 67 var startTime = new Date.now();
68 var optionsParser = new TestOptionsParser(); 68 var optionsParser = new TestOptionsParser();
69 List<Map> configurations = optionsParser.parse(new Options().arguments); 69 List<Map> configurations = optionsParser.parse(new Options().arguments);
70 if (configurations == null || configurations.length == 0) return; 70 if (configurations == null || configurations.length == 0) return;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 var conf = configurationIterator.next(); 102 var conf = configurationIterator.next();
103 for (String key in selectors.getKeys()) { 103 for (String key in selectors.getKeys()) {
104 if (key == 'samples') { 104 if (key == 'samples') {
105 queue.addTestSuite(new SamplesTestSuite(conf)); 105 queue.addTestSuite(new SamplesTestSuite(conf));
106 } else if (key == 'standalone') { 106 } else if (key == 'standalone') {
107 queue.addTestSuite(new StandaloneTestSuite(conf)); 107 queue.addTestSuite(new StandaloneTestSuite(conf));
108 } else if (key == 'co19') { 108 } else if (key == 'co19') {
109 queue.addTestSuite(new Co19TestSuite(conf)); 109 queue.addTestSuite(new Co19TestSuite(conf));
110 } else if (key == 'lib') { 110 } else if (key == 'lib') {
111 queue.addTestSuite(new LibTestSuite(conf)); 111 queue.addTestSuite(new LibTestSuite(conf));
112 } else if (key == 'utils') {
113 queue.addTestSuite(new UtilsTestSuite(conf));
114 } else if (conf['runtime'] == 'vm' && key == 'vm') { 112 } else if (conf['runtime'] == 'vm' && key == 'vm') {
115 queue.addTestSuite(new VMTestSuite(conf)); 113 queue.addTestSuite(new VMTestSuite(conf));
116 queue.addTestSuite(new VMDartTestSuite(conf)); 114 queue.addTestSuite(new VMDartTestSuite(conf));
117 } else if (conf['compiler'] == 'dartc' && key == 'dartc') { 115 } else if (conf['compiler'] == 'dartc' && key == 'dartc') {
118 queue.addTestSuite(new ClientDartcTestSuite(conf)); 116 queue.addTestSuite(new ClientDartcTestSuite(conf));
119 } else if (conf['compiler'] == 'dartc' && key == 'dartc') { 117 } else if (conf['compiler'] == 'dartc' && key == 'dartc') {
120 queue.addTestSuite(new JUnitDartcTestSuite(conf)); 118 queue.addTestSuite(new JUnitDartcTestSuite(conf));
121 } else if (key == 'await') { 119 } else if (key == 'await') {
122 queue.addTestSuite(new AwaitTestSuite(conf)); 120 queue.addTestSuite(new AwaitTestSuite(conf));
123 } 121 }
(...skipping 13 matching lines...) Expand all
137 // Start process queue. 135 // Start process queue.
138 var queue = new ProcessQueue(maxProcesses, 136 var queue = new ProcessQueue(maxProcesses,
139 progressIndicator, 137 progressIndicator,
140 startTime, 138 startTime,
141 printTiming, 139 printTiming,
142 enqueueConfiguration, 140 enqueueConfiguration,
143 verbose, 141 verbose,
144 listTests, 142 listTests,
145 keepGeneratedTests); 143 keepGeneratedTests);
146 } 144 }
OLDNEW
« no previous file with comments | « tests/utils/yaml_test.dart ('k') | tools/test-runtime.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698