| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 }); | 119 }); |
| 120 if (runningBrowserTests) { | 120 if (runningBrowserTests) { |
| 121 TestingServerRunner.startHttpServer('127.0.0.1'); | 121 TestingServerRunner.startHttpServer('127.0.0.1'); |
| 122 // We start two servers so that we can test cross-domain tests. | 122 // We start two servers so that we can test cross-domain tests. |
| 123 TestingServerRunner.startHttpServer('127.0.0.1', | 123 TestingServerRunner.startHttpServer('127.0.0.1', |
| 124 allowedPort: TestingServerRunner.serverList[0].port); | 124 allowedPort: TestingServerRunner.serverList[0].port); |
| 125 } | 125 } |
| 126 } | 126 } |
| 127 | 127 |
| 128 var testSuites = new List<TestSuite>(); | 128 var testSuites = new List<TestSuite>(); |
| 129 var maxBrowserProcesses = maxProcesses; |
| 129 for (var conf in configurations) { | 130 for (var conf in configurations) { |
| 131 // We can't run multiple IE processes in parallel. |
| 132 if (conf['runtime'].startsWith('ie')) { |
| 133 maxBrowserProcesses = 1; |
| 134 } |
| 130 TestingServerRunner.setPackageRootDir(conf); | 135 TestingServerRunner.setPackageRootDir(conf); |
| 131 for (String key in selectors.keys) { | 136 for (String key in selectors.keys) { |
| 132 if (key == 'co19') { | 137 if (key == 'co19') { |
| 133 testSuites.add(new Co19TestSuite(conf)); | 138 testSuites.add(new Co19TestSuite(conf)); |
| 134 } else if (conf['runtime'] == 'vm' && key == 'vm') { | 139 } else if (conf['runtime'] == 'vm' && key == 'vm') { |
| 135 // vm tests contain both cc tests (added here) and dart tests (added in | 140 // vm tests contain both cc tests (added here) and dart tests (added in |
| 136 // [TEST_SUITE_DIRECTORIES]). | 141 // [TEST_SUITE_DIRECTORIES]). |
| 137 testSuites.add(new VMTestSuite(conf)); | 142 testSuites.add(new VMTestSuite(conf)); |
| 138 } else if (conf['compiler'] == 'dartc' && key == 'dartc') { | 143 } else if (conf['compiler'] == 'dartc' && key == 'dartc') { |
| 139 testSuites.add(new SamplesDartcTestSuite(conf)); | 144 testSuites.add(new SamplesDartcTestSuite(conf)); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 151 } | 156 } |
| 152 } | 157 } |
| 153 | 158 |
| 154 void allTestsFinished() { | 159 void allTestsFinished() { |
| 155 TestingServerRunner.terminateHttpServers(); | 160 TestingServerRunner.terminateHttpServers(); |
| 156 DebugLogger.close(); | 161 DebugLogger.close(); |
| 157 } | 162 } |
| 158 | 163 |
| 159 // Start process queue. | 164 // Start process queue. |
| 160 new ProcessQueue(maxProcesses, | 165 new ProcessQueue(maxProcesses, |
| 166 maxBrowserProcesses, |
| 161 progressIndicator, | 167 progressIndicator, |
| 162 startTime, | 168 startTime, |
| 163 printTiming, | 169 printTiming, |
| 164 testSuites, | 170 testSuites, |
| 165 allTestsFinished, | 171 allTestsFinished, |
| 166 verbose, | 172 verbose, |
| 167 listTests); | 173 listTests); |
| 168 } | 174 } |
| OLD | NEW |