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 'Tegra3' not in bot and |
| 45 'iOS' not in bot): |
45 if 'Android' in bot: | 46 if 'Android' in bot: |
46 configs.append('msaa4') | 47 configs.append('msaa4') |
47 else: | 48 else: |
48 configs.append('msaa16') | 49 configs.append('msaa16') |
49 # Runs out of memory on Android bots and Daisy. Everyone else seems fine. | 50 # Runs out of memory on Android bots and Daisy. Everyone else seems fine. |
50 if 'Android' not in bot and 'Daisy' not in bot: | 51 if 'Android' not in bot and 'Daisy' not in bot: |
51 configs.append('pdf') | 52 configs.append('pdf') |
52 | 53 |
53 # NP is running out of RAM when we run all these modes. skia:3255 | 54 # NP is running out of RAM when we run all these modes. skia:3255 |
54 if 'NexusPlayer' not in bot: | 55 if 'NexusPlayer' not in bot: |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 if 'Valgrind' in bot: | 121 if 'Valgrind' in bot: |
121 # PDF + .webp -> jumps depending on uninitialized memory. skia:3505 | 122 # PDF + .webp -> jumps depending on uninitialized memory. skia:3505 |
122 blacklist.extend('pdf _ _ .webp'.split(' ')) | 123 blacklist.extend('pdf _ _ .webp'.split(' ')) |
123 # These take 18+ hours to run. | 124 # These take 18+ hours to run. |
124 blacklist.extend('pdf gm _ fontmgr_iter'.split(' ')) | 125 blacklist.extend('pdf gm _ fontmgr_iter'.split(' ')) |
125 blacklist.extend('pdf _ _ PANO_20121023_214540.jpg'.split(' ')) | 126 blacklist.extend('pdf _ _ PANO_20121023_214540.jpg'.split(' ')) |
126 blacklist.extend('pdf skp _ worldjournal'.split(' ')) | 127 blacklist.extend('pdf skp _ worldjournal'.split(' ')) |
127 blacklist.extend('pdf skp _ desk_baidu.skp'.split(' ')) | 128 blacklist.extend('pdf skp _ desk_baidu.skp'.split(' ')) |
128 blacklist.extend('pdf skp _ desk_wikipedia.skp'.split(' ')) | 129 blacklist.extend('pdf skp _ desk_wikipedia.skp'.split(' ')) |
129 | 130 |
| 131 if 'iOS' in bot: |
| 132 blacklist.extend('gpu skp _ _ msaa skp _ _'.split(' ')) |
| 133 blacklist.extend('gpu image decode _ msaa image decode _'.split(' ')) |
| 134 blacklist.extend('gpu image subset _ msaa image subset _'.split(' ')) |
| 135 blacklist.extend('msaa16 gm _ tilemodesProcess'.split(' ')) |
| 136 |
130 if blacklist: | 137 if blacklist: |
131 args.append('--blacklist') | 138 args.append('--blacklist') |
132 args.extend(blacklist) | 139 args.extend(blacklist) |
133 | 140 |
134 match = [] | 141 match = [] |
135 if 'Valgrind' in bot: # skia:3021 | 142 if 'Valgrind' in bot: # skia:3021 |
136 match.append('~Threaded') | 143 match.append('~Threaded') |
137 if 'TSAN' in bot: # skia:3562 | 144 if 'TSAN' in bot: # skia:3562 |
138 match.append('~Math') | 145 match.append('~Math') |
139 | 146 |
140 if 'GalaxyS3' in bot: # skia:1699 | 147 if 'GalaxyS3' in bot: # skia:1699 |
141 match.append('~WritePixels') | 148 match.append('~WritePixels') |
142 | 149 |
143 # skia:3249: these images flakily don't decode on Android. | 150 # skia:3249: these images flakily don't decode on Android. |
144 if 'Android' in bot: | 151 if 'Android' in bot: |
145 match.append('~tabl_mozilla_0') | 152 match.append('~tabl_mozilla_0') |
146 match.append('~desk_yahoonews_0') | 153 match.append('~desk_yahoonews_0') |
147 | 154 |
148 if 'NexusPlayer' in bot: | 155 if 'NexusPlayer' in bot: |
149 match.append('~ResourceCache') | 156 match.append('~ResourceCache') |
150 | 157 |
| 158 if 'iOS' in bot: |
| 159 match.append('~WritePixels') |
| 160 |
151 if match: | 161 if match: |
152 args.append('--match') | 162 args.append('--match') |
153 args.extend(match) | 163 args.extend(match) |
154 | 164 |
155 return args | 165 return args |
156 cov_end = lineno() # Don't care about code coverage past here. | 166 cov_end = lineno() # Don't care about code coverage past here. |
157 | 167 |
158 | 168 |
159 def self_test(): | 169 def self_test(): |
160 import coverage # This way the bots don't need coverage.py to be installed. | 170 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': | 202 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
193 self_test() | 203 self_test() |
194 sys.exit(0) | 204 sys.exit(0) |
195 | 205 |
196 if len(sys.argv) != 3: | 206 if len(sys.argv) != 3: |
197 print usage | 207 print usage |
198 sys.exit(1) | 208 sys.exit(1) |
199 | 209 |
200 with open(sys.argv[1], 'w') as out: | 210 with open(sys.argv[1], 'w') as out: |
201 json.dump(get_args(sys.argv[2]), out) | 211 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |