OLD | NEW |
1 # Copyright (C) 2011 Google Inc. All rights reserved. | 1 # Copyright (C) 2011 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 20 matching lines...) Expand all Loading... |
31 # In this dictionary, each item stores: | 31 # In this dictionary, each item stores: |
32 # * port_name -- a fully qualified port name | 32 # * port_name -- a fully qualified port name |
33 # * rebaseline_override_dir -- (optional) directory to put baselines in instead
of where you would normally put them. | 33 # * rebaseline_override_dir -- (optional) directory to put baselines in instead
of where you would normally put them. |
34 # This is useful when we don't have bots that cover particular configuratio
ns; so, e.g., you might | 34 # This is useful when we don't have bots that cover particular configuratio
ns; so, e.g., you might |
35 # support mac-mountainlion but not have a mac-mountainlion bot yet, so you'
d want to put the mac-lion | 35 # support mac-mountainlion but not have a mac-mountainlion bot yet, so you'
d want to put the mac-lion |
36 # results into platform/mac temporarily. | 36 # results into platform/mac temporarily. |
37 # * specifiers -- TestExpectation specifiers for that config. Valid values are f
ound in | 37 # * specifiers -- TestExpectation specifiers for that config. Valid values are f
ound in |
38 # TestExpectationsParser._configuration_tokens_list | 38 # TestExpectationsParser._configuration_tokens_list |
39 | 39 |
40 _exact_matches = { | 40 _exact_matches = { |
41 "WebKit Win7": {"port_name": "win-win7", "specifiers": ['Win7', 'Release']}, | 41 "WebKit Win7": {"port_name": "win-win7", |
42 "WebKit Win7 (dbg)": {"port_name": "win-win7", "specifiers": ['Win7', 'Debug
']}, | 42 "specifiers": ['Win7', 'Release']}, |
43 "WebKit Win10": {"port_name": "win-win10", "specifiers": ['Win10', 'Release'
]}, | 43 "WebKit Win7 (dbg)": {"port_name": "win-win7", |
| 44 "specifiers": ['Win7', 'Debug']}, |
| 45 "WebKit Win10": {"port_name": "win-win10", |
| 46 "specifiers": ['Win10', 'Release']}, |
44 # FIXME: Rename this to 'WebKit Linux Precise' | 47 # FIXME: Rename this to 'WebKit Linux Precise' |
45 "WebKit Linux": {"port_name": "linux-precise", "specifiers": ['Precise', 'Re
lease']}, | 48 "WebKit Linux": {"port_name": "linux-precise", |
46 "WebKit Linux Trusty": {"port_name": "linux-trusty", "specifiers": ['Trusty'
, 'Release']}, | 49 "specifiers": ['Precise', 'Release']}, |
47 "WebKit Linux (dbg)": {"port_name": "linux-precise", "specifiers": ['Precise
', 'Debug']}, | 50 "WebKit Linux Trusty": {"port_name": "linux-trusty", |
48 "WebKit Mac10.9": {"port_name": "mac-mac10.9", "specifiers": ['Mac10.9', 'Re
lease']}, | 51 "specifiers": ['Trusty', 'Release']}, |
49 "WebKit Mac10.10": {"port_name": "mac-mac10.10", "specifiers": ['Mac10.10',
'Release']}, | 52 "WebKit Linux (dbg)": {"port_name": "linux-precise", |
50 "WebKit Mac10.11": {"port_name": "mac-mac10.11", "specifiers": ['10.11', 'Re
lease']}, | 53 "specifiers": ['Precise', 'Debug']}, |
51 "WebKit Mac10.11 (dbg)": {"port_name": "mac-mac10.11", "specifiers": ['10.11
', 'Debug']}, | 54 "WebKit Mac10.9": {"port_name": "mac-mac10.9", |
52 "WebKit Mac10.11 (retina)": {"port_name": "mac-retina", "specifiers": ['Reti
na', 'Release']}, | 55 "specifiers": ['Mac10.9', 'Release']}, |
53 "WebKit Android (Nexus4)": {"port_name": "android", "specifiers": ['Android'
, 'Release']}, | 56 "WebKit Mac10.10": {"port_name": "mac-mac10.10", |
| 57 "specifiers": ['Mac10.10', 'Release']}, |
| 58 "WebKit Mac10.11": {"port_name": "mac-mac10.11", |
| 59 "specifiers": ['10.11', 'Release']}, |
| 60 "WebKit Mac10.11 (dbg)": {"port_name": "mac-mac10.11", |
| 61 "specifiers": ['10.11', 'Debug']}, |
| 62 "WebKit Mac10.11 (retina)": {"port_name": "mac-retina", |
| 63 "specifiers": ['Retina', 'Release']}, |
| 64 "WebKit Android (Nexus4)": {"port_name": "android", |
| 65 "specifiers": ['Android', 'Release']}, |
54 } | 66 } |
55 | 67 |
56 | 68 _ports_without_builders = [] |
57 _ports_without_builders = [ | |
58 ] | |
59 | 69 |
60 | 70 |
61 def builder_path_from_name(builder_name): | 71 def builder_path_from_name(builder_name): |
62 return re.sub(r'[\s().]', '_', builder_name) | 72 return re.sub(r'[\s().]', '_', builder_name) |
63 | 73 |
64 | 74 |
65 def all_builder_names(): | 75 def all_builder_names(): |
66 return sorted(set(_exact_matches.keys())) | 76 return sorted(set(_exact_matches.keys())) |
67 | 77 |
68 | 78 |
(...skipping 19 matching lines...) Expand all Loading... |
88 if builder_info['port_name'] == target_port_name: | 98 if builder_info['port_name'] == target_port_name: |
89 if 'dbg' in builder_name: | 99 if 'dbg' in builder_name: |
90 debug_builder_name = builder_name | 100 debug_builder_name = builder_name |
91 else: | 101 else: |
92 return builder_name | 102 return builder_name |
93 return debug_builder_name | 103 return debug_builder_name |
94 | 104 |
95 | 105 |
96 def builder_path_for_port_name(port_name): | 106 def builder_path_for_port_name(port_name): |
97 builder_path_from_name(builder_name_for_port_name(port_name)) | 107 builder_path_from_name(builder_name_for_port_name(port_name)) |
OLD | NEW |