| 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 |
| 11 * 2. the dart2js compiler | 11 * 2. the dart2js compiler |
| 12 * 3. the static analyzer | 12 * 3. the static analyzer |
| 13 * 4. the dart core library | 13 * 4. the dart core library |
| 14 * 5. other standard dart libraries (DOM bindings, ui libraries, | 14 * 5. other standard dart libraries (DOM bindings, ui libraries, |
| 15 * io libraries etc.) | 15 * io libraries etc.) |
| 16 * | 16 * |
| 17 * This script is normally invoked by test.py. (test.py finds the dart vm | 17 * This script is normally invoked by test.py. (test.py finds the dart vm |
| 18 * and passses along all command line arguments to this script.) | 18 * and passses along all command line arguments to this script.) |
| 19 * | 19 * |
| 20 * The command line args of this script are documented in | 20 * The command line args of this script are documented in |
| 21 * "tools/testing/test_options.dart". | 21 * "tools/testing/test_options.dart". |
| 22 * | 22 * |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 library test; | 25 library test; |
| 26 | 26 |
| 27 import "dart:async"; | 27 import "dart:async"; |
| 28 import "dart:io"; | 28 import "dart:io"; |
| 29 import "dart:math" as math; | |
| 30 import "testing/dart/browser_controller.dart"; | 29 import "testing/dart/browser_controller.dart"; |
| 31 import "testing/dart/http_server.dart"; | 30 import "testing/dart/http_server.dart"; |
| 32 import "testing/dart/record_and_replay.dart"; | |
| 33 import "testing/dart/test_options.dart"; | 31 import "testing/dart/test_options.dart"; |
| 34 import "testing/dart/test_progress.dart"; | 32 import "testing/dart/test_progress.dart"; |
| 35 import "testing/dart/test_runner.dart"; | 33 import "testing/dart/test_runner.dart"; |
| 36 import "testing/dart/test_suite.dart"; | 34 import "testing/dart/test_suite.dart"; |
| 37 import "testing/dart/utils.dart"; | 35 import "testing/dart/utils.dart"; |
| 38 | 36 |
| 39 import "../runtime/tests/vm/test_config.dart"; | 37 import "../runtime/tests/vm/test_config.dart"; |
| 40 import "../tests/co19/test_config.dart"; | 38 import "../tests/co19/test_config.dart"; |
| 41 import "../tests/lib/analyzer/test_config.dart"; | |
| 42 | 39 |
| 43 /** | 40 /** |
| 44 * The directories that contain test suites which follow the conventions | 41 * The directories that contain test suites which follow the conventions |
| 45 * required by [StandardTestSuite]'s forDirectory constructor. | 42 * required by [StandardTestSuite]'s forDirectory constructor. |
| 46 * New test suites should follow this convention because it makes it much | 43 * New test suites should follow this convention because it makes it much |
| 47 * simpler to add them to test.dart. Existing test suites should be | 44 * simpler to add them to test.dart. Existing test suites should be |
| 48 * moved to here, if possible. | 45 * moved to here, if possible. |
| 49 */ | 46 */ |
| 50 final TEST_SUITE_DIRECTORIES = [ | 47 final TEST_SUITE_DIRECTORIES = [ |
| 51 new Path('pkg'), | 48 new Path('pkg'), |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 void main() { | 281 void main() { |
| 285 deleteTemporaryDartDirectories().then((_) { | 282 deleteTemporaryDartDirectories().then((_) { |
| 286 var optionsParser = new TestOptionsParser(); | 283 var optionsParser = new TestOptionsParser(); |
| 287 var configurations = optionsParser.parse(new Options().arguments); | 284 var configurations = optionsParser.parse(new Options().arguments); |
| 288 if (configurations != null && configurations.length > 0) { | 285 if (configurations != null && configurations.length > 0) { |
| 289 testConfigurations(configurations); | 286 testConfigurations(configurations); |
| 290 } | 287 } |
| 291 }); | 288 }); |
| 292 } | 289 } |
| 293 | 290 |
| OLD | NEW |