| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Classes and methods for executing tests. | 6 * Classes and methods for executing tests. |
| 7 * | 7 * |
| 8 * This module includes: | 8 * This module includes: |
| 9 * - Managing parallel execution of tests, including timeout checks. | 9 * - Managing parallel execution of tests, including timeout checks. |
| 10 * - Evaluating the output of each test as pass/fail/crash/timeout. | 10 * - Evaluating the output of each test as pass/fail/crash/timeout. |
| (...skipping 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2408 print(" Finishing: $_finishing"); | 2408 print(" Finishing: $_finishing"); |
| 2409 print(" Queue (length = ${_runQueue.length}):"); | 2409 print(" Queue (length = ${_runQueue.length}):"); |
| 2410 for (var command in _runQueue) { | 2410 for (var command in _runQueue) { |
| 2411 print(" $command"); | 2411 print(" $command"); |
| 2412 } | 2412 } |
| 2413 } | 2413 } |
| 2414 } | 2414 } |
| 2415 | 2415 |
| 2416 /* | 2416 /* |
| 2417 * [CommandExecutor] is responsible for executing commands. It will make sure | 2417 * [CommandExecutor] is responsible for executing commands. It will make sure |
| 2418 * that the the following two constraints are satisfied | 2418 * that the following two constraints are satisfied |
| 2419 * - [:numberOfProcessesUsed <= maxProcesses:] | 2419 * - [:numberOfProcessesUsed <= maxProcesses:] |
| 2420 * - [:numberOfBrowserProcessesUsed <= maxBrowserProcesses:] | 2420 * - [:numberOfBrowserProcessesUsed <= maxBrowserProcesses:] |
| 2421 * | 2421 * |
| 2422 * It provides a [runCommand] method which will complete with a | 2422 * It provides a [runCommand] method which will complete with a |
| 2423 * [CommandOutput] object. | 2423 * [CommandOutput] object. |
| 2424 * | 2424 * |
| 2425 * It provides a [cleanup] method to free all the allocated resources. | 2425 * It provides a [cleanup] method to free all the allocated resources. |
| 2426 */ | 2426 */ |
| 2427 abstract class CommandExecutor { | 2427 abstract class CommandExecutor { |
| 2428 Future cleanup(); | 2428 Future cleanup(); |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3021 } | 3021 } |
| 3022 } | 3022 } |
| 3023 | 3023 |
| 3024 void eventAllTestsDone() { | 3024 void eventAllTestsDone() { |
| 3025 for (var listener in _eventListener) { | 3025 for (var listener in _eventListener) { |
| 3026 listener.allDone(); | 3026 listener.allDone(); |
| 3027 } | 3027 } |
| 3028 _allDone(); | 3028 _allDone(); |
| 3029 } | 3029 } |
| 3030 } | 3030 } |
| OLD | NEW |