| 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 | 10 |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 [], | 377 [], |
| 378 null), | 378 null), |
| 379 new _TestOptionSpecification( | 379 new _TestOptionSpecification( |
| 380 'replay_from_file', | 380 'replay_from_file', |
| 381 'Records all the commands that need to be executed and writes it ' | 381 'Records all the commands that need to be executed and writes it ' |
| 382 'out to a file.', | 382 'out to a file.', |
| 383 ['--replay_from_file'], | 383 ['--replay_from_file'], |
| 384 [], | 384 [], |
| 385 null), | 385 null), |
| 386 new _TestOptionSpecification( | 386 new _TestOptionSpecification( |
| 387 'test_tag', |
| 388 'Machine specific options that is not captured by the regular ' |
| 389 'test options. Used to be able to make sane updates to the ' |
| 390 'status files.', |
| 391 ['--test-tag'], |
| 392 [], |
| 393 null), |
| 394 new _TestOptionSpecification( |
| 387 'vm_options', | 395 'vm_options', |
| 388 'Extra options to send to the vm when running', | 396 'Extra options to send to the vm when running', |
| 389 ['--vm-options'], | 397 ['--vm-options'], |
| 390 [], | 398 [], |
| 391 null),]; | 399 null),]; |
| 392 } | 400 } |
| 393 | 401 |
| 394 | 402 |
| 395 /** | 403 /** |
| 396 * Parse a list of strings as test options. | 404 * Parse a list of strings as test options. |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 return option; | 829 return option; |
| 822 } | 830 } |
| 823 } | 831 } |
| 824 print('Unknown test option $name'); | 832 print('Unknown test option $name'); |
| 825 exit(1); | 833 exit(1); |
| 826 } | 834 } |
| 827 | 835 |
| 828 | 836 |
| 829 List<_TestOptionSpecification> _options; | 837 List<_TestOptionSpecification> _options; |
| 830 } | 838 } |
| OLD | NEW |