| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 166 |
| 167 void allTestsFinished() { | 167 void allTestsFinished() { |
| 168 for (var conf in configurations) { | 168 for (var conf in configurations) { |
| 169 if (conf.containsKey('_servers_')) { | 169 if (conf.containsKey('_servers_')) { |
| 170 conf['_servers_'].stopServers(); | 170 conf['_servers_'].stopServers(); |
| 171 } | 171 } |
| 172 } | 172 } |
| 173 DebugLogger.close(); | 173 DebugLogger.close(); |
| 174 } | 174 } |
| 175 | 175 |
| 176 var eventListener = []; |
| 177 if (progressIndicator != 'silent') { |
| 178 var printFailures = true; |
| 179 var formatter = new Formatter(); |
| 180 if (progressIndicator == 'color') { |
| 181 progressIndicator = 'compact'; |
| 182 formatter = new ColorFormatter(); |
| 183 } |
| 184 if (progressIndicator == 'diff') { |
| 185 progressIndicator = 'compact'; |
| 186 formatter = new ColorFormatter(); |
| 187 printFailures = false; |
| 188 eventListener.add(new StatusFileUpdatePrinter()); |
| 189 } |
| 190 eventListener.add(new SkippedCompilationsPrinter()); |
| 191 eventListener.add(new SummaryPrinter()); |
| 192 eventListener.add(new FlakyLogWriter()); |
| 193 if (printFailures) { |
| 194 eventListener.add(new TestFailurePrinter(formatter)); |
| 195 } |
| 196 eventListener.add(new LeftOverTempDirPrinter()); |
| 197 if (printTiming) { |
| 198 eventListener.add(new TimingPrinter(startTime)); |
| 199 } |
| 200 eventListener.add(new ProgressIndicator.fromName(progressIndicator, |
| 201 startTime, |
| 202 formatter)); |
| 203 } |
| 204 eventListener.add(new ExitCodeSetter()); |
| 205 |
| 176 // Start process queue. | 206 // Start process queue. |
| 177 new ProcessQueue(maxProcesses, | 207 new ProcessQueue(maxProcesses, |
| 178 maxBrowserProcesses, | 208 maxBrowserProcesses, |
| 179 progressIndicator, | |
| 180 startTime, | 209 startTime, |
| 181 printTiming, | |
| 182 testSuites, | 210 testSuites, |
| 211 eventListener, |
| 183 allTestsFinished, | 212 allTestsFinished, |
| 184 verbose, | 213 verbose, |
| 185 listTests); | 214 listTests); |
| 186 } | 215 } |
| OLD | NEW |