| OLD | NEW |
| 1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
| 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2013, 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 eventListener.add(new StatusFileUpdatePrinter()); | 231 eventListener.add(new StatusFileUpdatePrinter()); |
| 232 } | 232 } |
| 233 eventListener.add(new SummaryPrinter()); | 233 eventListener.add(new SummaryPrinter()); |
| 234 eventListener.add(new FlakyLogWriter()); | 234 eventListener.add(new FlakyLogWriter()); |
| 235 if (printFailures) { | 235 if (printFailures) { |
| 236 // The buildbot has it's own failure summary since it needs to wrap it | 236 // The buildbot has it's own failure summary since it needs to wrap it |
| 237 // into '@@@'-annotated sections. | 237 // into '@@@'-annotated sections. |
| 238 var printFailureSummary = progressIndicator != 'buildbot'; | 238 var printFailureSummary = progressIndicator != 'buildbot'; |
| 239 eventListener.add(new TestFailurePrinter(printFailureSummary, formatter)); | 239 eventListener.add(new TestFailurePrinter(printFailureSummary, formatter)); |
| 240 } | 240 } |
| 241 eventListener.add(new ProgressIndicator.fromName(progressIndicator, | 241 eventListener.add(progressIndicatorFromName(progressIndicator, |
| 242 startTime, | 242 startTime, |
| 243 formatter)); | 243 formatter)); |
| 244 if (printTiming) { | 244 if (printTiming) { |
| 245 eventListener.add(new TimingPrinter(startTime)); | 245 eventListener.add(new TimingPrinter(startTime)); |
| 246 } | 246 } |
| 247 eventListener.add(new SkippedCompilationsPrinter()); | 247 eventListener.add(new SkippedCompilationsPrinter()); |
| 248 eventListener.add(new LeftOverTempDirPrinter()); | 248 eventListener.add(new LeftOverTempDirPrinter()); |
| 249 } | 249 } |
| 250 eventListener.add(new ExitCodeSetter()); | 250 eventListener.add(new ExitCodeSetter()); |
| 251 | 251 |
| 252 void startProcessQueue() { | 252 void startProcessQueue() { |
| 253 // Start process queue. | 253 // Start process queue. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 getTempDir().list().listen((directoryEntry) { | 295 getTempDir().list().listen((directoryEntry) { |
| 296 if (directoryEntry is Directory) { | 296 if (directoryEntry is Directory) { |
| 297 if (regExp.hasMatch(new Path(directoryEntry.path).filename)) { | 297 if (regExp.hasMatch(new Path(directoryEntry.path).filename)) { |
| 298 try { | 298 try { |
| 299 directoryEntry.deleteSync(recursive: true); | 299 directoryEntry.deleteSync(recursive: true); |
| 300 } catch (error) { | 300 } catch (error) { |
| 301 DebugLogger.error(error); | 301 DebugLogger.error(error); |
| 302 } | 302 } |
| 303 } | 303 } |
| 304 } | 304 } |
| 305 }, onDone: completer.complete()); | 305 }, onDone: completer.complete); |
| 306 } else { | 306 } else { |
| 307 completer.complete(); | 307 completer.complete(); |
| 308 } | 308 } |
| 309 return completer.future; | 309 return completer.future; |
| 310 } | 310 } |
| 311 | 311 |
| 312 void main() { | 312 void main() { |
| 313 deleteTemporaryDartDirectories().then((_) { | 313 deleteTemporaryDartDirectories().then((_) { |
| 314 var optionsParser = new TestOptionsParser(); | 314 var optionsParser = new TestOptionsParser(); |
| 315 var configurations = optionsParser.parse(new Options().arguments); | 315 var configurations = optionsParser.parse(new Options().arguments); |
| 316 if (configurations != null && configurations.length > 0) { | 316 if (configurations != null && configurations.length > 0) { |
| 317 testConfigurations(configurations); | 317 testConfigurations(configurations); |
| 318 } | 318 } |
| 319 }); | 319 }); |
| 320 } | 320 } |
| 321 | 321 |
| OLD | NEW |