| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 // [firstConf] is needed here, since the ProcessQueue needs to know the | 291 // [firstConf] is needed here, since the ProcessQueue needs to know the |
| 292 // settings of 'noBatch' and 'local_ip' | 292 // settings of 'noBatch' and 'local_ip' |
| 293 new ProcessQueue(firstConf, | 293 new ProcessQueue(firstConf, |
| 294 maxProcesses, | 294 maxProcesses, |
| 295 maxBrowserProcesses, | 295 maxBrowserProcesses, |
| 296 startTime, | 296 startTime, |
| 297 testSuites, | 297 testSuites, |
| 298 eventListener, | 298 eventListener, |
| 299 allTestsFinished, | 299 allTestsFinished, |
| 300 verbose, | 300 verbose, |
| 301 listTests, | |
| 302 recordingPath, | 301 recordingPath, |
| 303 recordingOutputPath); | 302 recordingOutputPath); |
| 304 } | 303 } |
| 305 | 304 |
| 306 // Start all the HTTP servers required before starting the process queue. | 305 // Start all the HTTP servers required before starting the process queue. |
| 307 if (serverFutures.isEmpty) { | 306 if (serverFutures.isEmpty) { |
| 308 startProcessQueue(); | 307 startProcessQueue(); |
| 309 } else { | 308 } else { |
| 310 Future.wait(serverFutures).then((_) => startProcessQueue()); | 309 Future.wait(serverFutures).then((_) => startProcessQueue()); |
| 311 } | 310 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 334 TestUtils.setDartDirUri(Platform.script.resolve('..')); | 333 TestUtils.setDartDirUri(Platform.script.resolve('..')); |
| 335 deleteTemporaryDartDirectories().then((_) { | 334 deleteTemporaryDartDirectories().then((_) { |
| 336 var optionsParser = new TestOptionsParser(); | 335 var optionsParser = new TestOptionsParser(); |
| 337 var configurations = optionsParser.parse(arguments); | 336 var configurations = optionsParser.parse(arguments); |
| 338 if (configurations != null && configurations.length > 0) { | 337 if (configurations != null && configurations.length > 0) { |
| 339 testConfigurations(configurations); | 338 testConfigurations(configurations); |
| 340 } | 339 } |
| 341 }); | 340 }); |
| 342 } | 341 } |
| 343 | 342 |
| OLD | NEW |