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) 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 #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 // This file is identical to test.dart with suites in frog and utils removed. | 11 // This file is identical to test.dart with suites in frog and utils removed. |
12 #import("../tests/co19/test_config.dart"); | 12 #import("../tests/co19/test_config.dart"); |
13 #import("../tests/corelib/test_config.dart"); | 13 #import("../tests/corelib/test_config.dart"); |
14 #import("../tests/isolate/test_config.dart"); | 14 #import("../tests/isolate/test_config.dart"); |
15 #import("../tests/language/test_config.dart"); | 15 #import("../tests/language/test_config.dart"); |
16 #import("../tests/standalone/test_config.dart"); | 16 #import("../tests/standalone/test_config.dart"); |
17 #import("../tests/stub-generator/test_config.dart"); | 17 #import("../tests/stub-generator/test_config.dart"); |
| 18 #import("../tests/utils/test_config.dart"); |
18 #import("../runtime/tests/vm/test_config.dart"); | 19 #import("../runtime/tests/vm/test_config.dart"); |
19 #import("../samples/tests/samples/test_config.dart"); | 20 #import("../samples/tests/samples/test_config.dart"); |
20 #import("../client/tests/dartc/test_config.dart"); | 21 #import("../client/tests/dartc/test_config.dart"); |
21 #import("../compiler/tests/dartc/test_config.dart"); | 22 #import("../compiler/tests/dartc/test_config.dart"); |
22 #import("../client/tests/client/test_config.dart"); | 23 #import("../client/tests/client/test_config.dart"); |
23 | 24 |
24 main() { | 25 main() { |
25 var startTime = new Date.now(); | 26 var startTime = new Date.now(); |
26 var optionsParser = new TestOptionsParser(); | 27 var optionsParser = new TestOptionsParser(); |
27 List<Map> configurations = optionsParser.parse(new Options().arguments); | 28 List<Map> configurations = optionsParser.parse(new Options().arguments); |
(...skipping 30 matching lines...) Expand all Loading... |
58 } | 59 } |
59 if (selectors.containsKey('language')) { | 60 if (selectors.containsKey('language')) { |
60 queue.addTestSuite(new LanguageTestSuite(conf)); | 61 queue.addTestSuite(new LanguageTestSuite(conf)); |
61 } | 62 } |
62 if (selectors.containsKey('isolate')) { | 63 if (selectors.containsKey('isolate')) { |
63 queue.addTestSuite(new IsolateTestSuite(conf)); | 64 queue.addTestSuite(new IsolateTestSuite(conf)); |
64 } | 65 } |
65 if (selectors.containsKey('stub-generator')) { | 66 if (selectors.containsKey('stub-generator')) { |
66 queue.addTestSuite(new StubGeneratorTestSuite(conf)); | 67 queue.addTestSuite(new StubGeneratorTestSuite(conf)); |
67 } | 68 } |
| 69 if (selectors.containsKey('utils')) { |
| 70 queue.addTestSuite(new UtilsTestSuite(conf)); |
| 71 } |
68 if (conf['component'] == 'dartc' && selectors.containsKey('dartc')) { | 72 if (conf['component'] == 'dartc' && selectors.containsKey('dartc')) { |
69 queue.addTestSuite(new ClientDartcTestSuite(conf)); | 73 queue.addTestSuite(new ClientDartcTestSuite(conf)); |
70 } | 74 } |
71 if (conf['component'] == 'dartc' && selectors.containsKey('dartc')) { | 75 if (conf['component'] == 'dartc' && selectors.containsKey('dartc')) { |
72 queue.addTestSuite(new JUnitDartcTestSuite(conf)); | 76 queue.addTestSuite(new JUnitDartcTestSuite(conf)); |
73 } | 77 } |
74 if (selectors.containsKey('client')) { | 78 if (selectors.containsKey('client')) { |
75 queue.addTestSuite(new ClientTestSuite(conf)); | 79 queue.addTestSuite(new ClientTestSuite(conf)); |
76 } | 80 } |
77 | 81 |
78 return true; | 82 return true; |
79 } | 83 } |
80 | 84 |
81 // Start process queue. | 85 // Start process queue. |
82 var queue = new ProcessQueue(maxProcesses, | 86 var queue = new ProcessQueue(maxProcesses, |
83 progressIndicator, | 87 progressIndicator, |
84 startTime, | 88 startTime, |
85 printTiming, | 89 printTiming, |
86 enqueueConfiguration, | 90 enqueueConfiguration, |
87 verbose, | 91 verbose, |
88 listTests, | 92 listTests, |
89 keepGeneratedTests); | 93 keepGeneratedTests); |
90 } | 94 } |
OLD | NEW |