| 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 |
| 11 * 2. the dart2js compiler | 11 * 2. the dart2js compiler |
| 12 * 3. the dartc static analyzer | 12 * 3. the dartc 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:io"); | 27 import "dart:io"; |
| 28 #import("testing/dart/test_runner.dart"); | 28 import "testing/dart/test_runner.dart"; |
| 29 #import("testing/dart/test_options.dart"); | 29 import "testing/dart/test_options.dart"; |
| 30 #import("testing/dart/test_suite.dart"); | 30 import "testing/dart/test_suite.dart"; |
| 31 #import("testing/dart/test_progress.dart"); | 31 import "testing/dart/test_progress.dart"; |
| 32 #import("testing/dart/http_server.dart"); | 32 import "testing/dart/http_server.dart"; |
| 33 | 33 |
| 34 #import("../compiler/tests/dartc/test_config.dart"); | 34 import "../compiler/tests/dartc/test_config.dart"; |
| 35 #import("../runtime/tests/vm/test_config.dart"); | 35 import "../runtime/tests/vm/test_config.dart"; |
| 36 #import("../samples/tests/dartc/test_config.dart"); | 36 import "../samples/tests/dartc/test_config.dart"; |
| 37 #import("../tests/co19/test_config.dart"); | 37 import "../tests/co19/test_config.dart"; |
| 38 | 38 |
| 39 /** | 39 /** |
| 40 * The directories that contain test suites which follow the conventions | 40 * The directories that contain test suites which follow the conventions |
| 41 * required by [StandardTestSuite]'s forDirectory constructor. | 41 * required by [StandardTestSuite]'s forDirectory constructor. |
| 42 * New test suites should follow this convention because it makes it much | 42 * New test suites should follow this convention because it makes it much |
| 43 * simpler to add them to test.dart. Existing test suites should be | 43 * simpler to add them to test.dart. Existing test suites should be |
| 44 * moved to here, if possible. | 44 * moved to here, if possible. |
| 45 */ | 45 */ |
| 46 final TEST_SUITE_DIRECTORIES = [ | 46 final TEST_SUITE_DIRECTORIES = [ |
| 47 new Path('pkg'), | 47 new Path('pkg'), |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // Start process queue. | 145 // Start process queue. |
| 146 new ProcessQueue(maxProcesses, | 146 new ProcessQueue(maxProcesses, |
| 147 progressIndicator, | 147 progressIndicator, |
| 148 startTime, | 148 startTime, |
| 149 printTiming, | 149 printTiming, |
| 150 enqueueConfiguration, | 150 enqueueConfiguration, |
| 151 () => terminateHttpServer(), | 151 () => terminateHttpServer(), |
| 152 verbose, | 152 verbose, |
| 153 listTests); | 153 listTests); |
| 154 } | 154 } |
| OLD | NEW |