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 = const [ | 14 const List<String> defaultTestSelectors = const [ |
15 'samples', | 15 'samples', |
16 'standalone', | 16 'standalone', |
17 'corelib', | 17 'corelib', |
18 'co19', | 18 'co19', |
19 'language', | 19 'language', |
20 'isolate', | 20 'isolate', |
21 'vm', | 21 'vm', |
22 'html', | 22 'html', |
23 'benchmark_smoke', | 23 'benchmark_smoke', |
24 'utils', | 24 'utils', |
25 'lib', | 25 'lib', |
26 'pkg', | 26 'pkg', |
27 'analyze_library', | 27 'analyze_library', |
28 'service' | 28 'service', |
| 29 'observatory_ui' |
29 ]; | 30 ]; |
30 | 31 |
31 /** | 32 /** |
32 * Specification of a single test option. | 33 * Specification of a single test option. |
33 * | 34 * |
34 * The name of the specification is used as the key for the option in | 35 * The name of the specification is used as the key for the option in |
35 * the Map returned from the [TestOptionParser] parse method. | 36 * the Map returned from the [TestOptionParser] parse method. |
36 */ | 37 */ |
37 class _TestOptionSpecification { | 38 class _TestOptionSpecification { |
38 _TestOptionSpecification( | 39 _TestOptionSpecification( |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 if (option.keys.contains(name)) { | 900 if (option.keys.contains(name)) { |
900 return option; | 901 return option; |
901 } | 902 } |
902 } | 903 } |
903 print('Unknown test option $name'); | 904 print('Unknown test option $name'); |
904 exit(1); | 905 exit(1); |
905 } | 906 } |
906 | 907 |
907 List<_TestOptionSpecification> _options; | 908 List<_TestOptionSpecification> _options; |
908 } | 909 } |
OLD | NEW |