| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 'out to a file.', | 335 'out to a file.', |
| 336 ['--record_to_file'], | 336 ['--record_to_file'], |
| 337 [], | 337 [], |
| 338 null), | 338 null), |
| 339 new _TestOptionSpecification( | 339 new _TestOptionSpecification( |
| 340 'replay_from_file', | 340 'replay_from_file', |
| 341 'Records all the commands that need to be executed and writes it ' | 341 'Records all the commands that need to be executed and writes it ' |
| 342 'out to a file.', | 342 'out to a file.', |
| 343 ['--replay_from_file'], | 343 ['--replay_from_file'], |
| 344 [], | 344 [], |
| 345 null), |
| 346 new _TestOptionSpecification( |
| 347 'vm-options', |
| 348 'Extra flags to send to the vm when running', |
| 349 ['--vm-options'], |
| 350 [], |
| 345 null),]; | 351 null),]; |
| 346 } | 352 } |
| 347 | 353 |
| 348 | 354 |
| 349 /** | 355 /** |
| 350 * Parse a list of strings as test options. | 356 * Parse a list of strings as test options. |
| 351 * | 357 * |
| 352 * Returns a list of configurations in which to run the | 358 * Returns a list of configurations in which to run the |
| 353 * tests. Configurations are maps mapping from option keys to | 359 * tests. Configurations are maps mapping from option keys to |
| 354 * values. When encountering the first non-option string, the rest | 360 * values. When encountering the first non-option string, the rest |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 return option; | 792 return option; |
| 787 } | 793 } |
| 788 } | 794 } |
| 789 print('Unknown test option $name'); | 795 print('Unknown test option $name'); |
| 790 exit(1); | 796 exit(1); |
| 791 } | 797 } |
| 792 | 798 |
| 793 | 799 |
| 794 List<_TestOptionSpecification> _options; | 800 List<_TestOptionSpecification> _options; |
| 795 } | 801 } |
| OLD | NEW |