| 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 "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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 dartium: Run Dart or JavaScript in Dartium. | 100 dartium: Run Dart or JavaScript in Dartium. |
| 101 | 101 |
| 102 [ff | chrome | safari | ie9 | ie10 | opera | chromeOnAndroid]: | 102 [ff | chrome | safari | ie9 | ie10 | opera | chromeOnAndroid]: |
| 103 Run JavaScript in the specified browser. | 103 Run JavaScript in the specified browser. |
| 104 | 104 |
| 105 none: No runtime, compile only (for example, used for dartc static analysis | 105 none: No runtime, compile only (for example, used for dartc static analysis |
| 106 tests).''', | 106 tests).''', |
| 107 ['-r', '--runtime'], | 107 ['-r', '--runtime'], |
| 108 ['vm', 'd8', 'jsshell', 'drt', 'dartium', 'ff', 'firefox', | 108 ['vm', 'd8', 'jsshell', 'drt', 'dartium', 'ff', 'firefox', |
| 109 'chrome', 'safari', 'ie9', 'ie10', 'opera', 'chromeOnAndroid', 'n
one'], | 109 'chrome', 'safari', 'ie9', 'ie10', 'opera', 'chromeOnAndroid', |
| 110 'none'], |
| 110 'vm'), | 111 'vm'), |
| 111 new _TestOptionSpecification( | 112 new _TestOptionSpecification( |
| 112 'arch', | 113 'arch', |
| 113 'The architecture to run tests for', | 114 'The architecture to run tests for', |
| 114 ['-a', '--arch'], | 115 ['-a', '--arch'], |
| 115 ['all', 'ia32', 'x64', 'simarm', 'simmips'], | 116 ['all', 'ia32', 'x64', 'simarm', 'simmips'], |
| 116 'ia32'), | 117 'ia32'), |
| 117 new _TestOptionSpecification( | 118 new _TestOptionSpecification( |
| 118 'system', | 119 'system', |
| 119 'The operating system to run tests on', | 120 'The operating system to run tests on', |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 return option; | 708 return option; |
| 708 } | 709 } |
| 709 } | 710 } |
| 710 print('Unknown test option $name'); | 711 print('Unknown test option $name'); |
| 711 exit(1); | 712 exit(1); |
| 712 } | 713 } |
| 713 | 714 |
| 714 | 715 |
| 715 List<_TestOptionSpecification> _options; | 716 List<_TestOptionSpecification> _options; |
| 716 } | 717 } |
| OLD | NEW |