| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "dart:math"; | 8 import "dart:math"; |
| 9 import "drt_updater.dart"; | 9 import "drt_updater.dart"; |
| 10 import "test_suite.dart"; | 10 import "test_suite.dart"; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 none: No runtime, compile only (for example, used for dartc static analysis | 101 none: No runtime, compile only (for example, used for dartc static analysis |
| 102 tests).''', | 102 tests).''', |
| 103 ['-r', '--runtime'], | 103 ['-r', '--runtime'], |
| 104 ['vm', 'd8', 'jsshell', 'drt', 'dartium', 'ff', 'firefox', | 104 ['vm', 'd8', 'jsshell', 'drt', 'dartium', 'ff', 'firefox', |
| 105 'chrome', 'safari', 'ie9', 'ie10', 'opera', 'none'], | 105 'chrome', 'safari', 'ie9', 'ie10', 'opera', 'none'], |
| 106 'vm'), | 106 'vm'), |
| 107 new _TestOptionSpecification( | 107 new _TestOptionSpecification( |
| 108 'arch', | 108 'arch', |
| 109 'The architecture to run tests for', | 109 'The architecture to run tests for', |
| 110 ['-a', '--arch'], | 110 ['-a', '--arch'], |
| 111 ['all', 'ia32', 'x64', 'simarm'], | 111 ['all', 'ia32', 'x64', 'simarm', 'simmips'], |
| 112 'ia32'), | 112 'ia32'), |
| 113 new _TestOptionSpecification( | 113 new _TestOptionSpecification( |
| 114 'system', | 114 'system', |
| 115 'The operating system to run tests on', | 115 'The operating system to run tests on', |
| 116 ['-s', '--system'], | 116 ['-s', '--system'], |
| 117 ['linux', 'macos', 'windows'], | 117 ['linux', 'macos', 'windows'], |
| 118 Platform.operatingSystem), | 118 Platform.operatingSystem), |
| 119 new _TestOptionSpecification( | 119 new _TestOptionSpecification( |
| 120 'checked', | 120 'checked', |
| 121 'Run tests in checked mode', | 121 'Run tests in checked mode', |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 return option; | 677 return option; |
| 678 } | 678 } |
| 679 } | 679 } |
| 680 print('Unknown test option $name'); | 680 print('Unknown test option $name'); |
| 681 exit(1); | 681 exit(1); |
| 682 } | 682 } |
| 683 | 683 |
| 684 | 684 |
| 685 List<_TestOptionSpecification> _options; | 685 List<_TestOptionSpecification> _options; |
| 686 } | 686 } |
| OLD | NEW |