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 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 Command get lastCommandExecuted { | 786 Command get lastCommandExecuted { |
787 if (commandOutputs.length == 0) { | 787 if (commandOutputs.length == 0) { |
788 throw new Exception("CommandOutputs is empty, maybe no command was run? (" | 788 throw new Exception("CommandOutputs is empty, maybe no command was run? (" |
789 "displayName: '$displayName', " | 789 "displayName: '$displayName', " |
790 "configurationString: '$configurationString')"); | 790 "configurationString: '$configurationString')"); |
791 } | 791 } |
792 return commands[commandOutputs.length - 1]; | 792 return commands[commandOutputs.length - 1]; |
793 } | 793 } |
794 | 794 |
795 int get timeout { | 795 int get timeout { |
| 796 return configuration['timeout'] * SLOW_TIMEOUT_MULTIPLIER; |
| 797 /* |
796 if (expectedOutcomes.contains(Expectation.SLOW)) { | 798 if (expectedOutcomes.contains(Expectation.SLOW)) { |
797 return configuration['timeout'] * SLOW_TIMEOUT_MULTIPLIER; | 799 return configuration['timeout'] * SLOW_TIMEOUT_MULTIPLIER; |
798 } else { | 800 } else { |
799 return configuration['timeout']; | 801 return configuration['timeout']; |
800 } | 802 } |
| 803 */ |
801 } | 804 } |
802 | 805 |
803 String get configurationString { | 806 String get configurationString { |
804 final compiler = configuration['compiler']; | 807 final compiler = configuration['compiler']; |
805 final runtime = configuration['runtime']; | 808 final runtime = configuration['runtime']; |
806 final mode = configuration['mode']; | 809 final mode = configuration['mode']; |
807 final arch = configuration['arch']; | 810 final arch = configuration['arch']; |
808 final checked = configuration['checked'] ? '-checked' : ''; | 811 final checked = configuration['checked'] ? '-checked' : ''; |
809 return "$compiler-$runtime$checked ${mode}_$arch"; | 812 return "$compiler-$runtime$checked ${mode}_$arch"; |
810 } | 813 } |
(...skipping 2155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2966 } | 2969 } |
2967 } | 2970 } |
2968 | 2971 |
2969 void eventAllTestsDone() { | 2972 void eventAllTestsDone() { |
2970 for (var listener in _eventListener) { | 2973 for (var listener in _eventListener) { |
2971 listener.allDone(); | 2974 listener.allDone(); |
2972 } | 2975 } |
2973 _allDone(); | 2976 _allDone(); |
2974 } | 2977 } |
2975 } | 2978 } |
OLD | NEW |