| OLD | NEW |
| 1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
| 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2012, 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 24 matching lines...) Expand all Loading... |
| 35 #import("../samples/tests/dartc/test_config.dart"); | 35 #import("../samples/tests/dartc/test_config.dart"); |
| 36 #import("../tests/co19/test_config.dart"); | 36 #import("../tests/co19/test_config.dart"); |
| 37 | 37 |
| 38 /** | 38 /** |
| 39 * The directories that contain test suites which follow the conventions | 39 * The directories that contain test suites which follow the conventions |
| 40 * required by [StandardTestSuite]'s forDirectory constructor. | 40 * required by [StandardTestSuite]'s forDirectory constructor. |
| 41 * New test suites should follow this convention because it makes it much | 41 * New test suites should follow this convention because it makes it much |
| 42 * simpler to add them to test.dart. Existing test suites should be | 42 * simpler to add them to test.dart. Existing test suites should be |
| 43 * moved to here, if possible. | 43 * moved to here, if possible. |
| 44 */ | 44 */ |
| 45 final TEST_SUITE_DIRECTORIES = const [ | 45 final TEST_SUITE_DIRECTORIES = [ |
| 46 const Path('pkg'), | 46 new Path('pkg'), |
| 47 const Path('runtime/tests/vm'), | 47 new Path('runtime/tests/vm'), |
| 48 const Path('samples/tests/samples'), | 48 new Path('samples/tests/samples'), |
| 49 const Path('tests/benchmark_smoke'), | 49 new Path('tests/benchmark_smoke'), |
| 50 const Path('tests/compiler/dart2js'), | 50 new Path('tests/compiler/dart2js'), |
| 51 const Path('tests/compiler/dart2js_extra'), | 51 new Path('tests/compiler/dart2js_extra'), |
| 52 const Path('tests/compiler/dart2js_foreign'), | 52 new Path('tests/compiler/dart2js_foreign'), |
| 53 const Path('tests/compiler/dart2js_native'), | 53 new Path('tests/compiler/dart2js_native'), |
| 54 const Path('tests/corelib'), | 54 new Path('tests/corelib'), |
| 55 const Path('tests/dom'), | 55 new Path('tests/dom'), |
| 56 const Path('tests/html'), | 56 new Path('tests/html'), |
| 57 const Path('tests/isolate'), | 57 new Path('tests/isolate'), |
| 58 const Path('tests/json'), | 58 new Path('tests/json'), |
| 59 const Path('tests/language'), | 59 new Path('tests/language'), |
| 60 const Path('tests/lib'), | 60 new Path('tests/lib'), |
| 61 const Path('tests/standalone'), | 61 new Path('tests/standalone'), |
| 62 const Path('tests/utils'), | 62 new Path('tests/utils'), |
| 63 const Path('utils/tests/css'), | 63 new Path('utils/tests/css'), |
| 64 const Path('utils/tests/peg'), | 64 new Path('utils/tests/peg'), |
| 65 const Path('utils/tests/pub'), | 65 new Path('utils/tests/pub'), |
| 66 ]; | 66 ]; |
| 67 | 67 |
| 68 main() { | 68 main() { |
| 69 var startTime = new Date.now(); | 69 var startTime = new Date.now(); |
| 70 var optionsParser = new TestOptionsParser(); | 70 var optionsParser = new TestOptionsParser(); |
| 71 List<Map> configurations = optionsParser.parse(new Options().arguments); | 71 List<Map> configurations = optionsParser.parse(new Options().arguments); |
| 72 if (configurations == null || configurations.length == 0) return; | 72 if (configurations == null || configurations.length == 0) return; |
| 73 | 73 |
| 74 // Extract global options from first configuration. | 74 // Extract global options from first configuration. |
| 75 var firstConf = configurations[0]; | 75 var firstConf = configurations[0]; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 // Start process queue. | 130 // Start process queue. |
| 131 var queue = new ProcessQueue(maxProcesses, | 131 var queue = new ProcessQueue(maxProcesses, |
| 132 progressIndicator, | 132 progressIndicator, |
| 133 startTime, | 133 startTime, |
| 134 printTiming, | 134 printTiming, |
| 135 enqueueConfiguration, | 135 enqueueConfiguration, |
| 136 verbose, | 136 verbose, |
| 137 listTests); | 137 listTests); |
| 138 } | 138 } |
| OLD | NEW |