Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: tools/dm_flags.py

Issue 1681553003: Optionally run RAW images serially (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove ifdefs Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/dm_flags.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 blacklist.extend(['sp-8888', 'gm', '_', test]) 148 blacklist.extend(['sp-8888', 'gm', '_', test])
149 # skia:4703 149 # skia:4703
150 for test in ['image-cacherator-from-picture', 150 for test in ['image-cacherator-from-picture',
151 'image-cacherator-from-raster', 151 'image-cacherator-from-raster',
152 'image-cacherator-from-ctable']: 152 'image-cacherator-from-ctable']:
153 blacklist.extend([ 'sp-8888', 'gm', '_', test]) 153 blacklist.extend([ 'sp-8888', 'gm', '_', test])
154 blacklist.extend([ 'pic-8888', 'gm', '_', test]) 154 blacklist.extend([ 'pic-8888', 'gm', '_', test])
155 blacklist.extend([ '2ndpic-8888', 'gm', '_', test]) 155 blacklist.extend([ '2ndpic-8888', 'gm', '_', test])
156 blacklist.extend(['serialize-8888', 'gm', '_', test]) 156 blacklist.extend(['serialize-8888', 'gm', '_', test])
157 157
158 # Extensions for RAW images
158 r = ["arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw", 159 r = ["arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw",
159 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW"] 160 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW"]
160 161
161 # NexusPlayer runs out of memory running RAW codec tests
162 if 'NexusPlayer' in bot:
163 for raw_ext in r:
164 blacklist.extend(('_ image _ .%s' % raw_ext).split(' '))
165
166 # skbug.com/4888 162 # skbug.com/4888
167 # Blacklist RAW images on GPU tests until we can resolve failures 163 # Blacklist RAW images on GPU tests until we can resolve failures
168 if 'GPU' in bot: 164 if 'GPU' in bot:
169 for raw_ext in r: 165 for raw_ext in r:
170 blacklist.extend(('_ image _ .%s' % raw_ext).split(' ')) 166 blacklist.extend(('_ image _ .%s' % raw_ext).split(' '))
171 167
172 match = [] 168 match = []
173 if 'Valgrind' in bot: # skia:3021 169 if 'Valgrind' in bot: # skia:3021
174 match.append('~Threaded') 170 match.append('~Threaded')
175 171
(...skipping 23 matching lines...) Expand all
199 blacklist.extend(('_ image _ .bmp').split(' ')) # I8 .bmp color tables 195 blacklist.extend(('_ image _ .bmp').split(' ')) # I8 .bmp color tables
200 196
201 if blacklist: 197 if blacklist:
202 args.append('--blacklist') 198 args.append('--blacklist')
203 args.extend(blacklist) 199 args.extend(blacklist)
204 200
205 if match: 201 if match:
206 args.append('--match') 202 args.append('--match')
207 args.extend(match) 203 args.extend(match)
208 204
205 # These bots run out of memory running RAW codec tests. Do not run them in
206 # parallel
207 if 'NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot:
208 args.append('--noRAW_threading')
209
209 return args 210 return args
210 cov_end = lineno() # Don't care about code coverage past here. 211 cov_end = lineno() # Don't care about code coverage past here.
211 212
212 213
213 def self_test(): 214 def self_test():
214 import coverage # This way the bots don't need coverage.py to be installed. 215 import coverage # This way the bots don't need coverage.py to be installed.
215 args = {} 216 args = {}
216 cases = [ 217 cases = [
217 'Pretend-iOS-Bot', 218 'Pretend-iOS-Bot',
218 'Test-Android-GCC-AndroidOne-GPU-Mali400MP2-Arm7-Release', 219 'Test-Android-GCC-AndroidOne-GPU-Mali400MP2-Arm7-Release',
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 if len(sys.argv) == 2 and sys.argv[1] == 'test': 252 if len(sys.argv) == 2 and sys.argv[1] == 'test':
252 self_test() 253 self_test()
253 sys.exit(0) 254 sys.exit(0)
254 255
255 if len(sys.argv) != 3: 256 if len(sys.argv) != 3:
256 print usage 257 print usage
257 sys.exit(1) 258 sys.exit(1)
258 259
259 with open(sys.argv[1], 'w') as out: 260 with open(sys.argv[1], 'w') as out:
260 json.dump(get_args(sys.argv[2]), out) 261 json.dump(get_args(sys.argv[2]), out)
OLDNEW
« no previous file with comments | « tools/dm_flags.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698