| 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_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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |