| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 configs.extend(mode + '-8888' for mode in | 48 configs.extend(mode + '-8888' for mode in |
| 49 ['serialize', 'tiles_rt', 'pipe']) | 49 ['serialize', 'tiles_rt', 'pipe']) |
| 50 configs.append('tiles_rt-gpu') | 50 configs.append('tiles_rt-gpu') |
| 51 if 'ANGLE' in bot: | 51 if 'ANGLE' in bot: |
| 52 configs.append('angle') | 52 configs.append('angle') |
| 53 args.append('--config') | 53 args.append('--config') |
| 54 args.extend(configs) | 54 args.extend(configs) |
| 55 | 55 |
| 56 blacklist = [] | 56 blacklist = [] |
| 57 # This image is too large to be a texture for many GPUs. | 57 # This image is too large to be a texture for many GPUs. |
| 58 blacklist.extend('gpu _ PANO_20121023_214540.jpg'.split(' ')) | 58 blacklist.extend('gpu _ _ PANO_20121023_214540.jpg'.split(' ')) |
| 59 blacklist.extend('msaa _ PANO_20121023_214540.jpg'.split(' ')) | 59 blacklist.extend('msaa _ _ PANO_20121023_214540.jpg'.split(' ')) |
| 60 | 60 |
| 61 # Several of the newest version bmps fail on SkImageDecoder | 61 # Several of the newest version bmps fail on SkImageDecoder |
| 62 blacklist.extend('_ image pal8os2v2.bmp'.split(' ')) | 62 blacklist.extend('_ image decode pal8os2v2.bmp'.split(' ')) |
| 63 blacklist.extend('_ image pal8v4.bmp'.split(' ')) | 63 blacklist.extend('_ image decode pal8v4.bmp'.split(' ')) |
| 64 blacklist.extend('_ image pal8v5.bmp'.split(' ')) | 64 blacklist.extend('_ image decode pal8v5.bmp'.split(' ')) |
| 65 blacklist.extend('_ image rgb16-565.bmp'.split(' ')) | 65 blacklist.extend('_ image decode rgb16-565.bmp'.split(' ')) |
| 66 blacklist.extend('_ image rgb16-565pal.bmp'.split(' ')) | 66 blacklist.extend('_ image decode rgb16-565pal.bmp'.split(' ')) |
| 67 blacklist.extend('_ image rgb32-111110.bmp'.split(' ')) | 67 blacklist.extend('_ image decode rgb32-111110.bmp'.split(' ')) |
| 68 blacklist.extend('_ image rgb32bf.bmp'.split(' ')) | 68 blacklist.extend('_ image decode rgb32bf.bmp'.split(' ')) |
| 69 blacklist.extend('_ image rgba32.bmp'.split(' ')) | 69 blacklist.extend('_ image decode rgba32.bmp'.split(' ')) |
| 70 blacklist.extend('_ image rgba32abf.bmp'.split(' ')) | 70 blacklist.extend('_ image decode rgba32abf.bmp'.split(' ')) |
| 71 blacklist.extend('_ image rgb24largepal.bmp'.split(' ')) | 71 blacklist.extend('_ image decode rgb24largepal.bmp'.split(' ')) |
| 72 blacklist.extend('_ image pal8os2v2-16.bmp'.split(' ')) | 72 blacklist.extend('_ image decode pal8os2v2-16.bmp'.split(' ')) |
| 73 blacklist.extend('_ image pal8oversizepal.bmp'.split(' ')) | 73 blacklist.extend('_ image decode pal8oversizepal.bmp'.split(' ')) |
| 74 blacklist.extend('_ subset rgb24largepal.bmp'.split(' ')) | 74 blacklist.extend('_ image subset rgb24largepal.bmp'.split(' ')) |
| 75 blacklist.extend('_ subset pal8os2v2-16.bmp'.split(' ')) | 75 blacklist.extend('_ image subset pal8os2v2-16.bmp'.split(' ')) |
| 76 blacklist.extend('_ subset pal8oversizepal.bmp'.split(' ')) | 76 blacklist.extend('_ image subset pal8oversizepal.bmp'.split(' ')) |
| 77 | 77 |
| 78 # New ico files that fail on SkImageDecoder | 78 # New ico files that fail on SkImageDecoder |
| 79 blacklist.extend('_ image Hopstarter-Mac-Folders-Apple.ico'.split(' ')) | 79 blacklist.extend('_ image decode Hopstarter-Mac-Folders-Apple.ico'.split(' ')) |
| 80 | 80 |
| 81 # Leon doesn't care about this, so why run it? | 81 # Leon doesn't care about this, so why run it? |
| 82 if 'Win' in bot: | 82 if 'Win' in bot: |
| 83 blacklist.extend('_ image _'.split(' ')) | 83 blacklist.extend('_ image decode _'.split(' ')) |
| 84 blacklist.extend('_ subset _'.split(' ')) | 84 blacklist.extend('_ image subset _'.split(' ')) |
| 85 | 85 |
| 86 # Certain gm's on win7 gpu and pdf are never finishing and keeping the test | 86 # Certain gm's on win7 gpu and pdf are never finishing and keeping the test |
| 87 # running forever | 87 # running forever |
| 88 if 'Win7' in bot: | 88 if 'Win7' in bot: |
| 89 blacklist.extend('msaa16 gm colorwheelnative'.split(' ')) | 89 blacklist.extend('msaa16 gm _ colorwheelnative'.split(' ')) |
| 90 blacklist.extend('pdf gm fontmgr_iter_factory'.split(' ')) | 90 blacklist.extend('pdf gm _ fontmgr_iter_factory'.split(' ')) |
| 91 | 91 |
| 92 # Drawing SKPs or images into GPU canvases is a New Thing. | 92 # Drawing SKPs or images into GPU canvases is a New Thing. |
| 93 # It seems like we're running out of RAM on some Android bots, so start off | 93 # It seems like we're running out of RAM on some Android bots, so start off |
| 94 # with a very wide blacklist disabling all these tests on all Android bots. | 94 # with a very wide blacklist disabling all these tests on all Android bots. |
| 95 if 'Android' in bot: # skia:3255 | 95 if 'Android' in bot: # skia:3255 |
| 96 blacklist.extend('gpu skp _ gpu image _ gpu subset _'.split(' ')) | 96 blacklist.extend('gpu skp _ _ msaa skp _ _'.split(' ')) |
| 97 blacklist.extend('msaa skp _ msaa image _ gpu subset _'.split(' ')) | 97 blacklist.extend('gpu image decode _ msaa image decode _'.split(' ')) |
| 98 blacklist.extend('gpu image subset _ msaa image subset _'.split(' ')) |
| 98 | 99 |
| 99 if 'Valgrind' in bot: | 100 if 'Valgrind' in bot: |
| 100 # PDF + .webp -> jumps depending on uninitialized memory. skia:3505 | 101 # PDF + .webp -> jumps depending on uninitialized memory. skia:3505 |
| 101 blacklist.extend('pdf _ .webp'.split(' ')) | 102 blacklist.extend('pdf _ _ .webp'.split(' ')) |
| 102 # These take 18+ hours to run. | 103 # These take 18+ hours to run. |
| 103 blacklist.extend('pdf gm fontmgr_iter'.split(' ')) | 104 blacklist.extend('pdf gm _ fontmgr_iter'.split(' ')) |
| 104 blacklist.extend('pdf _ PANO_20121023_214540.jpg'.split(' ')) | 105 blacklist.extend('pdf _ _ PANO_20121023_214540.jpg'.split(' ')) |
| 105 blacklist.extend('pdf skp tabl_worldjournal.skp'.split(' ')) | 106 blacklist.extend('pdf skp _ tabl_worldjournal.skp'.split(' ')) |
| 106 | 107 |
| 107 if blacklist: | 108 if blacklist: |
| 108 args.append('--blacklist') | 109 args.append('--blacklist') |
| 109 args.extend(blacklist) | 110 args.extend(blacklist) |
| 110 | 111 |
| 111 match = [] | 112 match = [] |
| 112 if 'Valgrind' in bot: # skia:3021 | 113 if 'Valgrind' in bot: # skia:3021 |
| 113 match.append('~Threaded') | 114 match.append('~Threaded') |
| 114 if 'TSAN' in bot: # skia:3562 | 115 if 'TSAN' in bot: # skia:3562 |
| 115 match.append('~Math') | 116 match.append('~Math') |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 170 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 170 self_test() | 171 self_test() |
| 171 sys.exit(0) | 172 sys.exit(0) |
| 172 | 173 |
| 173 if len(sys.argv) != 3: | 174 if len(sys.argv) != 3: |
| 174 print usage | 175 print usage |
| 175 sys.exit(1) | 176 sys.exit(1) |
| 176 | 177 |
| 177 with open(sys.argv[1], 'w') as out: | 178 with open(sys.argv[1], 'w') as out: |
| 178 json.dump(get_args(sys.argv[2]), out) | 179 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |