| OLD | NEW |
| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 if (key == 'co19') { | 178 if (key == 'co19') { |
| 179 testSuites.add(new Co19TestSuite(conf)); | 179 testSuites.add(new Co19TestSuite(conf)); |
| 180 } else if (conf['runtime'] == 'vm' && key == 'vm') { | 180 } else if (conf['runtime'] == 'vm' && key == 'vm') { |
| 181 // vm tests contain both cc tests (added here) and dart tests (added | 181 // vm tests contain both cc tests (added here) and dart tests (added |
| 182 // in [TEST_SUITE_DIRECTORIES]). | 182 // in [TEST_SUITE_DIRECTORIES]). |
| 183 testSuites.add(new VMTestSuite(conf)); | 183 testSuites.add(new VMTestSuite(conf)); |
| 184 } else if (conf['analyzer']) { | 184 } else if (conf['analyzer']) { |
| 185 if (key == 'analyze_library') { | 185 if (key == 'analyze_library') { |
| 186 testSuites.add(new AnalyzeLibraryTestSuite(conf)); | 186 testSuites.add(new AnalyzeLibraryTestSuite(conf)); |
| 187 } | 187 } |
| 188 if (key == 'analyze_tests') { | |
| 189 testSuites.add(new AnalyzeTestsTestSuite(conf)); | |
| 190 } | |
| 191 } | 188 } |
| 192 } | 189 } |
| 193 | 190 |
| 194 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) { | 191 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) { |
| 195 final name = testSuiteDir.filename; | 192 final name = testSuiteDir.filename; |
| 196 if (selectors.containsKey(name)) { | 193 if (selectors.containsKey(name)) { |
| 197 testSuites.add( | 194 testSuites.add( |
| 198 new StandardTestSuite.forDirectory(conf, testSuiteDir)); | 195 new StandardTestSuite.forDirectory(conf, testSuiteDir)); |
| 199 } | 196 } |
| 200 } | 197 } |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 void main() { | 284 void main() { |
| 288 deleteTemporaryDartDirectories().then((_) { | 285 deleteTemporaryDartDirectories().then((_) { |
| 289 var optionsParser = new TestOptionsParser(); | 286 var optionsParser = new TestOptionsParser(); |
| 290 var configurations = optionsParser.parse(new Options().arguments); | 287 var configurations = optionsParser.parse(new Options().arguments); |
| 291 if (configurations != null && configurations.length > 0) { | 288 if (configurations != null && configurations.length > 0) { |
| 292 testConfigurations(configurations); | 289 testConfigurations(configurations); |
| 293 } | 290 } |
| 294 }); | 291 }); |
| 295 } | 292 } |
| 296 | 293 |
| OLD | NEW |