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 passes 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/dart/test_options.dart"; they are printed | 21 * "tools/testing/dart/test_options.dart"; they are printed |
22 * when this script is run with "--help". | 22 * when this script is run with "--help". |
23 * | 23 * |
24 * The default test directory layout is documented in | 24 * The default test directory layout is documented in |
25 * "tools/testing/dart/test_suite.dart", above | 25 * "tools/testing/dart/test_suite.dart", above |
26 * "factory StandardTestSuite.forDirectory". | 26 * "factory StandardTestSuite.forDirectory". |
27 */ | 27 */ |
28 | 28 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 var optionsParser = new TestOptionsParser(); | 62 var optionsParser = new TestOptionsParser(); |
63 var configurations = optionsParser.parse(arguments); | 63 var configurations = optionsParser.parse(arguments); |
64 if (configurations != null && configurations.length > 0) { | 64 if (configurations != null && configurations.length > 0) { |
65 // All the testing is carried out asynchronously in tasks created by this | 65 // All the testing is carried out asynchronously in tasks created by this |
66 // call. | 66 // call. |
67 // TODO(26372): Ensure that all tasks complete before the returned future. | 67 // TODO(26372): Ensure that all tasks complete before the returned future. |
68 testConfigurations(configurations); | 68 testConfigurations(configurations); |
69 } | 69 } |
70 }); | 70 }); |
71 } | 71 } |
OLD | NEW |