| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 line = source.readLine(); | 206 line = source.readLine(); |
| 207 } | 207 } |
| 208 }; | 208 }; |
| 209 } | 209 } |
| 210 | 210 |
| 211 void start() { | 211 void start() { |
| 212 Expect.isFalse(testCase.expectedOutcomes.contains(SKIP)); | 212 Expect.isFalse(testCase.expectedOutcomes.contains(SKIP)); |
| 213 stdout = new List<String>(); | 213 stdout = new List<String>(); |
| 214 stderr = new List<String>(); | 214 stderr = new List<String>(); |
| 215 if (testCase is BrowserTestCase) { | 215 if (testCase is BrowserTestCase) { |
| 216 runCommand(testCase.compilerPath, | 216 BrowserTestCase browserTestCase = testCase; |
| 217 testCase.compilerArguments, | 217 runCommand(browserTestCase.compilerPath, |
| 218 browserTestCase.compilerArguments, |
| 218 compilerExitHandler); | 219 compilerExitHandler); |
| 219 } else { | 220 } else { |
| 220 runCommand(testCase.executablePath, testCase.arguments, exitHandler); | 221 runCommand(testCase.executablePath, testCase.arguments, exitHandler); |
| 221 } | 222 } |
| 222 } | 223 } |
| 223 | 224 |
| 224 void runCommand(String executable, | 225 void runCommand(String executable, |
| 225 List<String> arguments, | 226 List<String> arguments, |
| 226 void exitHandler(int exitCode)) { | 227 void exitHandler(int exitCode)) { |
| 227 process = new Process(executable, arguments); | 228 process = new Process(executable, arguments); |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 if (test.configuration['component'] == 'dartc') { | 471 if (test.configuration['component'] == 'dartc') { |
| 471 _ensureDartcBatchRunnersStarted(test.executablePath); | 472 _ensureDartcBatchRunnersStarted(test.executablePath); |
| 472 _getDartcBatchRunnerProcess().startTest(test); | 473 _getDartcBatchRunnerProcess().startTest(test); |
| 473 } else { | 474 } else { |
| 474 new RunningProcess(test).start(); | 475 new RunningProcess(test).start(); |
| 475 } | 476 } |
| 476 _numProcesses++; | 477 _numProcesses++; |
| 477 } | 478 } |
| 478 } | 479 } |
| 479 } | 480 } |
| OLD | NEW |