| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 blacklist.extend('_ image decode rgba32abf.bmp'.split(' ')) | 99 blacklist.extend('_ image decode rgba32abf.bmp'.split(' ')) |
| 100 blacklist.extend('_ image decode rgb24largepal.bmp'.split(' ')) | 100 blacklist.extend('_ image decode rgb24largepal.bmp'.split(' ')) |
| 101 blacklist.extend('_ image decode pal8os2v2-16.bmp'.split(' ')) | 101 blacklist.extend('_ image decode pal8os2v2-16.bmp'.split(' ')) |
| 102 blacklist.extend('_ image decode pal8oversizepal.bmp'.split(' ')) | 102 blacklist.extend('_ image decode pal8oversizepal.bmp'.split(' ')) |
| 103 blacklist.extend('_ image decode pal4rletrns.bmp'.split(' ')) | 103 blacklist.extend('_ image decode pal4rletrns.bmp'.split(' ')) |
| 104 blacklist.extend('_ image decode pal8rletrns.bmp'.split(' ')) | 104 blacklist.extend('_ image decode pal8rletrns.bmp'.split(' ')) |
| 105 blacklist.extend('_ image decode 4bpp-pixeldata-cropped.bmp'.split(' ')) | 105 blacklist.extend('_ image decode 4bpp-pixeldata-cropped.bmp'.split(' ')) |
| 106 blacklist.extend('_ image decode 8bpp-pixeldata-cropped.bmp'.split(' ')) | 106 blacklist.extend('_ image decode 8bpp-pixeldata-cropped.bmp'.split(' ')) |
| 107 blacklist.extend('_ image decode 24bpp-pixeldata-cropped.bmp'.split(' ')) | 107 blacklist.extend('_ image decode 24bpp-pixeldata-cropped.bmp'.split(' ')) |
| 108 blacklist.extend('_ image decode 32bpp-pixeldata-cropped.bmp'.split(' ')) | 108 blacklist.extend('_ image decode 32bpp-pixeldata-cropped.bmp'.split(' ')) |
| 109 blacklist.extend('_ image subset rgb24largepal.bmp'.split(' ')) | 109 blacklist.extend('_ image decode testcase7.bmp'.split(' ')) |
| 110 blacklist.extend('_ image subset pal8os2v2-16.bmp'.split(' ')) | |
| 111 blacklist.extend('_ image subset pal8oversizepal.bmp'.split(' ')) | |
| 112 blacklist.extend('_ image subset 4bpp-pixeldata-cropped.bmp'.split(' ')) | |
| 113 blacklist.extend('_ image subset 8bpp-pixeldata-cropped.bmp'.split(' ')) | |
| 114 blacklist.extend('_ image subset 24bpp-pixeldata-cropped.bmp'.split(' ')) | |
| 115 blacklist.extend('_ image subset 32bpp-pixeldata-cropped.bmp'.split(' ')) | |
| 116 | 110 |
| 117 # New ico files that fail on SkImageDecoder | 111 # New ico files that fail on SkImageDecoder |
| 118 blacklist.extend('_ image decode Hopstarter-Mac-Folders-Apple.ico'.split(' ')) | 112 blacklist.extend('_ image decode Hopstarter-Mac-Folders-Apple.ico'.split(' ')) |
| 119 | 113 |
| 120 # Incomplete image tests that fail on SkImageDecoder | 114 # Incomplete image tests that fail on SkImageDecoder |
| 121 blacklist.extend('_ image decode inc0.gif'.split(' ')) | 115 blacklist.extend('_ image decode inc0.gif'.split(' ')) |
| 122 blacklist.extend('_ image decode inc1.gif'.split(' ')) | 116 blacklist.extend('_ image decode inc1.gif'.split(' ')) |
| 123 blacklist.extend('_ image decode incInterlaced.gif'.split(' ')) | 117 blacklist.extend('_ image decode incInterlaced.gif'.split(' ')) |
| 124 blacklist.extend('_ image decode inc0.jpg'.split(' ')) | 118 blacklist.extend('_ image decode inc0.jpg'.split(' ')) |
| 125 blacklist.extend('_ image decode incGray.jpg'.split(' ')) | 119 blacklist.extend('_ image decode incGray.jpg'.split(' ')) |
| 126 blacklist.extend('_ image decode inc0.wbmp'.split(' ')) | 120 blacklist.extend('_ image decode inc0.wbmp'.split(' ')) |
| 127 blacklist.extend('_ image decode inc1.wbmp'.split(' ')) | 121 blacklist.extend('_ image decode inc1.wbmp'.split(' ')) |
| 128 blacklist.extend('_ image decode inc0.webp'.split(' ')) | 122 blacklist.extend('_ image decode inc0.webp'.split(' ')) |
| 129 blacklist.extend('_ image decode inc1.webp'.split(' ')) | 123 blacklist.extend('_ image decode inc1.webp'.split(' ')) |
| 130 blacklist.extend('_ image decode inc0.ico'.split(' ')) | 124 blacklist.extend('_ image decode inc0.ico'.split(' ')) |
| 131 blacklist.extend('_ image decode inc1.ico'.split(' ')) | 125 blacklist.extend('_ image decode inc1.ico'.split(' ')) |
| 132 blacklist.extend('_ image decode inc0.png'.split(' ')) | 126 blacklist.extend('_ image decode inc0.png'.split(' ')) |
| 133 blacklist.extend('_ image decode inc1.png'.split(' ')) | 127 blacklist.extend('_ image decode inc1.png'.split(' ')) |
| 134 blacklist.extend('_ image decode inc2.png'.split(' ')) | 128 blacklist.extend('_ image decode inc2.png'.split(' ')) |
| 135 blacklist.extend('_ image decode inc12.png'.split(' ')) | 129 blacklist.extend('_ image decode inc12.png'.split(' ')) |
| 136 blacklist.extend('_ image decode inc13.png'.split(' ')) | 130 blacklist.extend('_ image decode inc13.png'.split(' ')) |
| 137 blacklist.extend('_ image decode inc14.png'.split(' ')) | 131 blacklist.extend('_ image decode inc14.png'.split(' ')) |
| 138 blacklist.extend('_ image subset inc0.webp'.split(' ')) | |
| 139 blacklist.extend('_ image subset inc1.webp'.split(' ')) | |
| 140 | 132 |
| 141 # Leon doesn't care about this, so why run it? | 133 # Leon doesn't care about this, so why run it? |
| 142 if 'Win' in bot: | 134 if 'Win' in bot: |
| 143 blacklist.extend('_ image decode _'.split(' ')) | 135 blacklist.extend('_ image decode _'.split(' ')) |
| 144 blacklist.extend('_ image subset _'.split(' ')) | |
| 145 | 136 |
| 146 # Certain gm's on win7 gpu and pdf are never finishing and keeping the test | 137 # Certain gm's on win7 gpu and pdf are never finishing and keeping the test |
| 147 # running forever | 138 # running forever |
| 148 if 'Win7' in bot: | 139 if 'Win7' in bot: |
| 149 blacklist.extend('msaa16 gm _ colorwheelnative'.split(' ')) | 140 blacklist.extend('msaa16 gm _ colorwheelnative'.split(' ')) |
| 150 blacklist.extend('pdf gm _ fontmgr_iter_factory'.split(' ')) | 141 blacklist.extend('pdf gm _ fontmgr_iter_factory'.split(' ')) |
| 151 | 142 |
| 152 if 'Valgrind' in bot: | 143 if 'Valgrind' in bot: |
| 153 # PDF + .webp -> jumps depending on uninitialized memory. skia:3505 | 144 # PDF + .webp -> jumps depending on uninitialized memory. skia:3505 |
| 154 blacklist.extend('pdf _ _ .webp'.split(' ')) | 145 blacklist.extend('pdf _ _ .webp'.split(' ')) |
| 155 # These take 18+ hours to run. | 146 # These take 18+ hours to run. |
| 156 blacklist.extend('pdf gm _ fontmgr_iter'.split(' ')) | 147 blacklist.extend('pdf gm _ fontmgr_iter'.split(' ')) |
| 157 blacklist.extend('pdf _ _ PANO_20121023_214540.jpg'.split(' ')) | 148 blacklist.extend('pdf _ _ PANO_20121023_214540.jpg'.split(' ')) |
| 158 blacklist.extend('pdf skp _ worldjournal'.split(' ')) | 149 blacklist.extend('pdf skp _ worldjournal'.split(' ')) |
| 159 blacklist.extend('pdf skp _ desk_baidu.skp'.split(' ')) | 150 blacklist.extend('pdf skp _ desk_baidu.skp'.split(' ')) |
| 160 blacklist.extend('pdf skp _ desk_wikipedia.skp'.split(' ')) | 151 blacklist.extend('pdf skp _ desk_wikipedia.skp'.split(' ')) |
| 161 | 152 |
| 162 if 'iOS' in bot: | 153 if 'iOS' in bot: |
| 163 blacklist.extend('gpu skp _ _ msaa skp _ _'.split(' ')) | 154 blacklist.extend('gpu skp _ _ msaa skp _ _'.split(' ')) |
| 164 blacklist.extend('gpu image decode _ msaa image decode _'.split(' ')) | 155 blacklist.extend('gpu image decode _ msaa image decode _'.split(' ')) |
| 165 blacklist.extend('gpu image subset _ msaa image subset _'.split(' ')) | |
| 166 blacklist.extend('msaa16 gm _ tilemodesProcess'.split(' ')) | 156 blacklist.extend('msaa16 gm _ tilemodesProcess'.split(' ')) |
| 167 | 157 |
| 168 # the 32-bit GCE bots run out of memory in DM when running these large images | 158 # the 32-bit GCE bots run out of memory in DM when running these large images |
| 169 if 'x86' in bot and not 'x86-64' in bot: | 159 if 'x86' in bot and not 'x86-64' in bot: |
| 170 blacklist.extend('_ image _ interlaced1.png'.split(' ')) | 160 blacklist.extend('_ image _ interlaced1.png'.split(' ')) |
| 171 blacklist.extend('_ image _ interlaced2.png'.split(' ')) | 161 blacklist.extend('_ image _ interlaced2.png'.split(' ')) |
| 172 blacklist.extend('_ image _ interlaced3.png'.split(' ')) | 162 blacklist.extend('_ image _ interlaced3.png'.split(' ')) |
| 173 | 163 |
| 174 if blacklist: | 164 if blacklist: |
| 175 args.append('--blacklist') | 165 args.append('--blacklist') |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 238 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 249 self_test() | 239 self_test() |
| 250 sys.exit(0) | 240 sys.exit(0) |
| 251 | 241 |
| 252 if len(sys.argv) != 3: | 242 if len(sys.argv) != 3: |
| 253 print usage | 243 print usage |
| 254 sys.exit(1) | 244 sys.exit(1) |
| 255 | 245 |
| 256 with open(sys.argv[1], 'w') as out: | 246 with open(sys.argv[1], 'w') as out: |
| 257 json.dump(get_args(sys.argv[2]), out) | 247 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |