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 // TODO(ager): Get rid of this version of test.dart when we don't have | 6 // TODO(ager): Get rid of this version of test.dart when we don't have |
7 // to worry about the special runtime checkout anymore. | 7 // to worry about the special runtime checkout anymore. |
8 // This file is identical to test.dart with test suites in the | 8 // This file is identical to test.dart with test suites in the |
9 // directories samples, client, compiler, and utils removed. | 9 // directories samples, client, compiler, and utils removed. |
10 | 10 |
11 #library("test"); | 11 #library("test"); |
12 | 12 |
13 #import("dart:io"); | 13 #import("dart:io"); |
14 #import("testing/dart/test_runner.dart"); | 14 #import("testing/dart/test_runner.dart"); |
15 #import("testing/dart/test_options.dart"); | 15 #import("testing/dart/test_options.dart"); |
16 #import("testing/dart/test_suite.dart"); | 16 #import("testing/dart/test_suite.dart"); |
17 | 17 |
18 #import("../tests/co19/test_config.dart"); | 18 #import("../tests/co19/test_config.dart"); |
19 #import("../runtime/tests/vm/test_config.dart"); | 19 #import("../runtime/tests/vm/test_config.dart"); |
20 | 20 |
21 /** | 21 /** |
22 * The directories that contain test suites which follow the conventions | 22 * The directories that contain test suites which follow the conventions |
23 * required by [StandardTestSuite]'s forDirectory constructor. | 23 * required by [StandardTestSuite]'s forDirectory constructor. |
24 * New test suites should follow this convention because it makes it much | 24 * New test suites should follow this convention because it makes it much |
25 * simpler to add them to test.dart. Existing test suites should be | 25 * simpler to add them to test.dart. Existing test suites should be |
26 * moved to here, if possible. | 26 * moved to here, if possible. |
27 */ | 27 */ |
28 final TEST_SUITE_DIRECTORIES = const [ | 28 final TEST_SUITE_DIRECTORIES = [ |
29 const Path('runtime/tests/vm'), | 29 new Path('runtime/tests/vm'), |
30 const Path('tests/corelib'), | 30 new Path('tests/corelib'), |
31 const Path('tests/isolate'), | 31 new Path('tests/isolate'), |
32 const Path('tests/language'), | 32 new Path('tests/language'), |
33 const Path('tests/lib'), | 33 new Path('tests/lib'), |
34 const Path('tests/standalone'), | 34 new Path('tests/standalone'), |
35 const Path('tests/utils'), | 35 new Path('tests/utils'), |
36 ]; | 36 ]; |
37 | 37 |
38 main() { | 38 main() { |
39 var startTime = new Date.now(); | 39 var startTime = new Date.now(); |
40 var optionsParser = new TestOptionsParser(); | 40 var optionsParser = new TestOptionsParser(); |
41 List<Map> configurations = optionsParser.parse(new Options().arguments); | 41 List<Map> configurations = optionsParser.parse(new Options().arguments); |
42 if (configurations == null) return; | 42 if (configurations == null) return; |
43 | 43 |
44 // Extract global options from first configuration. | 44 // Extract global options from first configuration. |
45 var firstConf = configurations[0]; | 45 var firstConf = configurations[0]; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 // Start process queue. | 95 // Start process queue. |
96 var queue = new ProcessQueue(maxProcesses, | 96 var queue = new ProcessQueue(maxProcesses, |
97 progressIndicator, | 97 progressIndicator, |
98 startTime, | 98 startTime, |
99 printTiming, | 99 printTiming, |
100 enqueueConfiguration, | 100 enqueueConfiguration, |
101 verbose, | 101 verbose, |
102 listTests); | 102 listTests); |
103 } | 103 } |
OLD | NEW |