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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 if 'GPU' in bot: | 86 if 'GPU' in bot: |
87 args.extend('--src tests gm'.split(' ')) | 87 args.extend('--src tests gm'.split(' ')) |
88 else: | 88 else: |
89 args.extend('--src tests gm image'.split(' ')) | 89 args.extend('--src tests gm image'.split(' ')) |
90 | 90 |
91 if 'GalaxyS' in bot: | 91 if 'GalaxyS' in bot: |
92 args.extend(('--threads', '0')) | 92 args.extend(('--threads', '0')) |
93 | 93 |
94 blacklist = [] | 94 blacklist = [] |
95 | 95 |
96 # Several of the newest version bmps fail on SkImageDecoder | |
97 blacklist.extend('_ image decode pal8os2v2.bmp'.split(' ')) | |
98 blacklist.extend('_ image decode pal8v4.bmp'.split(' ')) | |
99 blacklist.extend('_ image decode pal8v5.bmp'.split(' ')) | |
100 blacklist.extend('_ image decode rgb16-565.bmp'.split(' ')) | |
101 blacklist.extend('_ image decode rgb16-565pal.bmp'.split(' ')) | |
102 blacklist.extend('_ image decode rgb32-111110.bmp'.split(' ')) | |
103 blacklist.extend('_ image decode rgb32bf.bmp'.split(' ')) | |
104 blacklist.extend('_ image decode rgba32.bmp'.split(' ')) | |
105 blacklist.extend('_ image decode rgba32abf.bmp'.split(' ')) | |
106 blacklist.extend('_ image decode rgb24largepal.bmp'.split(' ')) | |
107 blacklist.extend('_ image decode pal8os2v2-16.bmp'.split(' ')) | |
108 blacklist.extend('_ image decode pal8oversizepal.bmp'.split(' ')) | |
109 blacklist.extend('_ image decode pal4rletrns.bmp'.split(' ')) | |
110 blacklist.extend('_ image decode pal8rletrns.bmp'.split(' ')) | |
111 blacklist.extend('_ image decode 4bpp-pixeldata-cropped.bmp'.split(' ')) | |
112 blacklist.extend('_ image decode 8bpp-pixeldata-cropped.bmp'.split(' ')) | |
113 blacklist.extend('_ image decode 24bpp-pixeldata-cropped.bmp'.split(' ')) | |
114 blacklist.extend('_ image decode 32bpp-pixeldata-cropped.bmp'.split(' ')) | |
115 blacklist.extend('_ image decode testcase7.bmp'.split(' ')) | |
116 | |
117 # New ico files that fail on SkImageDecoder | |
118 blacklist.extend('_ image decode Hopstarter-Mac-Folders-Apple.ico'.split(' ')) | |
119 | |
120 # Gif test image uses uninitialized memory on Mac bots | |
121 if 'Mac' in bot: | |
122 blacklist.extend('_ image decode frame_larger_than_image.gif'.split(' ')) | |
123 | |
124 # Incomplete image tests that fail on SkImageDecoder | |
125 blacklist.extend('_ image decode inc0.gif'.split(' ')) | |
126 blacklist.extend('_ image decode inc1.gif'.split(' ')) | |
127 blacklist.extend('_ image decode incInterlaced.gif'.split(' ')) | |
128 blacklist.extend('_ image decode inc0.jpg'.split(' ')) | |
129 blacklist.extend('_ image decode incGray.jpg'.split(' ')) | |
130 blacklist.extend('_ image decode inc0.wbmp'.split(' ')) | |
131 blacklist.extend('_ image decode inc1.wbmp'.split(' ')) | |
132 blacklist.extend('_ image decode inc0.webp'.split(' ')) | |
133 blacklist.extend('_ image decode inc1.webp'.split(' ')) | |
134 blacklist.extend('_ image decode inc0.ico'.split(' ')) | |
135 blacklist.extend('_ image decode inc1.ico'.split(' ')) | |
136 blacklist.extend('_ image decode inc0.png'.split(' ')) | |
137 blacklist.extend('_ image decode inc1.png'.split(' ')) | |
138 blacklist.extend('_ image decode inc2.png'.split(' ')) | |
139 blacklist.extend('_ image decode inc12.png'.split(' ')) | |
140 blacklist.extend('_ image decode inc13.png'.split(' ')) | |
141 blacklist.extend('_ image decode inc14.png'.split(' ')) | |
142 | |
143 # Leon doesn't care about this, so why run it? | |
144 if 'Win' in bot: | |
145 blacklist.extend('_ image decode _'.split(' ')) | |
146 | |
147 # Certain gm's on win7 gpu and pdf are never finishing and keeping the test | 96 # Certain gm's on win7 gpu and pdf are never finishing and keeping the test |
148 # running forever | 97 # running forever |
149 if 'Win7' in bot: | 98 if 'Win7' in bot: |
150 blacklist.extend('msaa16 gm _ colorwheelnative'.split(' ')) | 99 blacklist.extend('msaa16 gm _ colorwheelnative'.split(' ')) |
151 blacklist.extend('pdf gm _ fontmgr_iter_factory'.split(' ')) | 100 blacklist.extend('pdf gm _ fontmgr_iter_factory'.split(' ')) |
152 | 101 |
153 if 'Valgrind' in bot: | 102 if 'Valgrind' in bot: |
154 # These take 18+ hours to run. | 103 # These take 18+ hours to run. |
155 blacklist.extend('pdf gm _ fontmgr_iter'.split(' ')) | 104 blacklist.extend('pdf gm _ fontmgr_iter'.split(' ')) |
156 blacklist.extend('pdf _ _ PANO_20121023_214540.jpg'.split(' ')) | 105 blacklist.extend('pdf _ _ PANO_20121023_214540.jpg'.split(' ')) |
157 blacklist.extend('pdf skp _ worldjournal'.split(' ')) | 106 blacklist.extend('pdf skp _ worldjournal'.split(' ')) |
158 blacklist.extend('pdf skp _ desk_baidu.skp'.split(' ')) | 107 blacklist.extend('pdf skp _ desk_baidu.skp'.split(' ')) |
159 blacklist.extend('pdf skp _ desk_wikipedia.skp'.split(' ')) | 108 blacklist.extend('pdf skp _ desk_wikipedia.skp'.split(' ')) |
160 | 109 |
161 if 'iOS' in bot: | 110 if 'iOS' in bot: |
162 blacklist.extend('gpu skp _ _ msaa skp _ _'.split(' ')) | 111 blacklist.extend('gpu skp _ _ msaa skp _ _'.split(' ')) |
163 blacklist.extend('gpu image decode _ msaa image decode _'.split(' ')) | |
164 blacklist.extend('msaa16 gm _ tilemodesProcess'.split(' ')) | 112 blacklist.extend('msaa16 gm _ tilemodesProcess'.split(' ')) |
165 | 113 |
166 # the 32-bit GCE bots run out of memory in DM when running these large images | 114 # the 32-bit GCE bots run out of memory in DM when running these large images |
167 if 'x86' in bot and not 'x86-64' in bot: | 115 if 'x86' in bot and not 'x86-64' in bot: |
168 blacklist.extend('_ image _ interlaced1.png'.split(' ')) | 116 blacklist.extend('_ image _ interlaced1.png'.split(' ')) |
169 blacklist.extend('_ image _ interlaced2.png'.split(' ')) | 117 blacklist.extend('_ image _ interlaced2.png'.split(' ')) |
170 blacklist.extend('_ image _ interlaced3.png'.split(' ')) | 118 blacklist.extend('_ image _ interlaced3.png'.split(' ')) |
171 | 119 |
172 # skia:4095 | 120 # skia:4095 |
173 for test in ['not_native32_bitmap_config', | 121 for test in ['not_native32_bitmap_config', |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 234 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
287 self_test() | 235 self_test() |
288 sys.exit(0) | 236 sys.exit(0) |
289 | 237 |
290 if len(sys.argv) != 3: | 238 if len(sys.argv) != 3: |
291 print usage | 239 print usage |
292 sys.exit(1) | 240 sys.exit(1) |
293 | 241 |
294 with open(sys.argv[1], 'w') as out: | 242 with open(sys.argv[1], 'w') as out: |
295 json.dump(get_args(sys.argv[2]), out) | 243 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |