| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 | 8 |
| 9 List<String> defaultTestSelectors = | 9 List<String> defaultTestSelectors = |
| 10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', | 10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 _options = | 55 _options = |
| 56 [ new _TestOptionSpecification( | 56 [ new _TestOptionSpecification( |
| 57 'mode', | 57 'mode', |
| 58 'Mode in which to run the tests', | 58 'Mode in which to run the tests', |
| 59 ['-m', '--mode'], | 59 ['-m', '--mode'], |
| 60 ['all', 'debug', 'release'], | 60 ['all', 'debug', 'release'], |
| 61 'debug'), | 61 'debug'), |
| 62 new _TestOptionSpecification( | 62 new _TestOptionSpecification( |
| 63 'component', | 63 'component', |
| 64 ''' | 64 ''' |
| 65 Controls how dart code is compiled and executed. | 65 Controls how dart code is compiled and executed. |
| 66 | 66 |
| 67 vm: Run dart code on the standalone dart vm. | 67 vm: Run dart code on the standalone dart vm. |
| 68 | 68 |
| 69 frog: Compile dart code by running frog on the standalone dart vm, and | 69 frog: Compile dart code by running frog on the standalone dart vm, and |
| 70 run the resulting javascript on D8. | 70 run the resulting javascript on D8. |
| 71 | 71 |
| 72 leg: Compile dart code by running leg on the standalone dart vm, and | 72 leg: Compile dart code by running leg on the standalone dart vm, and |
| 73 run the resulting javascript on D8. | 73 run the resulting javascript on D8. |
| 74 | 74 |
| 75 frogsh: Compile dart code by running frog on node.js, and run the | 75 frogsh: Compile dart code by running frog on node.js, and run the |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 'drt', | 210 'drt', |
| 211 'Path to DumpRenderTree executable', | 211 'Path to DumpRenderTree executable', |
| 212 ['--drt'], | 212 ['--drt'], |
| 213 [], | 213 [], |
| 214 ''), | 214 ''), |
| 215 new _TestOptionSpecification( | 215 new _TestOptionSpecification( |
| 216 'froglib', | 216 'froglib', |
| 217 'Path to frog library', | 217 'Path to frog library', |
| 218 ['--froglib'], | 218 ['--froglib'], |
| 219 [], | 219 [], |
| 220 ''), | 220 ''), |
| 221 new _TestOptionSpecification( | 221 new _TestOptionSpecification( |
| 222 'noBatch', | 222 'noBatch', |
| 223 'Do not run browser tests in batch mode', | 223 'Do not run browser tests in batch mode', |
| 224 ['-n', '--nobatch'], | 224 ['-n', '--nobatch'], |
| 225 [], | 225 [], |
| 226 false, | 226 false, |
| 227 'bool')]; | 227 'bool')]; |
| 228 } | 228 } |
| 229 | 229 |
| 230 | 230 |
| 231 /** | 231 /** |
| 232 * Parse a list of strings as test options. | 232 * Parse a list of strings as test options. |
| 233 * | 233 * |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 return option; | 536 return option; |
| 537 } | 537 } |
| 538 } | 538 } |
| 539 print('Unknown test option $name'); | 539 print('Unknown test option $name'); |
| 540 exit(1); | 540 exit(1); |
| 541 } | 541 } |
| 542 | 542 |
| 543 | 543 |
| 544 List<_TestOptionSpecification> _options; | 544 List<_TestOptionSpecification> _options; |
| 545 } | 545 } |
| OLD | NEW |