| 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"; |
| 11 import "compiler_configuration.dart" show CompilerConfiguration; | 11 import "compiler_configuration.dart" show CompilerConfiguration; |
| 12 import "runtime_configuration.dart" show RuntimeConfiguration; | 12 import "runtime_configuration.dart" show RuntimeConfiguration; |
| 13 | 13 |
| 14 const List<String> defaultTestSelectors = | 14 const List<String> defaultTestSelectors = |
| 15 const ['samples', 'standalone', 'corelib', 'co19', 'language', | 15 const ['samples', 'standalone', 'corelib', 'co19', 'language', |
| 16 'isolate', 'vm', 'html', 'benchmark_smoke', | 16 'isolate', 'vm', 'html', 'benchmark_smoke', |
| 17 'utils', 'lib', 'pkg', 'analyze_library', 'service']; | 17 'utils', 'lib', 'pkg', 'analyze_library', 'service', |
| 18 'pkg_tested']; |
| 18 | 19 |
| 19 /** | 20 /** |
| 20 * Specification of a single test option. | 21 * Specification of a single test option. |
| 21 * | 22 * |
| 22 * The name of the specification is used as the key for the option in | 23 * The name of the specification is used as the key for the option in |
| 23 * the Map returned from the [TestOptionParser] parse method. | 24 * the Map returned from the [TestOptionParser] parse method. |
| 24 */ | 25 */ |
| 25 class _TestOptionSpecification { | 26 class _TestOptionSpecification { |
| 26 _TestOptionSpecification(this.name, | 27 _TestOptionSpecification(this.name, |
| 27 this.description, | 28 this.description, |
| (...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 return option; | 880 return option; |
| 880 } | 881 } |
| 881 } | 882 } |
| 882 print('Unknown test option $name'); | 883 print('Unknown test option $name'); |
| 883 exit(1); | 884 exit(1); |
| 884 } | 885 } |
| 885 | 886 |
| 886 | 887 |
| 887 List<_TestOptionSpecification> _options; | 888 List<_TestOptionSpecification> _options; |
| 888 } | 889 } |
| OLD | NEW |