| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #library("test_runner"); | 5 #library("test_runner"); |
| 6 | 6 |
| 7 #import("status_file_parser.dart"); | 7 #import("status_file_parser.dart"); |
| 8 #import("test_progress.dart"); | 8 #import("test_progress.dart"); |
| 9 #import("test_suite.dart"); | 9 #import("test_suite.dart"); |
| 10 | 10 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 destination.add(line); | 201 destination.add(line); |
| 202 line = source.readLine(); | 202 line = source.readLine(); |
| 203 } | 203 } |
| 204 }; | 204 }; |
| 205 } | 205 } |
| 206 | 206 |
| 207 void start() { | 207 void start() { |
| 208 Expect.isFalse(testCase.expectedOutcomes.contains(SKIP)); | 208 Expect.isFalse(testCase.expectedOutcomes.contains(SKIP)); |
| 209 stdout = new List<String>(); | 209 stdout = new List<String>(); |
| 210 stderr = new List<String>(); | 210 stderr = new List<String>(); |
| 211 if (testCase is BrowserTestCase) { | 211 if (testCase is BrowserTestCase && testCase.dynamic.compilerPath != null) { |
| 212 runCommand(testCase.compilerPath, | 212 runCommand(testCase.dynamic.compilerPath, |
| 213 testCase.compilerArguments, | 213 testCase.dynamic.compilerArguments, |
| 214 compilerExitHandler); | 214 compilerExitHandler); |
| 215 } else { | 215 } else { |
| 216 runCommand(testCase.executablePath, testCase.arguments, exitHandler); | 216 runCommand(testCase.executablePath, testCase.arguments, exitHandler); |
| 217 } | 217 } |
| 218 } | 218 } |
| 219 | 219 |
| 220 void runCommand(String executable, | 220 void runCommand(String executable, |
| 221 List<String> arguments, | 221 List<String> arguments, |
| 222 void exitHandler(int exitCode)) { | 222 void exitHandler(int exitCode)) { |
| 223 process = new Process(executable, arguments); | 223 process = new Process(executable, arguments); |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 if (test.configuration['component'] == 'dartc') { | 466 if (test.configuration['component'] == 'dartc') { |
| 467 _ensureDartcBatchRunnersStarted(test.executablePath); | 467 _ensureDartcBatchRunnersStarted(test.executablePath); |
| 468 _getDartcBatchRunnerProcess().startTest(test); | 468 _getDartcBatchRunnerProcess().startTest(test); |
| 469 } else { | 469 } else { |
| 470 new RunningProcess(test).start(); | 470 new RunningProcess(test).start(); |
| 471 } | 471 } |
| 472 _numProcesses++; | 472 _numProcesses++; |
| 473 } | 473 } |
| 474 } | 474 } |
| 475 } | 475 } |
| OLD | NEW |