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