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

Side by Side Diff: tools/test.dart

Issue 10252020: test rename overhaul: step 12 - standalone (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 /** 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 17 matching lines...) Expand all
28 #import("testing/dart/test_runner.dart"); 28 #import("testing/dart/test_runner.dart");
29 #import("testing/dart/test_options.dart"); 29 #import("testing/dart/test_options.dart");
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/standalone/test_config.dart");
39 38
40 /** 39 /**
41 * The directories that contain test suites which follow the conventions 40 * The directories that contain test suites which follow the conventions
42 * required by [StandardTestSuite]'s forDirectory constructor. 41 * required by [StandardTestSuite]'s forDirectory constructor.
43 * New test suites should follow this convention because it makes it much 42 * New test suites should follow this convention because it makes it much
44 * simpler to add them to test.dart. Existing test suites should be 43 * simpler to add them to test.dart. Existing test suites should be
45 * moved to here, if possible. 44 * moved to here, if possible.
46 */ 45 */
47 final TEST_SUITE_DIRECTORIES = const [ 46 final TEST_SUITE_DIRECTORIES = const [
48 'frog/tests/frog', 47 'frog/tests/frog',
49 'frog/tests/frog_native', 48 'frog/tests/frog_native',
50 'frog/tests/leg', 49 'frog/tests/leg',
51 'frog/tests/leg_only', 50 'frog/tests/leg_only',
52 'tests/benchmark_smoke', 51 'tests/benchmark_smoke',
53 'tests/corelib', 52 'tests/corelib',
54 'tests/dom', 53 'tests/dom',
55 'tests/html', 54 'tests/html',
56 'tests/isolate', 55 'tests/isolate',
57 'tests/json', 56 'tests/json',
58 'tests/language', 57 'tests/language',
58 'tests/standalone',
59 'tests/utils', 59 'tests/utils',
60 'utils/tests/css', 60 'utils/tests/css',
61 'utils/tests/peg', 61 'utils/tests/peg',
62 'utils/tests/pub', 62 'utils/tests/pub',
63 ]; 63 ];
64 64
65 main() { 65 main() {
66 var startTime = new Date.now(); 66 var startTime = new Date.now();
67 var optionsParser = new TestOptionsParser(); 67 var optionsParser = new TestOptionsParser();
68 List<Map> configurations = optionsParser.parse(new Options().arguments); 68 List<Map> configurations = optionsParser.parse(new Options().arguments);
(...skipping 26 matching lines...) Expand all
95 var configurationIterator = configurations.iterator(); 95 var configurationIterator = configurations.iterator();
96 bool enqueueConfiguration(ProcessQueue queue) { 96 bool enqueueConfiguration(ProcessQueue queue) {
97 if (!configurationIterator.hasNext()) { 97 if (!configurationIterator.hasNext()) {
98 return false; 98 return false;
99 } 99 }
100 100
101 var conf = configurationIterator.next(); 101 var conf = configurationIterator.next();
102 for (String key in selectors.getKeys()) { 102 for (String key in selectors.getKeys()) {
103 if (key == 'samples') { 103 if (key == 'samples') {
104 queue.addTestSuite(new SamplesTestSuite(conf)); 104 queue.addTestSuite(new SamplesTestSuite(conf));
105 } else if (key == 'standalone') {
106 queue.addTestSuite(new StandaloneTestSuite(conf));
107 } else if (key == 'co19') { 105 } else if (key == 'co19') {
108 queue.addTestSuite(new Co19TestSuite(conf)); 106 queue.addTestSuite(new Co19TestSuite(conf));
109 } else if (conf['runtime'] == 'vm' && key == 'vm') { 107 } else if (conf['runtime'] == 'vm' && key == 'vm') {
110 queue.addTestSuite(new VMTestSuite(conf)); 108 queue.addTestSuite(new VMTestSuite(conf));
111 queue.addTestSuite(new VMDartTestSuite(conf)); 109 queue.addTestSuite(new VMDartTestSuite(conf));
112 } else if (conf['compiler'] == 'dartc' && key == 'dartc') { 110 } else if (conf['compiler'] == 'dartc' && key == 'dartc') {
113 queue.addTestSuite(new ClientDartcTestSuite(conf)); 111 queue.addTestSuite(new ClientDartcTestSuite(conf));
114 } else if (conf['compiler'] == 'dartc' && key == 'dartc') { 112 } else if (conf['compiler'] == 'dartc' && key == 'dartc') {
115 queue.addTestSuite(new JUnitDartcTestSuite(conf)); 113 queue.addTestSuite(new JUnitDartcTestSuite(conf));
116 } else if (key == 'await') { 114 } else if (key == 'await') {
(...skipping 15 matching lines...) Expand all
132 // Start process queue. 130 // Start process queue.
133 var queue = new ProcessQueue(maxProcesses, 131 var queue = new ProcessQueue(maxProcesses,
134 progressIndicator, 132 progressIndicator,
135 startTime, 133 startTime,
136 printTiming, 134 printTiming,
137 enqueueConfiguration, 135 enqueueConfiguration,
138 verbose, 136 verbose,
139 listTests, 137 listTests,
140 keepGeneratedTests); 138 keepGeneratedTests);
141 } 139 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698