| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import "dart:io"; | 7 import "dart:io"; |
| 8 import "drt_updater.dart"; | 8 import "drt_updater.dart"; |
| 9 import "test_suite.dart"; | 9 import "test_suite.dart"; |
| 10 import "path.dart"; | 10 import "path.dart"; |
| (...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 return isValid; | 686 return isValid; |
| 687 } | 687 } |
| 688 | 688 |
| 689 /** | 689 /** |
| 690 * Recursively expand a configuration with multiple values per key | 690 * Recursively expand a configuration with multiple values per key |
| 691 * into a list of configurations with exactly one value per key. | 691 * into a list of configurations with exactly one value per key. |
| 692 */ | 692 */ |
| 693 List<Map> _expandConfigurations(Map configuration) { | 693 List<Map> _expandConfigurations(Map configuration) { |
| 694 // Expand the pseudo-values such as 'all'. | 694 // Expand the pseudo-values such as 'all'. |
| 695 if (configuration['arch'] == 'all') { | 695 if (configuration['arch'] == 'all') { |
| 696 configuration['arch'] = 'ia32,x64,simarm,simarm64,simmips'; | 696 configuration['arch'] = 'ia32,x64,simarm,simarm64,simmips,simdbc'; |
| 697 } | 697 } |
| 698 if (configuration['mode'] == 'all') { | 698 if (configuration['mode'] == 'all') { |
| 699 configuration['mode'] = 'debug,release,product'; | 699 configuration['mode'] = 'debug,release,product'; |
| 700 } | 700 } |
| 701 | 701 |
| 702 if (configuration['report_in_json']) { | 702 if (configuration['report_in_json']) { |
| 703 configuration['list'] = true; | 703 configuration['list'] = true; |
| 704 configuration['report'] = true; | 704 configuration['report'] = true; |
| 705 } | 705 } |
| 706 | 706 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 if (option.keys.contains(name)) { | 894 if (option.keys.contains(name)) { |
| 895 return option; | 895 return option; |
| 896 } | 896 } |
| 897 } | 897 } |
| 898 print('Unknown test option $name'); | 898 print('Unknown test option $name'); |
| 899 exit(1); | 899 exit(1); |
| 900 } | 900 } |
| 901 | 901 |
| 902 List<_TestOptionSpecification> _options; | 902 List<_TestOptionSpecification> _options; |
| 903 } | 903 } |
| OLD | NEW |