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

Side by Side Diff: tools/test.dart

Issue 10343008: reenable some dartc tests that have been disabled accidentally. Move (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 11 matching lines...) Expand all
22 * "tools/testing/test_options.dart". 22 * "tools/testing/test_options.dart".
23 * 23 *
24 */ 24 */
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");
33 #import("../compiler/tests/dartc/test_config.dart"); 32 #import("../compiler/tests/dartc/test_config.dart");
34 #import("../frog/tests/await/test_config.dart"); 33 #import("../frog/tests/await/test_config.dart");
35 #import("../runtime/tests/vm/test_config.dart"); 34 #import("../runtime/tests/vm/test_config.dart");
35 #import("../samples/tests/dartc/test_config.dart");
36 #import("../tests/co19/test_config.dart"); 36 #import("../tests/co19/test_config.dart");
37 37
38 /** 38 /**
39 * The directories that contain test suites which follow the conventions 39 * The directories that contain test suites which follow the conventions
40 * required by [StandardTestSuite]'s forDirectory constructor. 40 * required by [StandardTestSuite]'s forDirectory constructor.
41 * New test suites should follow this convention because it makes it much 41 * New test suites should follow this convention because it makes it much
42 * simpler to add them to test.dart. Existing test suites should be 42 * simpler to add them to test.dart. Existing test suites should be
43 * moved to here, if possible. 43 * moved to here, if possible.
44 */ 44 */
45 final TEST_SUITE_DIRECTORIES = const [ 45 final TEST_SUITE_DIRECTORIES = const [
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 var conf = configurationIterator.next(); 103 var conf = configurationIterator.next();
104 for (String key in selectors.getKeys()) { 104 for (String key in selectors.getKeys()) {
105 if (key == 'co19') { 105 if (key == 'co19') {
106 queue.addTestSuite(new Co19TestSuite(conf)); 106 queue.addTestSuite(new Co19TestSuite(conf));
107 } else if (conf['runtime'] == 'vm' && key == 'vm') { 107 } else if (conf['runtime'] == 'vm' && key == 'vm') {
108 // vm tests contain both cc tests (added here) and dart tests (added in 108 // vm tests contain both cc tests (added here) and dart tests (added in
109 // [TEST_SUITE_DIRECTORIES]). 109 // [TEST_SUITE_DIRECTORIES]).
110 queue.addTestSuite(new VMTestSuite(conf)); 110 queue.addTestSuite(new VMTestSuite(conf));
111 } else if (conf['compiler'] == 'dartc' && key == 'dartc') { 111 } else if (conf['compiler'] == 'dartc' && key == 'dartc') {
112 queue.addTestSuite(new ClientDartcTestSuite(conf)); 112 queue.addTestSuite(new SamplesDartcTestSuite(conf));
113 } else if (conf['compiler'] == 'dartc' && key == 'dartc') {
Emily Fortuna 2012/05/02 22:34:41 wow, this is kindof hilarious.
114 queue.addTestSuite(new JUnitDartcTestSuite(conf)); 113 queue.addTestSuite(new JUnitDartcTestSuite(conf));
115 } else if (key == 'await') { 114 } else if (key == 'await') {
116 queue.addTestSuite(new AwaitTestSuite(conf)); 115 queue.addTestSuite(new AwaitTestSuite(conf));
117 } 116 }
118 } 117 }
119 118
120 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) { 119 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) {
121 final name = testSuiteDir.substring(testSuiteDir.lastIndexOf('/') + 1); 120 final name = testSuiteDir.substring(testSuiteDir.lastIndexOf('/') + 1);
122 if (selectors.containsKey(name)) { 121 if (selectors.containsKey(name)) {
123 queue.addTestSuite( 122 queue.addTestSuite(
124 new StandardTestSuite.forDirectory(conf, testSuiteDir)); 123 new StandardTestSuite.forDirectory(conf, testSuiteDir));
125 } 124 }
126 } 125 }
127 126
128 return true; 127 return true;
129 } 128 }
130 129
131 // Start process queue. 130 // Start process queue.
132 var queue = new ProcessQueue(maxProcesses, 131 var queue = new ProcessQueue(maxProcesses,
133 progressIndicator, 132 progressIndicator,
134 startTime, 133 startTime,
135 printTiming, 134 printTiming,
136 enqueueConfiguration, 135 enqueueConfiguration,
137 verbose, 136 verbose,
138 listTests, 137 listTests,
139 keepGeneratedTests); 138 keepGeneratedTests);
140 } 139 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698