| 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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 validRuntimes = const ['vm', 'drt', 'dartium', | 647 validRuntimes = const ['vm', 'drt', 'dartium', |
| 648 'ContentShellOnAndroid', 'DartiumOnAndroid']; | 648 'ContentShellOnAndroid', 'DartiumOnAndroid']; |
| 649 break; | 649 break; |
| 650 } | 650 } |
| 651 if (!validRuntimes.contains(config['runtime'])) { | 651 if (!validRuntimes.contains(config['runtime'])) { |
| 652 isValid = false; | 652 isValid = false; |
| 653 print("Warning: combination of compiler '${config['compiler']}' and " | 653 print("Warning: combination of compiler '${config['compiler']}' and " |
| 654 "runtime '${config['runtime']}' is invalid. " | 654 "runtime '${config['runtime']}' is invalid. " |
| 655 "Skipping this combination."); | 655 "Skipping this combination."); |
| 656 } | 656 } |
| 657 if ((config['runtime'] == 'ie9' || config['runtime'] == 'ie10') && | 657 if (config['ie'] && Platform.operatingSystem != 'windows') { |
| 658 Platform.operatingSystem != 'windows') { | |
| 659 isValid = false; | 658 isValid = false; |
| 660 print("Warning cannot run Internet Explorer on non-Windows operating" | 659 print("Warning cannot run Internet Explorer on non-Windows operating" |
| 661 " system."); | 660 " system."); |
| 662 } | 661 } |
| 663 if (config['shard'] < 1 || config['shard'] > config['shards']) { | 662 if (config['shard'] < 1 || config['shard'] > config['shards']) { |
| 664 isValid = false; | 663 isValid = false; |
| 665 print("Error: shard index is ${config['shard']} out of " | 664 print("Error: shard index is ${config['shard']} out of " |
| 666 "${config['shards']} shards"); | 665 "${config['shards']} shards"); |
| 667 } | 666 } |
| 668 | 667 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 return option; | 889 return option; |
| 891 } | 890 } |
| 892 } | 891 } |
| 893 print('Unknown test option $name'); | 892 print('Unknown test option $name'); |
| 894 exit(1); | 893 exit(1); |
| 895 } | 894 } |
| 896 | 895 |
| 897 | 896 |
| 898 List<_TestOptionSpecification> _options; | 897 List<_TestOptionSpecification> _options; |
| 899 } | 898 } |
| OLD | NEW |