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