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 13 matching lines...) Expand all Loading... |
24 caller = inspect.stack()[1] # Up one level to our caller. | 24 caller = inspect.stack()[1] # Up one level to our caller. |
25 return inspect.getframeinfo(caller[0]).lineno | 25 return inspect.getframeinfo(caller[0]).lineno |
26 | 26 |
27 | 27 |
28 cov_start = lineno()+1 # We care about coverage starting just past this def. | 28 cov_start = lineno()+1 # We care about coverage starting just past this def. |
29 def get_args(bot): | 29 def get_args(bot): |
30 args = [] | 30 args = [] |
31 | 31 |
32 configs = ['565', '8888', 'gpu'] | 32 configs = ['565', '8888', 'gpu'] |
33 | 33 |
| 34 if 'Android' not in bot: |
| 35 configs.extend(('upright-matrix-8888', 'upright-matrix-gpu')) |
| 36 args.extend('--matrix 0 1 1 0'.split(' ')) |
| 37 |
| 38 if '-GCE-' in bot: |
| 39 configs.append('sp-8888') |
| 40 configs.extend(['twice-8888', '2ndpic-8888']) |
| 41 configs.extend(['remote-8888', 'remote_cache-8888']) |
| 42 |
34 if '-TSAN' not in bot: | 43 if '-TSAN' not in bot: |
35 if ('TegraK1' in bot or | 44 if ('TegraK1' in bot or |
36 'GTX550Ti' in bot or | 45 'GTX550Ti' in bot or |
37 'GTX660' in bot or | 46 'GTX660' in bot or |
38 'GT610' in bot): | 47 'GT610' in bot): |
39 if 'Android' in bot: | 48 if 'Android' in bot: |
40 configs.append('nvprmsaa4') | 49 configs.append('nvprmsaa4') |
41 else: | 50 else: |
42 configs.append('nvprmsaa16') | 51 configs.append('nvprmsaa16') |
43 | 52 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 'path_stroke_with_zero_length', | 134 'path_stroke_with_zero_length', |
126 'textblobgeometrychange', | 135 'textblobgeometrychange', |
127 'verylargebitmap', # Windows only. | 136 'verylargebitmap', # Windows only. |
128 'verylarge_picture_image']: # Windows only. | 137 'verylarge_picture_image']: # Windows only. |
129 blacklist.extend(['serialize-8888', 'gm', '_', test]) | 138 blacklist.extend(['serialize-8888', 'gm', '_', test]) |
130 # skia:4769 | 139 # skia:4769 |
131 for test in ['blend', | 140 for test in ['blend', |
132 'drawfilter', | 141 'drawfilter', |
133 'path_stroke_with_zero_length', | 142 'path_stroke_with_zero_length', |
134 'textblobgeometrychange']: | 143 'textblobgeometrychange']: |
135 blacklist.extend(['pic-8888', 'gm', '_', test]) | 144 blacklist.extend([ 'sp-8888', 'gm', '_', test]) |
| 145 blacklist.extend([ 'pic-8888', 'gm', '_', test]) |
| 146 blacklist.extend(['2ndpic-8888', 'gm', '_', test]) |
| 147 for test in ['patch_primitive']: |
| 148 blacklist.extend(['sp-8888', 'gm', '_', test]) |
136 # skia:4703 | 149 # skia:4703 |
137 for test in ['image-cacherator-from-picture', | 150 for test in ['image-cacherator-from-picture', |
138 'image-cacherator-from-raster', | 151 'image-cacherator-from-raster', |
139 'image-cacherator-from-ctable']: | 152 'image-cacherator-from-ctable']: |
| 153 blacklist.extend([ 'sp-8888', 'gm', '_', test]) |
140 blacklist.extend([ 'pic-8888', 'gm', '_', test]) | 154 blacklist.extend([ 'pic-8888', 'gm', '_', test]) |
| 155 blacklist.extend([ '2ndpic-8888', 'gm', '_', test]) |
141 blacklist.extend(['serialize-8888', 'gm', '_', test]) | 156 blacklist.extend(['serialize-8888', 'gm', '_', test]) |
142 | 157 |
143 # Extensions for RAW images | 158 # Extensions for RAW images |
144 r = ["arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw", | 159 r = ["arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw", |
145 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW"] | 160 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW"] |
146 | 161 |
147 # skbug.com/4888 | 162 # skbug.com/4888 |
148 # Blacklist RAW images on GPU tests until we can resolve failures | 163 # Blacklist RAW images on GPU tests until we can resolve failures |
149 if 'GPU' in bot: | 164 if 'GPU' in bot: |
150 for raw_ext in r: | 165 for raw_ext in r: |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 249 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
235 self_test() | 250 self_test() |
236 sys.exit(0) | 251 sys.exit(0) |
237 | 252 |
238 if len(sys.argv) != 3: | 253 if len(sys.argv) != 3: |
239 print usage | 254 print usage |
240 sys.exit(1) | 255 sys.exit(1) |
241 | 256 |
242 with open(sys.argv[1], 'w') as out: | 257 with open(sys.argv[1], 'w') as out: |
243 json.dump(get_args(sys.argv[2]), out) | 258 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |