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

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

Issue 8636012: Make Dart test scripts work for the VM on Windows. (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
« no previous file with comments | « no previous file | tools/testing/dart/test_runner.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_options_parser"); 5 #library("test_options_parser");
6 6
7 List<String> defaultTestSelectors = 7 List<String> defaultTestSelectors =
8 const ['samples', 'standalone', 'corelib', 'co19', 'language', 8 const ['samples', 'standalone', 'corelib', 'co19', 'language',
9 'isolate', 'stub-generator', 'vm']; 9 'isolate', 'stub-generator', 'vm'];
10 10
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 return _expandConfigurations(configuration); 192 return _expandConfigurations(configuration);
193 } 193 }
194 194
195 195
196 /** 196 /**
197 * Recursively expand a configuration with multiple values per key 197 * Recursively expand a configuration with multiple values per key
198 * into a list of configurations with exactly one value per key. 198 * into a list of configurations with exactly one value per key.
199 */ 199 */
200 List<Map> _expandConfigurations(Map configuration) { 200 List<Map> _expandConfigurations(Map configuration) {
201
202 // TODO(ager): Get rid of this. This is for backwards
203 // compatibility with the python test scripts. They use system
204 // 'win32' for Windows.
205 if (configuration['system'] == 'windows') {
206 configuration['system'] = 'win32';
207 }
208
201 // Expand the pseudo-values such as 'all'. 209 // Expand the pseudo-values such as 'all'.
202 if (configuration['architecture'] == 'all') { 210 if (configuration['architecture'] == 'all') {
203 configuration['architecture'] = 'ia32,x64,simarm'; 211 configuration['architecture'] = 'ia32,x64,simarm';
204 } 212 }
205 if (configuration['mode'] == 'all') { 213 if (configuration['mode'] == 'all') {
206 configuration['mode'] = 'debug,release'; 214 configuration['mode'] = 'debug,release';
207 } 215 }
208 if (configuration['component'] == 'most') { 216 if (configuration['component'] == 'most') {
209 configuration['component'] = 'vm,dartc'; 217 configuration['component'] = 'vm,dartc';
210 } 218 }
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 if (option.keys.some((key) => key == name)) { 341 if (option.keys.some((key) => key == name)) {
334 return option; 342 return option;
335 } 343 }
336 } 344 }
337 return null; 345 return null;
338 } 346 }
339 347
340 348
341 List<_TestOptionSpecification> _options; 349 List<_TestOptionSpecification> _options;
342 } 350 }
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698