| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 eventListener.add(new LeftOverTempDirPrinter()); | 256 eventListener.add(new LeftOverTempDirPrinter()); |
| 257 } | 257 } |
| 258 if (firstConf['write_test_outcome_log']) { | 258 if (firstConf['write_test_outcome_log']) { |
| 259 eventListener.add(new TestOutcomeLogWriter()); | 259 eventListener.add(new TestOutcomeLogWriter()); |
| 260 } | 260 } |
| 261 if (firstConf['copy_coredumps']) { | 261 if (firstConf['copy_coredumps']) { |
| 262 eventListener.add(new UnexpectedCrashDumpArchiver()); | 262 eventListener.add(new UnexpectedCrashDumpArchiver()); |
| 263 } | 263 } |
| 264 | 264 |
| 265 eventListener.add(new ExitCodeSetter()); | 265 eventListener.add(new ExitCodeSetter()); |
| 266 eventListener.add(new DeleteTestCaseOutput()); |
| 266 | 267 |
| 267 void startProcessQueue() { | 268 void startProcessQueue() { |
| 268 // [firstConf] is needed here, since the ProcessQueue needs to know the | 269 // [firstConf] is needed here, since the ProcessQueue needs to know the |
| 269 // settings of 'noBatch' and 'local_ip' | 270 // settings of 'noBatch' and 'local_ip' |
| 270 new ProcessQueue(firstConf, | 271 new ProcessQueue(firstConf, |
| 271 maxProcesses, | 272 maxProcesses, |
| 272 maxBrowserProcesses, | 273 maxBrowserProcesses, |
| 273 startTime, | 274 startTime, |
| 274 testSuites, | 275 testSuites, |
| 275 eventListener, | 276 eventListener, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 void main(List<String> arguments) { | 310 void main(List<String> arguments) { |
| 310 deleteTemporaryDartDirectories().then((_) { | 311 deleteTemporaryDartDirectories().then((_) { |
| 311 var optionsParser = new TestOptionsParser(); | 312 var optionsParser = new TestOptionsParser(); |
| 312 var configurations = optionsParser.parse(arguments); | 313 var configurations = optionsParser.parse(arguments); |
| 313 if (configurations != null && configurations.length > 0) { | 314 if (configurations != null && configurations.length > 0) { |
| 314 testConfigurations(configurations); | 315 testConfigurations(configurations); |
| 315 } | 316 } |
| 316 }); | 317 }); |
| 317 } | 318 } |
| 318 | 319 |
| OLD | NEW |