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

Side by Side Diff: tools/test.dart

Issue 10244009: test rename overhaul: step 7 - corelib tests (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/corelib/unicode_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
Ivan Posva 2012/04/27 05:20:26 Please also update test-runtime.dart.
Siggi Cherem (dart-lang) 2012/04/27 18:25:48 Done.
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
11 * 2. the frog compiler (compiles dart to js) 11 * 2. the frog compiler (compiles dart to js)
(...skipping 20 matching lines...) Expand all
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"); 35 #import("../frog/tests/frog/test_config.dart");
36 #import("../frog/tests/leg/test_config.dart"); 36 #import("../frog/tests/leg/test_config.dart");
37 #import("../frog/tests/leg_only/test_config.dart"); 37 #import("../frog/tests/leg_only/test_config.dart");
38 #import("../frog/tests/native/test_config.dart"); 38 #import("../frog/tests/native/test_config.dart");
39 #import("../runtime/tests/vm/test_config.dart"); 39 #import("../runtime/tests/vm/test_config.dart");
40 #import("../samples/tests/samples/test_config.dart"); 40 #import("../samples/tests/samples/test_config.dart");
41 #import("../tests/co19/test_config.dart"); 41 #import("../tests/co19/test_config.dart");
42 #import("../tests/corelib/test_config.dart");
43 #import("../tests/isolate/test_config.dart"); 42 #import("../tests/isolate/test_config.dart");
44 #import("../tests/language/test_config.dart"); 43 #import("../tests/language/test_config.dart");
45 #import("../tests/lib/test_config.dart"); 44 #import("../tests/lib/test_config.dart");
46 #import("../tests/standalone/test_config.dart"); 45 #import("../tests/standalone/test_config.dart");
47 #import("../tests/utils/test_config.dart"); 46 #import("../tests/utils/test_config.dart");
48 47
49 /** 48 /**
50 * The directories that contain test suites which follow the conventions 49 * The directories that contain test suites which follow the conventions
51 * required by [StandardTestSuite]'s forDirectory constructor. 50 * required by [StandardTestSuite]'s forDirectory constructor.
52 * New test suites should follow this convention because it makes it much 51 * 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 52 * simpler to add them to test.dart. Existing test suites should be
54 * moved to here, if possible. 53 * moved to here, if possible.
55 */ 54 */
56 final TEST_SUITE_DIRECTORIES = const [ 55 final TEST_SUITE_DIRECTORIES = const [
Ivan Posva 2012/04/27 05:20:26 @whesse: Why do we need to list all of the directo
Bill Hesse 2012/04/27 07:14:11 I would like to make this a goal, but there is one
Ivan Posva 2012/04/27 08:49:41 As far as I know standard test suites do not have
57 'tests/benchmark_smoke', 56 'tests/benchmark_smoke',
57 'tests/corelib',
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() {
67 var startTime = new Date.now(); 67 var startTime = new Date.now();
(...skipping 30 matching lines...) Expand all
98 if (!configurationIterator.hasNext()) { 98 if (!configurationIterator.hasNext()) {
99 return false; 99 return false;
100 } 100 }
101 101
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 == 'corelib') {
109 queue.addTestSuite(new CorelibTestSuite(conf));
110 } else if (key == 'co19') { 108 } else if (key == 'co19') {
111 queue.addTestSuite(new Co19TestSuite(conf)); 109 queue.addTestSuite(new Co19TestSuite(conf));
112 } else if (key == 'language') { 110 } else if (key == 'language') {
113 queue.addTestSuite(new LanguageTestSuite(conf)); 111 queue.addTestSuite(new LanguageTestSuite(conf));
114 } else if (key == 'lib') { 112 } else if (key == 'lib') {
115 queue.addTestSuite(new LibTestSuite(conf)); 113 queue.addTestSuite(new LibTestSuite(conf));
116 } else if (key == 'isolate') { 114 } else if (key == 'isolate') {
117 queue.addTestSuite(new IsolateTestSuite(conf)); 115 queue.addTestSuite(new IsolateTestSuite(conf));
118 } else if (key == 'utils') { 116 } else if (key == 'utils') {
119 queue.addTestSuite(new UtilsTestSuite(conf)); 117 queue.addTestSuite(new UtilsTestSuite(conf));
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Start process queue. 149 // Start process queue.
152 var queue = new ProcessQueue(maxProcesses, 150 var queue = new ProcessQueue(maxProcesses,
153 progressIndicator, 151 progressIndicator,
154 startTime, 152 startTime,
155 printTiming, 153 printTiming,
156 enqueueConfiguration, 154 enqueueConfiguration,
157 verbose, 155 verbose,
158 listTests, 156 listTests,
159 keepGeneratedTests); 157 keepGeneratedTests);
160 } 158 }
OLDNEW
« no previous file with comments | « tests/corelib/unicode_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698