| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 new Path('pkg'), | 50 new Path('pkg'), |
| 51 new Path('runtime/tests/vm'), | 51 new Path('runtime/tests/vm'), |
| 52 new Path('samples/tests/samples'), | 52 new Path('samples/tests/samples'), |
| 53 new Path('tests/benchmark_smoke'), | 53 new Path('tests/benchmark_smoke'), |
| 54 new Path('tests/chrome'), | 54 new Path('tests/chrome'), |
| 55 new Path('tests/compiler/dart2js'), | 55 new Path('tests/compiler/dart2js'), |
| 56 new Path('tests/compiler/dart2js_extra'), | 56 new Path('tests/compiler/dart2js_extra'), |
| 57 new Path('tests/compiler/dart2js_foreign'), | 57 new Path('tests/compiler/dart2js_foreign'), |
| 58 new Path('tests/compiler/dart2js_native'), | 58 new Path('tests/compiler/dart2js_native'), |
| 59 new Path('tests/corelib'), | 59 new Path('tests/corelib'), |
| 60 new Path('tests/dom'), | |
| 61 new Path('tests/html'), | 60 new Path('tests/html'), |
| 62 new Path('tests/isolate'), | 61 new Path('tests/isolate'), |
| 63 new Path('tests/json'), | 62 new Path('tests/json'), |
| 64 new Path('tests/language'), | 63 new Path('tests/language'), |
| 65 new Path('tests/lib'), | 64 new Path('tests/lib'), |
| 66 new Path('tests/standalone'), | 65 new Path('tests/standalone'), |
| 67 new Path('tests/utils'), | 66 new Path('tests/utils'), |
| 68 new Path('utils/tests/css'), | 67 new Path('utils/tests/css'), |
| 69 new Path('utils/tests/peg'), | 68 new Path('utils/tests/peg'), |
| 70 new Path('utils/tests/pub'), | 69 new Path('utils/tests/pub'), |
| 70 // TODO(amouravski): move these to tests/ once they no longer rely on weird |
| 71 // dependencies. |
| 71 new Path('sdk/lib/_internal/dartdoc'), | 72 new Path('sdk/lib/_internal/dartdoc'), |
| 73 new Path('tools/dom/docs'), |
| 72 ]; | 74 ]; |
| 73 | 75 |
| 74 void testConfigurations(List<Map> configurations) { | 76 void testConfigurations(List<Map> configurations) { |
| 75 var startTime = new DateTime.now(); | 77 var startTime = new DateTime.now(); |
| 76 // Extract global options from first configuration. | 78 // Extract global options from first configuration. |
| 77 var firstConf = configurations[0]; | 79 var firstConf = configurations[0]; |
| 78 Map<String, RegExp> selectors = firstConf['selectors']; | 80 Map<String, RegExp> selectors = firstConf['selectors']; |
| 79 var maxProcesses = firstConf['tasks']; | 81 var maxProcesses = firstConf['tasks']; |
| 80 var progressIndicator = firstConf['progress']; | 82 var progressIndicator = firstConf['progress']; |
| 81 var failureSummary = firstConf['failure-summary']; | 83 var failureSummary = firstConf['failure-summary']; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 } | 232 } |
| 231 | 233 |
| 232 void main() { | 234 void main() { |
| 233 var optionsParser = new TestOptionsParser(); | 235 var optionsParser = new TestOptionsParser(); |
| 234 var configurations = optionsParser.parse(new Options().arguments); | 236 var configurations = optionsParser.parse(new Options().arguments); |
| 235 if (configurations != null && configurations.length > 0) { | 237 if (configurations != null && configurations.length > 0) { |
| 236 testConfigurations(configurations); | 238 testConfigurations(configurations); |
| 237 } | 239 } |
| 238 } | 240 } |
| 239 | 241 |
| OLD | NEW |