| 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 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1343 | 1343 |
| 1344 if (result.didTimeout) { | 1344 if (result.didTimeout) { |
| 1345 if (result.delayUntilTestStarted != null) { | 1345 if (result.delayUntilTestStarted != null) { |
| 1346 stderr = "This test timed out. The delay until the test actually " | 1346 stderr = "This test timed out. The delay until the test actually " |
| 1347 "started was: ${result.delayUntilTestStarted}."; | 1347 "started was: ${result.delayUntilTestStarted}."; |
| 1348 } else { | 1348 } else { |
| 1349 // TODO(ricow/kustermann) as soon as we record the state periodically, | 1349 // TODO(ricow/kustermann) as soon as we record the state periodically, |
| 1350 // we will have more information and can remove this warning. | 1350 // we will have more information and can remove this warning. |
| 1351 stderr = "This test has not notified test.py that it started running. " | 1351 stderr = "This test has not notified test.py that it started running. " |
| 1352 "This could be a bug in test.py! " | 1352 "This could be a bug in test.py! " |
| 1353 "Please contact ricow/kustermann"; | 1353 "Please contact ricow/whesse"; |
| 1354 } | 1354 } |
| 1355 } | 1355 } |
| 1356 | 1356 |
| 1357 if (parsedResult != null) { | 1357 if (parsedResult != null) { |
| 1358 stdout = "events:\n${indent(prettifyJson(parsedResult.events), 2)}\n\n"; | 1358 stdout = "events:\n${indent(prettifyJson(parsedResult.events), 2)}\n\n"; |
| 1359 } else { | 1359 } else { |
| 1360 stdout = "message:\n${indent(result.lastKnownMessage, 2)}\n\n"; | 1360 stdout = "message:\n${indent(result.lastKnownMessage, 2)}\n\n"; |
| 1361 } | 1361 } |
| 1362 | 1362 |
| 1363 stderr = | 1363 stderr = |
| (...skipping 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2821 void cancelDebugTimer() { | 2821 void cancelDebugTimer() { |
| 2822 if (_debugTimer != null) { | 2822 if (_debugTimer != null) { |
| 2823 _debugTimer.cancel(); | 2823 _debugTimer.cancel(); |
| 2824 } | 2824 } |
| 2825 } | 2825 } |
| 2826 | 2826 |
| 2827 void resetDebugTimer() { | 2827 void resetDebugTimer() { |
| 2828 cancelDebugTimer(); | 2828 cancelDebugTimer(); |
| 2829 _debugTimer = new Timer(debugTimerDuration, () { | 2829 _debugTimer = new Timer(debugTimerDuration, () { |
| 2830 print("The debug timer of test.dart expired. Please report this issue" | 2830 print("The debug timer of test.dart expired. Please report this issue" |
| 2831 " to ricow/kustermann and provide the following information:"); | 2831 " to ricow/whesse and provide the following information:"); |
| 2832 print(""); | 2832 print(""); |
| 2833 print("Graph is sealed: ${_graph.isSealed}"); | 2833 print("Graph is sealed: ${_graph.isSealed}"); |
| 2834 print(""); | 2834 print(""); |
| 2835 _graph.DumpCounts(); | 2835 _graph.DumpCounts(); |
| 2836 print(""); | 2836 print(""); |
| 2837 var unfinishedNodeStates = [ | 2837 var unfinishedNodeStates = [ |
| 2838 dgraph.NodeState.Initialized, | 2838 dgraph.NodeState.Initialized, |
| 2839 dgraph.NodeState.Waiting, | 2839 dgraph.NodeState.Waiting, |
| 2840 dgraph.NodeState.Enqueuing, | 2840 dgraph.NodeState.Enqueuing, |
| 2841 dgraph.NodeState.Processing]; | 2841 dgraph.NodeState.Processing]; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2960 } | 2960 } |
| 2961 } | 2961 } |
| 2962 | 2962 |
| 2963 void eventAllTestsDone() { | 2963 void eventAllTestsDone() { |
| 2964 for (var listener in _eventListener) { | 2964 for (var listener in _eventListener) { |
| 2965 listener.allDone(); | 2965 listener.allDone(); |
| 2966 } | 2966 } |
| 2967 _allDone(); | 2967 _allDone(); |
| 2968 } | 2968 } |
| 2969 } | 2969 } |
| OLD | NEW |