| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 serverList: TestingServerRunner.serverList)); | 156 serverList: TestingServerRunner.serverList)); |
| 157 } | 157 } |
| 158 } | 158 } |
| 159 } | 159 } |
| 160 | 160 |
| 161 void allTestsFinished() { | 161 void allTestsFinished() { |
| 162 TestingServerRunner.terminateHttpServers(); | 162 TestingServerRunner.terminateHttpServers(); |
| 163 DebugLogger.close(); | 163 DebugLogger.close(); |
| 164 } | 164 } |
| 165 | 165 |
| 166 var eventListener = []; |
| 167 if (progressIndicator != 'silent') { |
| 168 eventListener.add(new SummaryPrinter()); |
| 169 if (printTiming) { |
| 170 eventListener.add(new TimingPrinter(startTime)); |
| 171 } |
| 172 eventListener.add(new ProgressIndicator.fromName(progressIndicator, |
| 173 startTime)); |
| 174 } |
| 175 eventListener.add(new ExitCodeSetter()); |
| 176 |
| 166 // Start process queue. | 177 // Start process queue. |
| 167 new ProcessQueue(maxProcesses, | 178 new ProcessQueue(maxProcesses, |
| 168 maxBrowserProcesses, | 179 maxBrowserProcesses, |
| 169 progressIndicator, | |
| 170 startTime, | 180 startTime, |
| 171 printTiming, | |
| 172 testSuites, | 181 testSuites, |
| 182 eventListener, |
| 173 allTestsFinished, | 183 allTestsFinished, |
| 174 verbose, | 184 verbose, |
| 175 listTests); | 185 listTests); |
| 176 } | 186 } |
| OLD | NEW |