| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 new Path('tests/html'), | 58 new Path('tests/html'), |
| 59 new Path('tests/isolate'), | 59 new Path('tests/isolate'), |
| 60 new Path('tests/json'), | 60 new Path('tests/json'), |
| 61 new Path('tests/language'), | 61 new Path('tests/language'), |
| 62 new Path('tests/lib'), | 62 new Path('tests/lib'), |
| 63 new Path('tests/standalone'), | 63 new Path('tests/standalone'), |
| 64 new Path('tests/utils'), | 64 new Path('tests/utils'), |
| 65 new Path('utils/tests/css'), | 65 new Path('utils/tests/css'), |
| 66 new Path('utils/tests/peg'), | 66 new Path('utils/tests/peg'), |
| 67 new Path('sdk/lib/_internal/pub'), | 67 new Path('sdk/lib/_internal/pub'), |
| 68 // TODO(amouravski): move these to tests/ once they no longer rely on weird | |
| 69 // dependencies. | |
| 70 new Path('sdk/lib/_internal/dartdoc'), | |
| 71 new Path('tools/dom/docs'), | |
| 72 ]; | 68 ]; |
| 73 | 69 |
| 74 void testConfigurations(List<Map> configurations) { | 70 void testConfigurations(List<Map> configurations) { |
| 75 var startTime = new DateTime.now(); | 71 var startTime = new DateTime.now(); |
| 76 // Extract global options from first configuration. | 72 // Extract global options from first configuration. |
| 77 var firstConf = configurations[0]; | 73 var firstConf = configurations[0]; |
| 78 var maxProcesses = firstConf['tasks']; | 74 var maxProcesses = firstConf['tasks']; |
| 79 var progressIndicator = firstConf['progress']; | 75 var progressIndicator = firstConf['progress']; |
| 80 // TODO(kustermann): Remove this option once the buildbots don't use it | 76 // TODO(kustermann): Remove this option once the buildbots don't use it |
| 81 // anymore. | 77 // anymore. |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 void main(List<String> arguments) { | 308 void main(List<String> arguments) { |
| 313 deleteTemporaryDartDirectories().then((_) { | 309 deleteTemporaryDartDirectories().then((_) { |
| 314 var optionsParser = new TestOptionsParser(); | 310 var optionsParser = new TestOptionsParser(); |
| 315 var configurations = optionsParser.parse(arguments); | 311 var configurations = optionsParser.parse(arguments); |
| 316 if (configurations != null && configurations.length > 0) { | 312 if (configurations != null && configurations.length > 0) { |
| 317 testConfigurations(configurations); | 313 testConfigurations(configurations); |
| 318 } | 314 } |
| 319 }); | 315 }); |
| 320 } | 316 } |
| 321 | 317 |
| OLD | NEW |