| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 new Path('tests/corelib'), | 63 new Path('tests/corelib'), |
| 64 new Path('tests/html'), | 64 new Path('tests/html'), |
| 65 new Path('tests/isolate'), | 65 new Path('tests/isolate'), |
| 66 new Path('tests/language'), | 66 new Path('tests/language'), |
| 67 new Path('tests/lib'), | 67 new Path('tests/lib'), |
| 68 new Path('tests/standalone'), | 68 new Path('tests/standalone'), |
| 69 new Path('tests/try'), | 69 new Path('tests/try'), |
| 70 new Path('tests/utils'), | 70 new Path('tests/utils'), |
| 71 new Path('utils/tests/css'), | 71 new Path('utils/tests/css'), |
| 72 new Path('utils/tests/peg'), | 72 new Path('utils/tests/peg'), |
| 73 new Path('sdk/lib/_internal/pub'), | |
| 74 ]; | 73 ]; |
| 75 | 74 |
| 76 void testConfigurations(List<Map> configurations) { | 75 void testConfigurations(List<Map> configurations) { |
| 77 var startTime = new DateTime.now(); | 76 var startTime = new DateTime.now(); |
| 78 // Extract global options from first configuration. | 77 // Extract global options from first configuration. |
| 79 var firstConf = configurations[0]; | 78 var firstConf = configurations[0]; |
| 80 var maxProcesses = firstConf['tasks']; | 79 var maxProcesses = firstConf['tasks']; |
| 81 var progressIndicator = firstConf['progress']; | 80 var progressIndicator = firstConf['progress']; |
| 82 // TODO(kustermann): Remove this option once the buildbots don't use it | 81 // TODO(kustermann): Remove this option once the buildbots don't use it |
| 83 // anymore. | 82 // anymore. |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 "--use-public-packages with the pkgbuild test suite!"); | 211 "--use-public-packages with the pkgbuild test suite!"); |
| 213 exit(1); | 212 exit(1); |
| 214 } | 213 } |
| 215 if (!conf['use_sdk']) { | 214 if (!conf['use_sdk']) { |
| 216 print("Running the 'pkgbuild' test suite requires " | 215 print("Running the 'pkgbuild' test suite requires " |
| 217 "passing the '--use-sdk' to test.py"); | 216 "passing the '--use-sdk' to test.py"); |
| 218 exit(1); | 217 exit(1); |
| 219 } | 218 } |
| 220 testSuites.add( | 219 testSuites.add( |
| 221 new PkgBuildTestSuite(conf, 'pkgbuild', 'pkg/pkgbuild.status')); | 220 new PkgBuildTestSuite(conf, 'pkgbuild', 'pkg/pkgbuild.status')); |
| 221 } else if (key == 'pub') { |
| 222 // TODO(rnystrom): Move pub back into TEST_SUITE_DIRECTORIES once |
| 223 // #104 is fixed. |
| 224 testSuites.add(new StandardTestSuite.forDirectory(conf, |
| 225 new Path('sdk/lib/_internal/pub_generated'), 'pub')); |
| 222 } | 226 } |
| 223 } | 227 } |
| 224 | 228 |
| 225 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) { | 229 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) { |
| 226 final name = testSuiteDir.filename; | 230 final name = testSuiteDir.filename; |
| 227 if (selectors.containsKey(name)) { | 231 if (selectors.containsKey(name)) { |
| 228 testSuites.add( | 232 testSuites.add( |
| 229 new StandardTestSuite.forDirectory(conf, testSuiteDir)); | 233 new StandardTestSuite.forDirectory(conf, testSuiteDir)); |
| 230 } | 234 } |
| 231 } | 235 } |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 TestUtils.setDartDirUri(Platform.script.resolve('..')); | 332 TestUtils.setDartDirUri(Platform.script.resolve('..')); |
| 329 deleteTemporaryDartDirectories().then((_) { | 333 deleteTemporaryDartDirectories().then((_) { |
| 330 var optionsParser = new TestOptionsParser(); | 334 var optionsParser = new TestOptionsParser(); |
| 331 var configurations = optionsParser.parse(arguments); | 335 var configurations = optionsParser.parse(arguments); |
| 332 if (configurations != null && configurations.length > 0) { | 336 if (configurations != null && configurations.length > 0) { |
| 333 testConfigurations(configurations); | 337 testConfigurations(configurations); |
| 334 } | 338 } |
| 335 }); | 339 }); |
| 336 } | 340 } |
| 337 | 341 |
| OLD | NEW |