OLD | NEW |
---|---|
1 # | 1 # |
2 # Copyright 2015 Google Inc. | 2 # Copyright 2015 Google Inc. |
3 # | 3 # |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 # | 6 # |
7 | 7 |
8 #!/usr/bin/env python | 8 #!/usr/bin/env python |
9 | 9 |
10 usage = ''' | 10 usage = ''' |
(...skipping 23 matching lines...) Expand all Loading... | |
34 if 'TegraK1' in bot or 'GTX550Ti' in bot or 'GTX660' in bot or 'GT610' in bot: | 34 if 'TegraK1' in bot or 'GTX550Ti' in bot or 'GTX660' in bot or 'GT610' in bot: |
35 if 'Android' in bot: | 35 if 'Android' in bot: |
36 configs.append('nvprmsaa4') | 36 configs.append('nvprmsaa4') |
37 else: | 37 else: |
38 configs.append('nvprmsaa16') | 38 configs.append('nvprmsaa16') |
39 | 39 |
40 # The S4 crashes and the NP produces a long error stream when we run with | 40 # The S4 crashes and the NP produces a long error stream when we run with |
41 # MSAA. The Tegra2 and Tegra3 just don't support it. | 41 # MSAA. The Tegra2 and Tegra3 just don't support it. |
42 if ('GalaxyS4' not in bot and | 42 if ('GalaxyS4' not in bot and |
43 'NexusPlayer' not in bot and | 43 'NexusPlayer' not in bot and |
44 'Tegra3' not in bot): | 44 'Tegra2' not in bot and |
borenet
2015/05/05 12:59:02
Intentional?
stephana-chromium
2015/05/05 13:30:25
Must have been added during a previous merge. Remo
| |
45 'Tegra3' not in bot and | |
46 'iOS' not in bot): | |
45 if 'Android' in bot: | 47 if 'Android' in bot: |
46 configs.append('msaa4') | 48 configs.append('msaa4') |
47 else: | 49 else: |
48 configs.append('msaa16') | 50 configs.append('msaa16') |
49 # Runs out of memory on Android bots and Daisy. Everyone else seems fine. | 51 # Runs out of memory on Android bots and Daisy. Everyone else seems fine. |
50 if 'Android' not in bot and 'Daisy' not in bot: | 52 if 'Android' not in bot and 'Daisy' not in bot: |
51 configs.append('pdf') | 53 configs.append('pdf') |
52 | 54 |
53 # NP is running out of RAM when we run all these modes. skia:3255 | 55 # NP is running out of RAM when we run all these modes. skia:3255 |
54 if 'NexusPlayer' not in bot: | 56 if 'NexusPlayer' not in bot: |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
120 if 'Valgrind' in bot: | 122 if 'Valgrind' in bot: |
121 # PDF + .webp -> jumps depending on uninitialized memory. skia:3505 | 123 # PDF + .webp -> jumps depending on uninitialized memory. skia:3505 |
122 blacklist.extend('pdf _ _ .webp'.split(' ')) | 124 blacklist.extend('pdf _ _ .webp'.split(' ')) |
123 # These take 18+ hours to run. | 125 # These take 18+ hours to run. |
124 blacklist.extend('pdf gm _ fontmgr_iter'.split(' ')) | 126 blacklist.extend('pdf gm _ fontmgr_iter'.split(' ')) |
125 blacklist.extend('pdf _ _ PANO_20121023_214540.jpg'.split(' ')) | 127 blacklist.extend('pdf _ _ PANO_20121023_214540.jpg'.split(' ')) |
126 blacklist.extend('pdf skp _ worldjournal'.split(' ')) | 128 blacklist.extend('pdf skp _ worldjournal'.split(' ')) |
127 blacklist.extend('pdf skp _ desk_baidu.skp'.split(' ')) | 129 blacklist.extend('pdf skp _ desk_baidu.skp'.split(' ')) |
128 blacklist.extend('pdf skp _ desk_wikipedia.skp'.split(' ')) | 130 blacklist.extend('pdf skp _ desk_wikipedia.skp'.split(' ')) |
129 | 131 |
132 if 'iOS' in bot: | |
133 blacklist.extend('gpu skp _ _ msaa skp _ _'.split(' ')) | |
134 blacklist.extend('gpu image decode _ msaa image decode _'.split(' ')) | |
135 blacklist.extend('gpu image subset _ msaa image subset _'.split(' ')) | |
136 blacklist.extend('msaa16 gm _ tilemodesProcess'.split(' ')) | |
137 | |
130 if blacklist: | 138 if blacklist: |
131 args.append('--blacklist') | 139 args.append('--blacklist') |
132 args.extend(blacklist) | 140 args.extend(blacklist) |
133 | 141 |
134 match = [] | 142 match = [] |
135 if 'Valgrind' in bot: # skia:3021 | 143 if 'Valgrind' in bot: # skia:3021 |
136 match.append('~Threaded') | 144 match.append('~Threaded') |
137 if 'TSAN' in bot: # skia:3562 | 145 if 'TSAN' in bot: # skia:3562 |
138 match.append('~Math') | 146 match.append('~Math') |
139 | 147 |
140 if 'GalaxyS3' in bot: # skia:1699 | 148 if 'GalaxyS3' in bot: # skia:1699 |
141 match.append('~WritePixels') | 149 match.append('~WritePixels') |
142 | 150 |
143 # skia:3249: these images flakily don't decode on Android. | 151 # skia:3249: these images flakily don't decode on Android. |
144 if 'Android' in bot: | 152 if 'Android' in bot: |
145 match.append('~tabl_mozilla_0') | 153 match.append('~tabl_mozilla_0') |
146 match.append('~desk_yahoonews_0') | 154 match.append('~desk_yahoonews_0') |
147 | 155 |
148 if 'NexusPlayer' in bot: | 156 if 'NexusPlayer' in bot: |
149 match.append('~ResourceCache') | 157 match.append('~ResourceCache') |
150 | 158 |
159 if 'iOS' in bot: | |
160 match.append('~WritePixels') | |
161 | |
151 if match: | 162 if match: |
152 args.append('--match') | 163 args.append('--match') |
153 args.extend(match) | 164 args.extend(match) |
154 | 165 |
155 return args | 166 return args |
156 cov_end = lineno() # Don't care about code coverage past here. | 167 cov_end = lineno() # Don't care about code coverage past here. |
157 | 168 |
158 | 169 |
159 def self_test(): | 170 def self_test(): |
160 import coverage # This way the bots don't need coverage.py to be installed. | 171 import coverage # This way the bots don't need coverage.py to be installed. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
192 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 203 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
193 self_test() | 204 self_test() |
194 sys.exit(0) | 205 sys.exit(0) |
195 | 206 |
196 if len(sys.argv) != 3: | 207 if len(sys.argv) != 3: |
197 print usage | 208 print usage |
198 sys.exit(1) | 209 sys.exit(1) |
199 | 210 |
200 with open(sys.argv[1], 'w') as out: | 211 with open(sys.argv[1], 'w') as out: |
201 json.dump(get_args(sys.argv[2]), out) | 212 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |