| 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 "compiler_configuration.dart" show CompilerConfiguration; | 10 import "compiler_configuration.dart" show CompilerConfiguration; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 ['-r', '--runtime'], | 100 ['-r', '--runtime'], |
| 101 ['vm', 'd8', 'jsshell', 'drt', 'dartium', 'ff', 'firefox', | 101 ['vm', 'd8', 'jsshell', 'drt', 'dartium', 'ff', 'firefox', |
| 102 'chrome', 'safari', 'ie9', 'ie10', 'ie11', 'opera', | 102 'chrome', 'safari', 'ie9', 'ie10', 'ie11', 'opera', |
| 103 'chromeOnAndroid', | 103 'chromeOnAndroid', |
| 104 'ContentShellOnAndroid', 'DartiumOnAndroid', 'none'], | 104 'ContentShellOnAndroid', 'DartiumOnAndroid', 'none'], |
| 105 'vm'), | 105 'vm'), |
| 106 new _TestOptionSpecification( | 106 new _TestOptionSpecification( |
| 107 'arch', | 107 'arch', |
| 108 'The architecture to run tests for', | 108 'The architecture to run tests for', |
| 109 ['-a', '--arch'], | 109 ['-a', '--arch'], |
| 110 ['all', 'ia32', 'x64', 'simarm', 'simmips', 'arm', 'mips'], | 110 ['all', 'ia32', 'x64', 'arm', 'mips', |
| 111 'simarm', 'simarm64', 'simmips'], |
| 111 'ia32'), | 112 'ia32'), |
| 112 new _TestOptionSpecification( | 113 new _TestOptionSpecification( |
| 113 'system', | 114 'system', |
| 114 'The operating system to run tests on', | 115 'The operating system to run tests on', |
| 115 ['-s', '--system'], | 116 ['-s', '--system'], |
| 116 ['linux', 'macos', 'windows'], | 117 ['linux', 'macos', 'windows'], |
| 117 Platform.operatingSystem), | 118 Platform.operatingSystem), |
| 118 new _TestOptionSpecification( | 119 new _TestOptionSpecification( |
| 119 'checked', | 120 'checked', |
| 120 'Run tests in checked mode', | 121 'Run tests in checked mode', |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 return isValid; | 628 return isValid; |
| 628 } | 629 } |
| 629 | 630 |
| 630 /** | 631 /** |
| 631 * Recursively expand a configuration with multiple values per key | 632 * Recursively expand a configuration with multiple values per key |
| 632 * into a list of configurations with exactly one value per key. | 633 * into a list of configurations with exactly one value per key. |
| 633 */ | 634 */ |
| 634 List<Map> _expandConfigurations(Map configuration) { | 635 List<Map> _expandConfigurations(Map configuration) { |
| 635 // Expand the pseudo-values such as 'all'. | 636 // Expand the pseudo-values such as 'all'. |
| 636 if (configuration['arch'] == 'all') { | 637 if (configuration['arch'] == 'all') { |
| 637 configuration['arch'] = 'ia32,x64,simarm,simmips'; | 638 configuration['arch'] = 'ia32,x64,simarm,simarm64,simmips'; |
| 638 } | 639 } |
| 639 if (configuration['mode'] == 'all') { | 640 if (configuration['mode'] == 'all') { |
| 640 configuration['mode'] = 'debug,release'; | 641 configuration['mode'] = 'debug,release'; |
| 641 } | 642 } |
| 642 | 643 |
| 643 // Use verbose progress indication for verbose output unless buildbot | 644 // Use verbose progress indication for verbose output unless buildbot |
| 644 // progress indication is requested. | 645 // progress indication is requested. |
| 645 if (configuration['verbose'] && configuration['progress'] != 'buildbot') { | 646 if (configuration['verbose'] && configuration['progress'] != 'buildbot') { |
| 646 configuration['progress'] = 'verbose'; | 647 configuration['progress'] = 'verbose'; |
| 647 } | 648 } |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 return option; | 810 return option; |
| 810 } | 811 } |
| 811 } | 812 } |
| 812 print('Unknown test option $name'); | 813 print('Unknown test option $name'); |
| 813 exit(1); | 814 exit(1); |
| 814 } | 815 } |
| 815 | 816 |
| 816 | 817 |
| 817 List<_TestOptionSpecification> _options; | 818 List<_TestOptionSpecification> _options; |
| 818 } | 819 } |
| OLD | NEW |