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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 'chrome', 'safari', 'ie9', 'ie10', 'ie11', 'opera', | 100 'chrome', 'safari', 'ie9', 'ie10', 'ie11', 'opera', |
101 'chromeOnAndroid', 'safarimobilesim', | 101 'chromeOnAndroid', 'safarimobilesim', |
102 'ContentShellOnAndroid', 'DartiumOnAndroid', 'none'], | 102 'ContentShellOnAndroid', 'DartiumOnAndroid', 'none'], |
103 'vm'), | 103 'vm'), |
104 new _TestOptionSpecification( | 104 new _TestOptionSpecification( |
105 'arch', | 105 'arch', |
106 'The architecture to run tests for', | 106 'The architecture to run tests for', |
107 ['-a', '--arch'], | 107 ['-a', '--arch'], |
108 ['all', 'ia32', 'x64', 'arm', 'armv5te', 'arm64', 'mips', | 108 ['all', 'ia32', 'x64', 'arm', 'armv5te', 'arm64', 'mips', |
109 'simarm', 'simarmv5te', 'simarm64', 'simmips'], | 109 'simarm', 'simarmv5te', 'simarm64', 'simmips'], |
110 'ia32'), | 110 'x64'), |
111 new _TestOptionSpecification( | 111 new _TestOptionSpecification( |
112 'system', | 112 'system', |
113 'The operating system to run tests on', | 113 'The operating system to run tests on', |
114 ['-s', '--system'], | 114 ['-s', '--system'], |
115 ['linux', 'macos', 'windows'], | 115 ['linux', 'macos', 'windows'], |
116 Platform.operatingSystem), | 116 Platform.operatingSystem), |
117 new _TestOptionSpecification( | 117 new _TestOptionSpecification( |
118 'checked', | 118 'checked', |
119 'Run tests in checked mode', | 119 'Run tests in checked mode', |
120 ['--checked'], | 120 ['--checked'], |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 return option; | 886 return option; |
887 } | 887 } |
888 } | 888 } |
889 print('Unknown test option $name'); | 889 print('Unknown test option $name'); |
890 exit(1); | 890 exit(1); |
891 } | 891 } |
892 | 892 |
893 | 893 |
894 List<_TestOptionSpecification> _options; | 894 List<_TestOptionSpecification> _options; |
895 } | 895 } |
OLD | NEW |