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 import 'dart:io'; | 5 import 'dart:io'; |
6 | 6 |
7 import 'configuration.dart'; | 7 import 'configuration.dart'; |
8 import 'drt_updater.dart'; | 8 import 'drt_updater.dart'; |
9 import 'path.dart'; | 9 import 'path.dart'; |
10 import 'utils.dart'; | 10 import 'utils.dart'; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 defaultsTo: Runtime.vm.name), | 156 defaultsTo: Runtime.vm.name), |
157 new _Option( | 157 new _Option( |
158 'arch', | 158 'arch', |
159 '''The architecture to run tests for. | 159 '''The architecture to run tests for. |
160 | 160 |
161 Allowed values are: | 161 Allowed values are: |
162 all | 162 all |
163 ia32, x64 | 163 ia32, x64 |
164 arm, armv6, armv5te, arm64, | 164 arm, armv6, armv5te, arm64, |
165 simarm, simarmv6, simarmv5te, simarm64, | 165 simarm, simarmv6, simarmv5te, simarm64, |
166 mips, simmips | |
167 simdbc, simdbc64''', | 166 simdbc, simdbc64''', |
168 abbr: 'a', | 167 abbr: 'a', |
169 values: ['all']..addAll(Architecture.names), | 168 values: ['all']..addAll(Architecture.names), |
170 defaultsTo: Architecture.x64.name), | 169 defaultsTo: Architecture.x64.name), |
171 new _Option('system', 'The operating system to run tests on.', | 170 new _Option('system', 'The operating system to run tests on.', |
172 abbr: 's', values: System.names, defaultsTo: Platform.operatingSystem), | 171 abbr: 's', values: System.names, defaultsTo: Platform.operatingSystem), |
173 new _Option.bool('checked', 'Run tests in checked mode.'), | 172 new _Option.bool('checked', 'Run tests in checked mode.'), |
174 new _Option.bool('strong', 'Run tests in strong mode.'), | 173 new _Option.bool('strong', 'Run tests in strong mode.'), |
175 new _Option.bool('host_checked', 'Run compiler in checked mode.'), | 174 new _Option.bool('host_checked', 'Run compiler in checked mode.'), |
176 new _Option.bool('minified', 'Enable minification in the compiler.'), | 175 new _Option.bool('minified', 'Enable minification in the compiler.'), |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 if (name == option.name) return option; | 763 if (name == option.name) return option; |
765 | 764 |
766 // Allow hyphens instead of underscores as the separator since they are | 765 // Allow hyphens instead of underscores as the separator since they are |
767 // more common for command line flags. | 766 // more common for command line flags. |
768 if (name == option.name.replaceAll("_", "-")) return option; | 767 if (name == option.name.replaceAll("_", "-")) return option; |
769 } | 768 } |
770 | 769 |
771 return null; | 770 return null; |
772 } | 771 } |
773 } | 772 } |
OLD | NEW |