Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: tools/testing/dart/test_runner.dart

Issue 8995009: Implement chromium component. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/testing/dart/test_progress.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_progress.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698