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 "utils.dart"; | 10 import "utils.dart"; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 ['-r', '--runtime'], | 115 ['-r', '--runtime'], |
116 ['none', 'dartino_compiler', 'dartinovm', 'dartino_warnings', | 116 ['none', 'dartino_compiler', 'dartinovm', 'dartino_warnings', |
117 'dartino_tests', 'dartino_cc_tests'], | 117 'dartino_tests', 'dartino_cc_tests'], |
118 'dartino_warnings,dartino_tests,dartino_compiler,' | 118 'dartino_warnings,dartino_tests,dartino_compiler,' |
119 'dartino_cc_tests'), | 119 'dartino_cc_tests'), |
120 new _TestOptionSpecification( | 120 new _TestOptionSpecification( |
121 'arch', | 121 'arch', |
122 'The architecture to run tests for', | 122 'The architecture to run tests for', |
123 ['-a', '--arch'], | 123 ['-a', '--arch'], |
124 ['all', 'ia32', 'x64', 'arm', 'arm64', 'mips', | 124 ['all', 'ia32', 'x64', 'arm', 'arm64', 'mips', |
125 'simarm', 'simarm64', 'simmips', 'xarm'], | 125 'simarm', 'simarm64', 'simmips', 'xarm', 'xmips'], |
126 'ia32'), | 126 'ia32'), |
127 new _TestOptionSpecification( | 127 new _TestOptionSpecification( |
128 'system', | 128 'system', |
129 'The operating system to run tests on', | 129 'The operating system to run tests on', |
130 ['-s', '--system'], | 130 ['-s', '--system'], |
131 ['linux', 'macos', 'windows', 'lk'], | 131 ['linux', 'macos', 'windows', 'lk'], |
132 Platform.operatingSystem), | 132 Platform.operatingSystem), |
133 new _TestOptionSpecification( | 133 new _TestOptionSpecification( |
134 'checked', | 134 'checked', |
135 'Run tests in checked mode', | 135 'Run tests in checked mode', |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
959 return option; | 959 return option; |
960 } | 960 } |
961 } | 961 } |
962 print('Unknown test option $name'); | 962 print('Unknown test option $name'); |
963 exit(1); | 963 exit(1); |
964 } | 964 } |
965 | 965 |
966 | 966 |
967 List<_TestOptionSpecification> _options; | 967 List<_TestOptionSpecification> _options; |
968 } | 968 } |
OLD | NEW |