| 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 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 } | 1185 } |
| 1186 for (var excludedEnvironmentVariable in EXCLUDED_ENVIRONMENT_VARIABLES) { | 1186 for (var excludedEnvironmentVariable in EXCLUDED_ENVIRONMENT_VARIABLES) { |
| 1187 environment.remove(excludedEnvironmentVariable); | 1187 environment.remove(excludedEnvironmentVariable); |
| 1188 } | 1188 } |
| 1189 | 1189 |
| 1190 return environment; | 1190 return environment; |
| 1191 } | 1191 } |
| 1192 } | 1192 } |
| 1193 | 1193 |
| 1194 class BatchRunnerProcess { | 1194 class BatchRunnerProcess { |
| 1195 static bool isWindows = io.Platform.operatingSystem == 'windows'; |
| 1196 |
| 1195 final batchRunnerTypes = { | 1197 final batchRunnerTypes = { |
| 1196 'selenium' : { | 1198 'selenium' : { |
| 1197 'run_executable' : 'python', | 1199 'run_executable' : 'python', |
| 1198 'run_arguments' : ['tools/testing/run_selenium.py', '--batch'], | 1200 'run_arguments' : ['tools/testing/run_selenium.py', '--batch'], |
| 1199 'terminate_command' : ['--terminate'], | 1201 'terminate_command' : ['--terminate'], |
| 1200 }, | 1202 }, |
| 1201 'dartanalyzer' : { | 1203 'dartanalyzer' : { |
| 1202 'run_executable' : 'sdk/bin/dartanalyzer_developer', // $suffix | 1204 'run_executable' : |
| 1205 isWindows ? |
| 1206 'sdk\\bin\\dartanalyzer_developer.bat' |
| 1207 : 'sdk/bin/dartanalyzer_developer', |
| 1203 'run_arguments' : ['--batch'], | 1208 'run_arguments' : ['--batch'], |
| 1204 'terminate_command' : null, | 1209 'terminate_command' : null, |
| 1205 }, | 1210 }, |
| 1206 'dart2analyzer' : { | 1211 'dart2analyzer' : { |
| 1212 // This is a unix shell script, no windows equivalent available |
| 1207 'run_executable' : 'editor/tools/analyzer_experimental', | 1213 'run_executable' : 'editor/tools/analyzer_experimental', |
| 1208 'run_arguments' : ['--batch'], | 1214 'run_arguments' : ['--batch'], |
| 1209 'terminate_command' : null, | 1215 'terminate_command' : null, |
| 1210 }, | 1216 }, |
| 1211 }; | 1217 }; |
| 1212 | 1218 |
| 1213 Completer<CommandOutput> _completer; | 1219 Completer<CommandOutput> _completer; |
| 1214 Command _command; | 1220 Command _command; |
| 1215 List<String> _arguments; | 1221 List<String> _arguments; |
| 1216 String _runnerType; | 1222 String _runnerType; |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2067 } | 2073 } |
| 2068 } | 2074 } |
| 2069 | 2075 |
| 2070 void eventAllTestsDone() { | 2076 void eventAllTestsDone() { |
| 2071 for (var listener in _eventListener) { | 2077 for (var listener in _eventListener) { |
| 2072 listener.allDone(); | 2078 listener.allDone(); |
| 2073 } | 2079 } |
| 2074 _allDone(); | 2080 _allDone(); |
| 2075 } | 2081 } |
| 2076 } | 2082 } |
| OLD | NEW |