| 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 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1194 while (stream.readLine() != null) { | 1194 while (stream.readLine() != null) { |
| 1195 // Do nothing. | 1195 // Do nothing. |
| 1196 } | 1196 } |
| 1197 return; | 1197 return; |
| 1198 } | 1198 } |
| 1199 // Otherwise, process output and call _reportResult() when done. | 1199 // Otherwise, process output and call _reportResult() when done. |
| 1200 var line = stream.readLine(); | 1200 var line = stream.readLine(); |
| 1201 while (line != null) { | 1201 while (line != null) { |
| 1202 if (line.startsWith('>>> TEST')) { | 1202 if (line.startsWith('>>> TEST')) { |
| 1203 _status = line; | 1203 _status = line; |
| 1204 } else if (line.startsWith('>>> BATCH START')) { | 1204 } else if (line.startsWith('>>> BATCH')) { |
| 1205 // ignore | 1205 // ignore |
| 1206 } else if (line.startsWith('>>> ')) { | 1206 } else if (line.startsWith('>>> ')) { |
| 1207 throw new Exception('Unexpected command from dartc batch runner.'); | 1207 throw new Exception('Unexpected command from dartc batch runner.'); |
| 1208 } else { | 1208 } else { |
| 1209 buffer.addAll(encodeUtf8(line)); | 1209 buffer.addAll(encodeUtf8(line)); |
| 1210 buffer.addAll("\n".charCodes); | 1210 buffer.addAll("\n".charCodes); |
| 1211 } | 1211 } |
| 1212 line = stream.readLine(); | 1212 line = stream.readLine(); |
| 1213 } | 1213 } |
| 1214 if (_status != null) { | 1214 if (_status != null) { |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1746 completer.complete(testCase); | 1746 completer.complete(testCase); |
| 1747 } | 1747 } |
| 1748 }); | 1748 }); |
| 1749 } | 1749 } |
| 1750 runCommand(); | 1750 runCommand(); |
| 1751 | 1751 |
| 1752 return completer.future; | 1752 return completer.future; |
| 1753 } | 1753 } |
| 1754 } | 1754 } |
| 1755 | 1755 |
| OLD | NEW |