OLD | NEW |
1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
2 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2011, 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 #library("test"); | 6 #library("test"); |
7 | 7 |
8 #import("testing/dart/test_runner.dart"); | 8 #import("testing/dart/test_runner.dart"); |
9 #import("testing/dart/test_options.dart"); | 9 #import("testing/dart/test_options.dart"); |
10 | 10 |
11 #import("../tests/co19/test_config.dart"); | 11 #import("../tests/co19/test_config.dart"); |
12 #import("../tests/corelib/test_config.dart"); | 12 #import("../tests/corelib/test_config.dart"); |
13 #import("../tests/isolate/test_config.dart"); | 13 #import("../tests/isolate/test_config.dart"); |
14 #import("../tests/language/test_config.dart"); | 14 #import("../tests/language/test_config.dart"); |
15 #import("../tests/standalone/test_config.dart"); | 15 #import("../tests/standalone/test_config.dart"); |
16 #import("../tests/stub-generator/test_config.dart"); | 16 #import("../tests/stub-generator/test_config.dart"); |
17 #import("../runtime/tests/vm/test_config.dart"); | 17 #import("../runtime/tests/vm/test_config.dart"); |
18 #import("../samples/tests/samples/test_config.dart"); | 18 #import("../samples/tests/samples/test_config.dart"); |
19 #import("../client/tests/dartc/test_config.dart"); | 19 #import("../client/tests/dartc/test_config.dart"); |
20 #import("../frog/tests/frog/test_config.dart"); | 20 #import("../frog/tests/frog/test_config.dart"); |
21 #import("../frog/tests/leg/test_config.dart"); | 21 #import("../frog/tests/leg/test_config.dart"); |
22 #import("../frog/tests/leg_only/test_config.dart"); | 22 #import("../frog/tests/leg_only/test_config.dart"); |
| 23 #import("../frog/tests/await/test_config.dart"); |
| 24 #import("../utils/tests/css/test_config.dart"); |
| 25 #import("../utils/tests/peg/test_config.dart"); |
23 | 26 |
24 main() { | 27 main() { |
25 var startTime = new Date.now(); | 28 var startTime = new Date.now(); |
26 var optionsParser = new TestOptionsParser(); | 29 var optionsParser = new TestOptionsParser(); |
27 List<Map> configurations = optionsParser.parse(new Options().arguments); | 30 List<Map> configurations = optionsParser.parse(new Options().arguments); |
28 if (configurations == null) return; | 31 if (configurations == null) return; |
29 | 32 |
30 // Extract global options from first configuration. | 33 // Extract global options from first configuration. |
31 var firstConf = configurations[0]; | 34 var firstConf = configurations[0]; |
32 Map<String, RegExp> selectors = firstConf['selectors']; | 35 Map<String, RegExp> selectors = firstConf['selectors']; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 } | 72 } |
70 if (selectors.containsKey('leg')) { | 73 if (selectors.containsKey('leg')) { |
71 queue.addTestSuite(new LegTestSuite(conf)); | 74 queue.addTestSuite(new LegTestSuite(conf)); |
72 } | 75 } |
73 if (selectors.containsKey('leg_only')) { | 76 if (selectors.containsKey('leg_only')) { |
74 queue.addTestSuite(new LegOnlyTestSuite(conf)); | 77 queue.addTestSuite(new LegOnlyTestSuite(conf)); |
75 } | 78 } |
76 if (selectors.containsKey('dartc')) { | 79 if (selectors.containsKey('dartc')) { |
77 queue.addTestSuite(new ClientDartcTestSuite(conf)); | 80 queue.addTestSuite(new ClientDartcTestSuite(conf)); |
78 } | 81 } |
| 82 if (selectors.containsKey('css')) { |
| 83 queue.addTestSuite(new CssTestSuite(conf)); |
| 84 } |
| 85 if (selectors.containsKey('peg')) { |
| 86 queue.addTestSuite(new PegTestSuite(conf)); |
| 87 } |
| 88 if (selectors.containsKey('await')) { |
| 89 queue.addTestSuite(new AwaitTestSuite(conf)); |
| 90 } |
79 | 91 |
80 return true; | 92 return true; |
81 } | 93 } |
82 | 94 |
83 // Start process queue. | 95 // Start process queue. |
84 var queue = new ProcessQueue(maxProcesses, | 96 var queue = new ProcessQueue(maxProcesses, |
85 progressIndicator, | 97 progressIndicator, |
86 startTime, | 98 startTime, |
87 enqueueConfiguration); | 99 enqueueConfiguration); |
88 } | 100 } |
OLD | NEW |