| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 # NexusPlayer runs out of memory running RAW codec tests | |
| 159 if 'NexusPlayer' in bot: | |
| 160 r = ["arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw", | |
| 161 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW"] | |
| 162 for raw_ext in r: | |
| 163 blacklist.extend(('_ image _ .%s' % raw_ext).split(' ')) | |
| 164 | |
| 165 match = [] | 158 match = [] |
| 166 if 'Valgrind' in bot: # skia:3021 | 159 if 'Valgrind' in bot: # skia:3021 |
| 167 match.append('~Threaded') | 160 match.append('~Threaded') |
| 168 | 161 |
| 169 if 'GalaxyS3' in bot: # skia:1699 | 162 if 'GalaxyS3' in bot: # skia:1699 |
| 170 match.append('~WritePixels') | 163 match.append('~WritePixels') |
| 171 | 164 |
| 172 if 'AndroidOne' in bot: # skia:4711 | 165 if 'AndroidOne' in bot: # skia:4711 |
| 173 match.append('~WritePixels') | 166 match.append('~WritePixels') |
| 174 | 167 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 192 blacklist.extend(('_ image _ .bmp').split(' ')) # I8 .bmp color tables | 185 blacklist.extend(('_ image _ .bmp').split(' ')) # I8 .bmp color tables |
| 193 | 186 |
| 194 if blacklist: | 187 if blacklist: |
| 195 args.append('--blacklist') | 188 args.append('--blacklist') |
| 196 args.extend(blacklist) | 189 args.extend(blacklist) |
| 197 | 190 |
| 198 if match: | 191 if match: |
| 199 args.append('--match') | 192 args.append('--match') |
| 200 args.extend(match) | 193 args.extend(match) |
| 201 | 194 |
| 195 # These bots run out of memory running RAW codec tests. Do not run them in |
| 196 # parallel |
| 197 if 'NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot: |
| 198 args.append('--noRAW_threading') |
| 199 |
| 202 return args | 200 return args |
| 203 cov_end = lineno() # Don't care about code coverage past here. | 201 cov_end = lineno() # Don't care about code coverage past here. |
| 204 | 202 |
| 205 | 203 |
| 206 def self_test(): | 204 def self_test(): |
| 207 import coverage # This way the bots don't need coverage.py to be installed. | 205 import coverage # This way the bots don't need coverage.py to be installed. |
| 208 args = {} | 206 args = {} |
| 209 cases = [ | 207 cases = [ |
| 210 'Pretend-iOS-Bot', | 208 'Pretend-iOS-Bot', |
| 211 'Test-Android-GCC-AndroidOne-GPU-Mali400MP2-Arm7-Release', | 209 'Test-Android-GCC-AndroidOne-GPU-Mali400MP2-Arm7-Release', |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 242 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 245 self_test() | 243 self_test() |
| 246 sys.exit(0) | 244 sys.exit(0) |
| 247 | 245 |
| 248 if len(sys.argv) != 3: | 246 if len(sys.argv) != 3: |
| 249 print usage | 247 print usage |
| 250 sys.exit(1) | 248 sys.exit(1) |
| 251 | 249 |
| 252 with open(sys.argv[1], 'w') as out: | 250 with open(sys.argv[1], 'w') as out: |
| 253 json.dump(get_args(sys.argv[2]), out) | 251 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |