| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // running at a time. For details, see | 160 // running at a time. For details, see |
| 161 // http://code.google.com/p/selenium/wiki/InternetExplorerDriver. | 161 // http://code.google.com/p/selenium/wiki/InternetExplorerDriver. |
| 162 if (conf['runtime'].startsWith('ie')) { | 162 if (conf['runtime'].startsWith('ie')) { |
| 163 maxBrowserProcesses = 1; | 163 maxBrowserProcesses = 1; |
| 164 } | 164 } |
| 165 | 165 |
| 166 for (String key in selectors.keys) { | 166 for (String key in selectors.keys) { |
| 167 if (key == 'co19') { | 167 if (key == 'co19') { |
| 168 testSuites.add(new Co19TestSuite(conf)); | 168 testSuites.add(new Co19TestSuite(conf)); |
| 169 } else if (conf['runtime'] == 'vm' && key == 'vm') { | 169 } else if (conf['runtime'] == 'vm' && key == 'vm') { |
| 170 // vm tests contain both cc tests (added here) and dart tests (added in | 170 // TODO(kustermann): Currently we don't support running VM unittest |
| 171 // [TEST_SUITE_DIRECTORIES]). | 171 // tests (i.e. run_vm_tests) on ARM because: |
| 172 testSuites.add(new VMTestSuite(conf)); | 172 // a) we currently use record&replay [test.dart cannot be used on ARM] |
| 173 // b) we cannot easily determine all the VM test names |
| 174 // [we would need to run 'run_vm_tests --list' on ARM] |
| 175 if (!['arm', 'mips'].contains(conf['arch'])) { |
| 176 // vm tests contain both cc tests (added here) and dart tests (added |
| 177 // in [TEST_SUITE_DIRECTORIES]). |
| 178 testSuites.add(new VMTestSuite(conf)); |
| 179 } |
| 173 } else if (conf['analyzer']) { | 180 } else if (conf['analyzer']) { |
| 174 if (key == 'dartc' && conf['compiler'] == 'dartc') { | 181 if (key == 'dartc' && conf['compiler'] == 'dartc') { |
| 175 testSuites.add(new JUnitDartcTestSuite(conf)); | 182 testSuites.add(new JUnitDartcTestSuite(conf)); |
| 176 } | 183 } |
| 177 // TODO(devoncarew): get these running with the new analyzer | 184 // TODO(devoncarew): get these running with the new analyzer |
| 178 if (key == 'dartc' && conf['compiler'] == 'dartc') { | 185 if (key == 'dartc' && conf['compiler'] == 'dartc') { |
| 179 testSuites.add(new SamplesDartcTestSuite(conf)); | 186 testSuites.add(new SamplesDartcTestSuite(conf)); |
| 180 } | 187 } |
| 181 if (key == 'analyze_library') { | 188 if (key == 'analyze_library') { |
| 182 testSuites.add(new AnalyzeLibraryTestSuite(conf)); | 189 testSuites.add(new AnalyzeLibraryTestSuite(conf)); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 void main() { | 309 void main() { |
| 303 deleteTemporaryDartDirectories().then((_) { | 310 deleteTemporaryDartDirectories().then((_) { |
| 304 var optionsParser = new TestOptionsParser(); | 311 var optionsParser = new TestOptionsParser(); |
| 305 var configurations = optionsParser.parse(new Options().arguments); | 312 var configurations = optionsParser.parse(new Options().arguments); |
| 306 if (configurations != null && configurations.length > 0) { | 313 if (configurations != null && configurations.length > 0) { |
| 307 testConfigurations(configurations); | 314 testConfigurations(configurations); |
| 308 } | 315 } |
| 309 }); | 316 }); |
| 310 } | 317 } |
| 311 | 318 |
| OLD | NEW |