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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 ['vm', 'd8', 'jsshell', 'drt', 'dartium', 'ff', 'firefox', | 103 ['vm', 'd8', 'jsshell', 'drt', 'dartium', 'ff', 'firefox', |
104 'chrome', 'safari', 'ie9', 'ie10', 'ie11', 'opera', | 104 'chrome', 'safari', 'ie9', 'ie10', 'ie11', 'opera', |
105 'chromeOnAndroid', 'safarimobilesim', | 105 'chromeOnAndroid', 'safarimobilesim', |
106 'ContentShellOnAndroid', 'DartiumOnAndroid', 'none'], | 106 'ContentShellOnAndroid', 'DartiumOnAndroid', 'none'], |
107 'vm'), | 107 'vm'), |
108 new _TestOptionSpecification( | 108 new _TestOptionSpecification( |
109 'arch', | 109 'arch', |
110 'The architecture to run tests for', | 110 'The architecture to run tests for', |
111 ['-a', '--arch'], | 111 ['-a', '--arch'], |
112 ['all', 'ia32', 'x64', 'arm', 'armv5te', 'arm64', 'mips', | 112 ['all', 'ia32', 'x64', 'arm', 'armv5te', 'arm64', 'mips', |
113 'simarm', 'simarm64', 'simmips'], | 113 'simarm', 'simarmv5te', 'simarm64', 'simmips'], |
114 'ia32'), | 114 'ia32'), |
115 new _TestOptionSpecification( | 115 new _TestOptionSpecification( |
116 'system', | 116 'system', |
117 'The operating system to run tests on', | 117 'The operating system to run tests on', |
118 ['-s', '--system'], | 118 ['-s', '--system'], |
119 ['linux', 'macos', 'windows'], | 119 ['linux', 'macos', 'windows'], |
120 Platform.operatingSystem), | 120 Platform.operatingSystem), |
121 new _TestOptionSpecification( | 121 new _TestOptionSpecification( |
122 'checked', | 122 'checked', |
123 'Run tests in checked mode', | 123 'Run tests in checked mode', |
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 return option; | 897 return option; |
898 } | 898 } |
899 } | 899 } |
900 print('Unknown test option $name'); | 900 print('Unknown test option $name'); |
901 exit(1); | 901 exit(1); |
902 } | 902 } |
903 | 903 |
904 | 904 |
905 List<_TestOptionSpecification> _options; | 905 List<_TestOptionSpecification> _options; |
906 } | 906 } |
OLD | NEW |