| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |