| 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 /** | 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 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #import("../compiler/tests/dartc/test_config.dart"); | 33 #import("../compiler/tests/dartc/test_config.dart"); |
| 34 #import("../frog/tests/await/test_config.dart"); | 34 #import("../frog/tests/await/test_config.dart"); |
| 35 #import("../frog/tests/frog/test_config.dart"); | 35 #import("../frog/tests/frog/test_config.dart"); |
| 36 #import("../frog/tests/leg/test_config.dart"); | 36 #import("../frog/tests/leg/test_config.dart"); |
| 37 #import("../frog/tests/leg_only/test_config.dart"); | 37 #import("../frog/tests/leg_only/test_config.dart"); |
| 38 #import("../frog/tests/native/test_config.dart"); | 38 #import("../frog/tests/native/test_config.dart"); |
| 39 #import("../runtime/tests/vm/test_config.dart"); | 39 #import("../runtime/tests/vm/test_config.dart"); |
| 40 #import("../samples/tests/samples/test_config.dart"); | 40 #import("../samples/tests/samples/test_config.dart"); |
| 41 #import("../tests/co19/test_config.dart"); | 41 #import("../tests/co19/test_config.dart"); |
| 42 #import("../tests/corelib/test_config.dart"); | 42 #import("../tests/corelib/test_config.dart"); |
| 43 #import("../tests/isolate/test_config.dart"); | |
| 44 #import("../tests/language/test_config.dart"); | 43 #import("../tests/language/test_config.dart"); |
| 45 #import("../tests/lib/test_config.dart"); | 44 #import("../tests/lib/test_config.dart"); |
| 46 #import("../tests/standalone/test_config.dart"); | 45 #import("../tests/standalone/test_config.dart"); |
| 47 #import("../tests/utils/test_config.dart"); | 46 #import("../tests/utils/test_config.dart"); |
| 48 | 47 |
| 49 /** | 48 /** |
| 50 * The directories that contain test suites which follow the conventions | 49 * The directories that contain test suites which follow the conventions |
| 51 * required by [StandardTestSuite]'s forDirectory constructor. | 50 * required by [StandardTestSuite]'s forDirectory constructor. |
| 52 * New test suites should follow this convention because it makes it much | 51 * New test suites should follow this convention because it makes it much |
| 53 * simpler to add them to test.dart. Existing test suites should be | 52 * simpler to add them to test.dart. Existing test suites should be |
| 54 * moved to here, if possible. | 53 * moved to here, if possible. |
| 55 */ | 54 */ |
| 56 final TEST_SUITE_DIRECTORIES = const [ | 55 final TEST_SUITE_DIRECTORIES = const [ |
| 57 'tests/benchmark_smoke', | 56 'tests/benchmark_smoke', |
| 58 'tests/dom', | 57 'tests/dom', |
| 59 'tests/html', | 58 'tests/html', |
| 59 'tests/isolate', |
| 60 'tests/json', | 60 'tests/json', |
| 61 'utils/tests/css', | 61 'utils/tests/css', |
| 62 'utils/tests/peg', | 62 'utils/tests/peg', |
| 63 'utils/tests/pub', | 63 'utils/tests/pub', |
| 64 ]; | 64 ]; |
| 65 | 65 |
| 66 main() { | 66 main() { |
| 67 var startTime = new Date.now(); | 67 var startTime = new Date.now(); |
| 68 var optionsParser = new TestOptionsParser(); | 68 var optionsParser = new TestOptionsParser(); |
| 69 List<Map> configurations = optionsParser.parse(new Options().arguments); | 69 List<Map> configurations = optionsParser.parse(new Options().arguments); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 } else if (key == 'standalone') { | 106 } else if (key == 'standalone') { |
| 107 queue.addTestSuite(new StandaloneTestSuite(conf)); | 107 queue.addTestSuite(new StandaloneTestSuite(conf)); |
| 108 } else if (key == 'corelib') { | 108 } else if (key == 'corelib') { |
| 109 queue.addTestSuite(new CorelibTestSuite(conf)); | 109 queue.addTestSuite(new CorelibTestSuite(conf)); |
| 110 } else if (key == 'co19') { | 110 } else if (key == 'co19') { |
| 111 queue.addTestSuite(new Co19TestSuite(conf)); | 111 queue.addTestSuite(new Co19TestSuite(conf)); |
| 112 } else if (key == 'language') { | 112 } else if (key == 'language') { |
| 113 queue.addTestSuite(new LanguageTestSuite(conf)); | 113 queue.addTestSuite(new LanguageTestSuite(conf)); |
| 114 } else if (key == 'lib') { | 114 } else if (key == 'lib') { |
| 115 queue.addTestSuite(new LibTestSuite(conf)); | 115 queue.addTestSuite(new LibTestSuite(conf)); |
| 116 } else if (key == 'isolate') { | |
| 117 queue.addTestSuite(new IsolateTestSuite(conf)); | |
| 118 } else if (key == 'utils') { | 116 } else if (key == 'utils') { |
| 119 queue.addTestSuite(new UtilsTestSuite(conf)); | 117 queue.addTestSuite(new UtilsTestSuite(conf)); |
| 120 } else if (conf['runtime'] == 'vm' && key == 'vm') { | 118 } else if (conf['runtime'] == 'vm' && key == 'vm') { |
| 121 queue.addTestSuite(new VMTestSuite(conf)); | 119 queue.addTestSuite(new VMTestSuite(conf)); |
| 122 queue.addTestSuite(new VMDartTestSuite(conf)); | 120 queue.addTestSuite(new VMDartTestSuite(conf)); |
| 123 } else if (key == 'frog') { | 121 } else if (key == 'frog') { |
| 124 queue.addTestSuite(new FrogTestSuite(conf)); | 122 queue.addTestSuite(new FrogTestSuite(conf)); |
| 125 } else if (key == 'leg') { | 123 } else if (key == 'leg') { |
| 126 queue.addTestSuite(new LegTestSuite(conf)); | 124 queue.addTestSuite(new LegTestSuite(conf)); |
| 127 } else if (key == 'leg_only') { | 125 } else if (key == 'leg_only') { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 151 // Start process queue. | 149 // Start process queue. |
| 152 var queue = new ProcessQueue(maxProcesses, | 150 var queue = new ProcessQueue(maxProcesses, |
| 153 progressIndicator, | 151 progressIndicator, |
| 154 startTime, | 152 startTime, |
| 155 printTiming, | 153 printTiming, |
| 156 enqueueConfiguration, | 154 enqueueConfiguration, |
| 157 verbose, | 155 verbose, |
| 158 listTests, | 156 listTests, |
| 159 keepGeneratedTests); | 157 keepGeneratedTests); |
| 160 } | 158 } |
| OLD | NEW |