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 import 'dart:io'; | 5 import 'dart:io'; |
6 | 6 |
7 import 'configuration.dart'; | 7 import 'configuration.dart'; |
8 import 'drt_updater.dart'; | 8 import 'drt_updater.dart'; |
9 import 'path.dart'; | 9 import 'path.dart'; |
10 import 'utils.dart'; | 10 import 'utils.dart'; |
11 | 11 |
12 const _defaultTestSelectors = const [ | 12 const _defaultTestSelectors = const [ |
13 'samples', | 13 'samples', |
14 'standalone', | 14 'standalone', |
15 'corelib', | 15 'corelib', |
16 'corelib_2', | |
17 'co19', | 16 'co19', |
18 'language', | 17 'language', |
19 'language_2', | |
20 'isolate', | 18 'isolate', |
21 'vm', | 19 'vm', |
22 'html', | 20 'html', |
23 'benchmark_smoke', | 21 'benchmark_smoke', |
24 'utils', | 22 'utils', |
25 'lib', | 23 'lib', |
26 'lib_2', | |
27 'analyze_library', | 24 'analyze_library', |
28 'service', | 25 'service', |
29 'kernel', | 26 'kernel', |
30 'observatory_ui' | 27 'observatory_ui' |
31 ]; | 28 ]; |
32 | 29 |
33 /// Specifies a single command line option. | 30 /// Specifies a single command line option. |
34 /// | 31 /// |
35 /// The name of the specification is used as the key for the option in the Map | 32 /// The name of the specification is used as the key for the option in the Map |
36 /// returned from the [TestOptionParser] parse method. | 33 /// returned from the [TestOptionParser] parse method. |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 if (name == option.name) return option; | 766 if (name == option.name) return option; |
770 | 767 |
771 // Allow hyphens instead of underscores as the separator since they are | 768 // Allow hyphens instead of underscores as the separator since they are |
772 // more common for command line flags. | 769 // more common for command line flags. |
773 if (name == option.name.replaceAll("_", "-")) return option; | 770 if (name == option.name.replaceAll("_", "-")) return option; |
774 } | 771 } |
775 | 772 |
776 return null; | 773 return null; |
777 } | 774 } |
778 } | 775 } |
OLD | NEW |