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

Side by Side Diff: tools/test.dart

Issue 10250002: test rename overhaul: step 5 - frog and leg tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 14 matching lines...) Expand all
25 25
26 #library("test"); 26 #library("test");
27 27
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("../frog/tests/frog/test_config.dart");
36 #import("../frog/tests/leg/test_config.dart");
37 #import("../frog/tests/leg_only/test_config.dart");
38 #import("../frog/tests/native/test_config.dart");
39 #import("../runtime/tests/vm/test_config.dart"); 35 #import("../runtime/tests/vm/test_config.dart");
40 #import("../samples/tests/samples/test_config.dart"); 36 #import("../samples/tests/samples/test_config.dart");
41 #import("../tests/co19/test_config.dart"); 37 #import("../tests/co19/test_config.dart");
42 #import("../tests/corelib/test_config.dart"); 38 #import("../tests/corelib/test_config.dart");
43 #import("../tests/isolate/test_config.dart"); 39 #import("../tests/isolate/test_config.dart");
44 #import("../tests/language/test_config.dart"); 40 #import("../tests/language/test_config.dart");
45 #import("../tests/lib/test_config.dart"); 41 #import("../tests/lib/test_config.dart");
46 #import("../tests/standalone/test_config.dart"); 42 #import("../tests/standalone/test_config.dart");
47 #import("../tests/utils/test_config.dart"); 43 #import("../tests/utils/test_config.dart");
48 44
49 /** 45 /**
50 * The directories that contain test suites which follow the conventions 46 * The directories that contain test suites which follow the conventions
51 * required by [StandardTestSuite]'s forDirectory constructor. 47 * required by [StandardTestSuite]'s forDirectory constructor.
52 * New test suites should follow this convention because it makes it much 48 * New test suites should follow this convention because it makes it much
53 * simpler to add them to test.dart. Existing test suites should be 49 * simpler to add them to test.dart. Existing test suites should be
54 * moved to here, if possible. 50 * moved to here, if possible.
55 */ 51 */
56 final TEST_SUITE_DIRECTORIES = const [ 52 final TEST_SUITE_DIRECTORIES = const [
53 'frog/tests/frog',
54 'frog/tests/frog_native',
55 'frog/tests/leg',
56 'frog/tests/leg_only',
57 'tests/benchmark_smoke', 57 'tests/benchmark_smoke',
58 'tests/dom', 58 'tests/dom',
59 'tests/html', 59 'tests/html',
60 'tests/json', 60 'tests/json',
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() {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 queue.addTestSuite(new LanguageTestSuite(conf)); 113 queue.addTestSuite(new LanguageTestSuite(conf));
114 } else if (key == 'lib') { 114 } else if (key == 'lib') {
115 queue.addTestSuite(new LibTestSuite(conf)); 115 queue.addTestSuite(new LibTestSuite(conf));
116 } else if (key == 'isolate') { 116 } else if (key == 'isolate') {
117 queue.addTestSuite(new IsolateTestSuite(conf)); 117 queue.addTestSuite(new IsolateTestSuite(conf));
118 } else if (key == 'utils') { 118 } else if (key == 'utils') {
119 queue.addTestSuite(new UtilsTestSuite(conf)); 119 queue.addTestSuite(new UtilsTestSuite(conf));
120 } else if (conf['runtime'] == 'vm' && key == 'vm') { 120 } else if (conf['runtime'] == 'vm' && key == 'vm') {
121 queue.addTestSuite(new VMTestSuite(conf)); 121 queue.addTestSuite(new VMTestSuite(conf));
122 queue.addTestSuite(new VMDartTestSuite(conf)); 122 queue.addTestSuite(new VMDartTestSuite(conf));
123 } else if (key == 'frog') {
124 queue.addTestSuite(new FrogTestSuite(conf));
125 } else if (key == 'leg') {
126 queue.addTestSuite(new LegTestSuite(conf));
127 } else if (key == 'leg_only') {
128 queue.addTestSuite(new LegOnlyTestSuite(conf));
129 } else if (key == 'frog_native') {
130 queue.addTestSuite(new FrogNativeTestSuite(conf));
131 } else if (conf['compiler'] == 'dartc' && key == 'dartc') { 123 } else if (conf['compiler'] == 'dartc' && key == 'dartc') {
132 queue.addTestSuite(new ClientDartcTestSuite(conf)); 124 queue.addTestSuite(new ClientDartcTestSuite(conf));
133 } else if (conf['compiler'] == 'dartc' && key == 'dartc') { 125 } else if (conf['compiler'] == 'dartc' && key == 'dartc') {
134 queue.addTestSuite(new JUnitDartcTestSuite(conf)); 126 queue.addTestSuite(new JUnitDartcTestSuite(conf));
135 } else if (key == 'await') { 127 } else if (key == 'await') {
136 queue.addTestSuite(new AwaitTestSuite(conf)); 128 queue.addTestSuite(new AwaitTestSuite(conf));
137 } 129 }
138 } 130 }
139 131
140 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) { 132 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) {
(...skipping 10 matching lines...) Expand all
151 // Start process queue. 143 // Start process queue.
152 var queue = new ProcessQueue(maxProcesses, 144 var queue = new ProcessQueue(maxProcesses,
153 progressIndicator, 145 progressIndicator,
154 startTime, 146 startTime,
155 printTiming, 147 printTiming,
156 enqueueConfiguration, 148 enqueueConfiguration,
157 verbose, 149 verbose,
158 listTests, 150 listTests,
159 keepGeneratedTests); 151 keepGeneratedTests);
160 } 152 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698