| 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/dart/test_options.dart"; they are printed |
| 22 * when this script is run with "--help". |
| 22 * | 23 * |
| 24 * The default test directory layout is documented in |
| 25 * "tools/testing/dart/test_suite.dart", above |
| 26 * "factory StandardTestSuite.forDirectory". |
| 23 */ | 27 */ |
| 24 | 28 |
| 25 library test; | 29 library test; |
| 26 | 30 |
| 27 import "dart:async"; | 31 import "dart:async"; |
| 28 import "dart:io"; | 32 import "dart:io"; |
| 29 import "dart:math" as math; | 33 import "dart:math" as math; |
| 30 import "testing/dart/browser_controller.dart"; | 34 import "testing/dart/browser_controller.dart"; |
| 31 import "testing/dart/http_server.dart"; | 35 import "testing/dart/http_server.dart"; |
| 32 import "testing/dart/test_options.dart"; | 36 import "testing/dart/test_options.dart"; |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 TestUtils.setDartDirUri(Platform.script.resolve('..')); | 315 TestUtils.setDartDirUri(Platform.script.resolve('..')); |
| 312 deleteTemporaryDartDirectories().then((_) { | 316 deleteTemporaryDartDirectories().then((_) { |
| 313 var optionsParser = new TestOptionsParser(); | 317 var optionsParser = new TestOptionsParser(); |
| 314 var configurations = optionsParser.parse(arguments); | 318 var configurations = optionsParser.parse(arguments); |
| 315 if (configurations != null && configurations.length > 0) { | 319 if (configurations != null && configurations.length > 0) { |
| 316 testConfigurations(configurations); | 320 testConfigurations(configurations); |
| 317 } | 321 } |
| 318 }); | 322 }); |
| 319 } | 323 } |
| 320 | 324 |
| OLD | NEW |