| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 # NP is running out of RAM when we run all these modes. skia:3255 | 61 # NP is running out of RAM when we run all these modes. skia:3255 |
| 62 if 'NexusPlayer' not in bot: | 62 if 'NexusPlayer' not in bot: |
| 63 configs.extend(mode + '-8888' for mode in | 63 configs.extend(mode + '-8888' for mode in |
| 64 ['serialize', 'tiles_rt', 'pipe']) | 64 ['serialize', 'tiles_rt', 'pipe']) |
| 65 | 65 |
| 66 if 'ANGLE' in bot: | 66 if 'ANGLE' in bot: |
| 67 configs.append('angle') | 67 configs.append('angle') |
| 68 args.append('--config') | 68 args.append('--config') |
| 69 args.extend(configs) | 69 args.extend(configs) |
| 70 | 70 |
| 71 # Run tests and gms everywhere, |
| 72 # and image decoding tests everywhere except GPU bots. |
| 73 # TODO: remove skp from default --src list? |
| 74 if 'GPU' in bot: |
| 75 args.extend('--src tests gm'.split(' ')) |
| 76 else: |
| 77 args.extend('--src tests gm image'.split(' ')) |
| 78 |
| 71 if 'GalaxyS' in bot: | 79 if 'GalaxyS' in bot: |
| 72 args.extend(('--threads', '0')) | 80 args.extend(('--threads', '0')) |
| 73 | 81 |
| 74 blacklist = [] | 82 blacklist = [] |
| 75 # This image is too large to be a texture for many GPUs. | 83 # This image is too large to be a texture for many GPUs. |
| 76 blacklist.extend('gpu _ _ PANO_20121023_214540.jpg'.split(' ')) | 84 blacklist.extend('gpu _ _ PANO_20121023_214540.jpg'.split(' ')) |
| 77 blacklist.extend('msaa _ _ PANO_20121023_214540.jpg'.split(' ')) | 85 blacklist.extend('msaa _ _ PANO_20121023_214540.jpg'.split(' ')) |
| 78 | 86 |
| 79 # Several of the newest version bmps fail on SkImageDecoder | 87 # Several of the newest version bmps fail on SkImageDecoder |
| 80 blacklist.extend('_ image decode pal8os2v2.bmp'.split(' ')) | 88 blacklist.extend('_ image decode pal8os2v2.bmp'.split(' ')) |
| (...skipping 29 matching lines...) Expand all Loading... |
| 110 if 'Win' in bot: | 118 if 'Win' in bot: |
| 111 blacklist.extend('_ image decode _'.split(' ')) | 119 blacklist.extend('_ image decode _'.split(' ')) |
| 112 blacklist.extend('_ image subset _'.split(' ')) | 120 blacklist.extend('_ image subset _'.split(' ')) |
| 113 | 121 |
| 114 # Certain gm's on win7 gpu and pdf are never finishing and keeping the test | 122 # Certain gm's on win7 gpu and pdf are never finishing and keeping the test |
| 115 # running forever | 123 # running forever |
| 116 if 'Win7' in bot: | 124 if 'Win7' in bot: |
| 117 blacklist.extend('msaa16 gm _ colorwheelnative'.split(' ')) | 125 blacklist.extend('msaa16 gm _ colorwheelnative'.split(' ')) |
| 118 blacklist.extend('pdf gm _ fontmgr_iter_factory'.split(' ')) | 126 blacklist.extend('pdf gm _ fontmgr_iter_factory'.split(' ')) |
| 119 | 127 |
| 120 # Drawing SKPs or images into GPU canvases is a New Thing. | |
| 121 # We are running out of RAM on some Android bots, so we are restricting | |
| 122 # all GPU Android bots to only run tests and GMs. | |
| 123 if ('Android' in bot and | |
| 124 'GPU' in bot): | |
| 125 args.extend('--src tests gm'.split(' ')) | |
| 126 | |
| 127 if 'Valgrind' in bot: | 128 if 'Valgrind' in bot: |
| 128 # PDF + .webp -> jumps depending on uninitialized memory. skia:3505 | 129 # PDF + .webp -> jumps depending on uninitialized memory. skia:3505 |
| 129 blacklist.extend('pdf _ _ .webp'.split(' ')) | 130 blacklist.extend('pdf _ _ .webp'.split(' ')) |
| 130 # These take 18+ hours to run. | 131 # These take 18+ hours to run. |
| 131 blacklist.extend('pdf gm _ fontmgr_iter'.split(' ')) | 132 blacklist.extend('pdf gm _ fontmgr_iter'.split(' ')) |
| 132 blacklist.extend('pdf _ _ PANO_20121023_214540.jpg'.split(' ')) | 133 blacklist.extend('pdf _ _ PANO_20121023_214540.jpg'.split(' ')) |
| 133 blacklist.extend('pdf skp _ worldjournal'.split(' ')) | 134 blacklist.extend('pdf skp _ worldjournal'.split(' ')) |
| 134 blacklist.extend('pdf skp _ desk_baidu.skp'.split(' ')) | 135 blacklist.extend('pdf skp _ desk_baidu.skp'.split(' ')) |
| 135 blacklist.extend('pdf skp _ desk_wikipedia.skp'.split(' ')) | 136 blacklist.extend('pdf skp _ desk_wikipedia.skp'.split(' ')) |
| 136 | 137 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 211 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 211 self_test() | 212 self_test() |
| 212 sys.exit(0) | 213 sys.exit(0) |
| 213 | 214 |
| 214 if len(sys.argv) != 3: | 215 if len(sys.argv) != 3: |
| 215 print usage | 216 print usage |
| 216 sys.exit(1) | 217 sys.exit(1) |
| 217 | 218 |
| 218 with open(sys.argv[1], 'w') as out: | 219 with open(sys.argv[1], 'w') as out: |
| 219 json.dump(get_args(sys.argv[2]), out) | 220 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |