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

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

Issue 8511056: Parse command-line options into a list of test configurations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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
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 7
8 #import("status_file_parser.dart"); 8 #import("status_file_parser.dart");
9 9
10 /** 10 /**
(...skipping 26 matching lines...) Expand all
37 return 'dart_bin'; 37 return 'dart_bin';
38 } else if (configuration['component'] == 'dartc') { 38 } else if (configuration['component'] == 'dartc') {
39 return 'dartc'; 39 return 'dartc';
40 } else { 40 } else {
41 throw "Unknown executable for: ${configuration['component']}"; 41 throw "Unknown executable for: ${configuration['component']}";
42 } 42 }
43 } 43 }
44 44
45 45
46 String getDartShellFileName(Map configuration) { 46 String getDartShellFileName(Map configuration) {
47 return getBuildDir(configuration) + getExecutableName(configuration); 47 var name = getBuildDir(configuration) + getExecutableName(configuration);
48 if (!(new File(name)).existsSync()) {
49 throw "Executable '$name' does not exist";
50 }
51 return name;
48 } 52 }
49 53
50 54
51 class TestCase { 55 class TestCase {
52 String executablePath; 56 String executablePath;
53 List<String> arguments; 57 List<String> arguments;
54 String commandLine; 58 String commandLine;
55 String displayName; 59 String displayName;
56 TestOutput output; 60 TestOutput output;
57 Set<String> expectedOutcomes; 61 Set<String> expectedOutcomes;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 new RunningProcess(test, 60).start(); 193 new RunningProcess(test, 60).start();
190 numProcesses++; 194 numProcesses++;
191 } 195 }
192 } 196 }
193 197
194 runTest(TestCase test) { 198 runTest(TestCase test) {
195 tests.add(test); 199 tests.add(test);
196 tryRunTest(); 200 tryRunTest();
197 } 201 }
198 } 202 }
OLDNEW
« tools/testing/dart/test_options.dart ('K') | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698