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

Side by Side Diff: tools/test.dart

Issue 14436004: Add a new test suite 'analyze_tests' (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed a test with type errors Created 7 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
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tools/testing/dart/test_options.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) 2013, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2013, 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 if (key == 'dartc' && conf['compiler'] == 'dartc') { 151 if (key == 'dartc' && conf['compiler'] == 'dartc') {
152 testSuites.add(new JUnitDartcTestSuite(conf)); 152 testSuites.add(new JUnitDartcTestSuite(conf));
153 } 153 }
154 // TODO(devoncarew): get these running with the new analyzer 154 // TODO(devoncarew): get these running with the new analyzer
155 if (key == 'dartc' && conf['compiler'] == 'dartc') { 155 if (key == 'dartc' && conf['compiler'] == 'dartc') {
156 testSuites.add(new SamplesDartcTestSuite(conf)); 156 testSuites.add(new SamplesDartcTestSuite(conf));
157 } 157 }
158 if (key == 'analyze_library') { 158 if (key == 'analyze_library') {
159 testSuites.add(new AnalyzeLibraryTestSuite(conf)); 159 testSuites.add(new AnalyzeLibraryTestSuite(conf));
160 } 160 }
161 if (key == 'analyze_tests') {
162 testSuites.add(new AnalyzeTestsTestSuite(conf));
163 }
161 } 164 }
162 } 165 }
163 166
164 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) { 167 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) {
165 final name = testSuiteDir.filename; 168 final name = testSuiteDir.filename;
166 if (selectors.containsKey(name)) { 169 if (selectors.containsKey(name)) {
167 testSuites.add( 170 testSuites.add(
168 new StandardTestSuite.forDirectory(conf, testSuiteDir)); 171 new StandardTestSuite.forDirectory(conf, testSuiteDir));
169 } 172 }
170 } 173 }
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 void main() { 276 void main() {
274 deleteTemporaryDartDirectories().then((_) { 277 deleteTemporaryDartDirectories().then((_) {
275 var optionsParser = new TestOptionsParser(); 278 var optionsParser = new TestOptionsParser();
276 var configurations = optionsParser.parse(new Options().arguments); 279 var configurations = optionsParser.parse(new Options().arguments);
277 if (configurations != null && configurations.length > 0) { 280 if (configurations != null && configurations.length > 0) {
278 testConfigurations(configurations); 281 testConfigurations(configurations);
279 } 282 }
280 }); 283 });
281 } 284 }
282 285
OLDNEW
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tools/testing/dart/test_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698