| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 decode testcase7.bmp'.split(' ')) | 109 blacklist.extend('_ image decode testcase7.bmp'.split(' ')) |
| 110 | 110 |
| 111 # New ico files that fail on SkImageDecoder | 111 # New ico files that fail on SkImageDecoder |
| 112 blacklist.extend('_ image decode Hopstarter-Mac-Folders-Apple.ico'.split(' ')) | 112 blacklist.extend('_ image decode Hopstarter-Mac-Folders-Apple.ico'.split(' ')) |
| 113 | 113 |
| 114 # Gif test image uses uninitialized memory on Mac bots |
| 115 if 'Mac' in bot: |
| 116 blacklist.extend('_ image decode frame_larger_than_image.gif'.split(' ')) |
| 117 |
| 114 # Incomplete image tests that fail on SkImageDecoder | 118 # Incomplete image tests that fail on SkImageDecoder |
| 115 blacklist.extend('_ image decode inc0.gif'.split(' ')) | 119 blacklist.extend('_ image decode inc0.gif'.split(' ')) |
| 116 blacklist.extend('_ image decode inc1.gif'.split(' ')) | 120 blacklist.extend('_ image decode inc1.gif'.split(' ')) |
| 117 blacklist.extend('_ image decode incInterlaced.gif'.split(' ')) | 121 blacklist.extend('_ image decode incInterlaced.gif'.split(' ')) |
| 118 blacklist.extend('_ image decode inc0.jpg'.split(' ')) | 122 blacklist.extend('_ image decode inc0.jpg'.split(' ')) |
| 119 blacklist.extend('_ image decode incGray.jpg'.split(' ')) | 123 blacklist.extend('_ image decode incGray.jpg'.split(' ')) |
| 120 blacklist.extend('_ image decode inc0.wbmp'.split(' ')) | 124 blacklist.extend('_ image decode inc0.wbmp'.split(' ')) |
| 121 blacklist.extend('_ image decode inc1.wbmp'.split(' ')) | 125 blacklist.extend('_ image decode inc1.wbmp'.split(' ')) |
| 122 blacklist.extend('_ image decode inc0.webp'.split(' ')) | 126 blacklist.extend('_ image decode inc0.webp'.split(' ')) |
| 123 blacklist.extend('_ image decode inc1.webp'.split(' ')) | 127 blacklist.extend('_ image decode inc1.webp'.split(' ')) |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 'Pretend-iOS-Bot', | 209 'Pretend-iOS-Bot', |
| 206 'Test-Android-GCC-Nexus9-GPU-TegraK1-Arm64-Debug', | 210 'Test-Android-GCC-Nexus9-GPU-TegraK1-Arm64-Debug', |
| 207 'Test-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Debug', | 211 'Test-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Debug', |
| 208 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', | 212 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', |
| 209 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Release', | 213 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Release', |
| 210 'Test-Android-GCC-NexusPlayer-CPU-SSSE3-x86-Release', | 214 'Test-Android-GCC-NexusPlayer-CPU-SSSE3-x86-Release', |
| 211 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 215 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
| 212 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN', | 216 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN', |
| 213 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Valgrind', | 217 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Valgrind', |
| 214 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', | 218 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', |
| 219 'Test-Mac10.8-Clang-MacMini4.1-CPU-SSE4-x86_64-Release', |
| 215 ] | 220 ] |
| 216 | 221 |
| 217 cov = coverage.coverage() | 222 cov = coverage.coverage() |
| 218 cov.start() | 223 cov.start() |
| 219 for case in cases: | 224 for case in cases: |
| 220 args[case] = get_args(case) | 225 args[case] = get_args(case) |
| 221 cov.stop() | 226 cov.stop() |
| 222 | 227 |
| 223 this_file = os.path.basename(__file__) | 228 this_file = os.path.basename(__file__) |
| 224 _, _, not_run, _ = cov.analysis(this_file) | 229 _, _, not_run, _ = cov.analysis(this_file) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 236 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 241 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 237 self_test() | 242 self_test() |
| 238 sys.exit(0) | 243 sys.exit(0) |
| 239 | 244 |
| 240 if len(sys.argv) != 3: | 245 if len(sys.argv) != 3: |
| 241 print usage | 246 print usage |
| 242 sys.exit(1) | 247 sys.exit(1) |
| 243 | 248 |
| 244 with open(sys.argv[1], 'w') as out: | 249 with open(sys.argv[1], 'w') as out: |
| 245 json.dump(get_args(sys.argv[2]), out) | 250 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |