| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 */ | 51 */ |
| 52 final TEST_SUITE_DIRECTORIES = [ | 52 final TEST_SUITE_DIRECTORIES = [ |
| 53 new Path('tests/corelib'), | 53 new Path('tests/corelib'), |
| 54 new Path('tests/coroutine'), | 54 new Path('tests/coroutine'), |
| 55 new Path('tests/ffi'), | 55 new Path('tests/ffi'), |
| 56 new Path('tests/io'), | 56 new Path('tests/io'), |
| 57 new Path('tests/isolate'), | 57 new Path('tests/isolate'), |
| 58 new Path('tests/unsorted'), | 58 new Path('tests/unsorted'), |
| 59 new Path('tests/language'), | 59 new Path('tests/language'), |
| 60 new Path('tests/simple_system'), | 60 new Path('tests/simple_system'), |
| 61 new Path('samples'), |
| 61 ]; | 62 ]; |
| 62 | 63 |
| 63 void testConfigurations(List<Map> configurations) { | 64 void testConfigurations(List<Map> configurations) { |
| 64 var startTime = new DateTime.now(); | 65 var startTime = new DateTime.now(); |
| 65 // Extract global options from first configuration. | 66 // Extract global options from first configuration. |
| 66 var firstConf = configurations[0]; | 67 var firstConf = configurations[0]; |
| 67 var maxProcesses = firstConf['tasks']; | 68 var maxProcesses = firstConf['tasks']; |
| 68 var progressIndicator = firstConf['progress']; | 69 var progressIndicator = firstConf['progress']; |
| 69 // TODO(kustermann): Remove this option once the buildbots don't use it | 70 // TODO(kustermann): Remove this option once the buildbots don't use it |
| 70 // anymore. | 71 // anymore. |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 TestUtils.setDartDirUri(Platform.script.resolve('..')); | 286 TestUtils.setDartDirUri(Platform.script.resolve('..')); |
| 286 deleteTemporaryDartDirectories().then((_) { | 287 deleteTemporaryDartDirectories().then((_) { |
| 287 var optionsParser = new TestOptionsParser(); | 288 var optionsParser = new TestOptionsParser(); |
| 288 var configurations = optionsParser.parse(arguments); | 289 var configurations = optionsParser.parse(arguments); |
| 289 if (configurations != null && configurations.length > 0) { | 290 if (configurations != null && configurations.length > 0) { |
| 290 testConfigurations(configurations); | 291 testConfigurations(configurations); |
| 291 } | 292 } |
| 292 }); | 293 }); |
| 293 } | 294 } |
| 294 | 295 |
| OLD | NEW |