OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 usage = ''' | 3 usage = ''' |
4 Write extra flags to outfile for DM based on the bot name: | 4 Write extra flags to outfile for DM based on the bot name: |
5 $ python dm_flags.py outfile Test-Mac10.9-MacMini6.2-HD4000-x86_64-Release | 5 $ python dm_flags.py outfile Test-Mac10.9-MacMini6.2-HD4000-x86_64-Release |
6 Or run self-tests: | 6 Or run self-tests: |
7 $ python dm_flags.py test | 7 $ python dm_flags.py test |
8 ''' | 8 ''' |
9 | 9 |
10 import inspect | 10 import inspect |
(...skipping 14 matching lines...) Expand all Loading... |
25 configs = ['565', '8888', 'gpu'] | 25 configs = ['565', '8888', 'gpu'] |
26 # The S4 crashes and the NP produces a long error stream when we run with | 26 # The S4 crashes and the NP produces a long error stream when we run with |
27 # MSAA. | 27 # MSAA. |
28 if ('GalaxyS4' not in bot and | 28 if ('GalaxyS4' not in bot and |
29 'NexusPlayer' not in bot): | 29 'NexusPlayer' not in bot): |
30 if 'Android' in bot: | 30 if 'Android' in bot: |
31 configs.extend(['msaa4', 'nvprmsaa4']) | 31 configs.extend(['msaa4', 'nvprmsaa4']) |
32 else: | 32 else: |
33 configs.extend(['msaa16', 'nvprmsaa16']) | 33 configs.extend(['msaa16', 'nvprmsaa16']) |
34 # Runs out of memory on Android bots and Daisy. Everyone else seems fine. | 34 # Runs out of memory on Android bots and Daisy. Everyone else seems fine. |
35 if 'Android' not in bot and 'Daisy' not in bot: | 35 # Valgrind: PDF + .webp -> jumps depending on uninitialized memory. skia:3505 |
| 36 if 'Android' not in bot and 'Daisy' not in bot and 'Valgrind' not in bot: |
36 configs.append('pdf') | 37 configs.append('pdf') |
37 | 38 |
38 # Xoom and NP are running out of RAM when we run all these modes. skia:3255 | 39 # Xoom and NP are running out of RAM when we run all these modes. skia:3255 |
39 if ('Xoom' not in bot and | 40 if ('Xoom' not in bot and |
40 'NexusPlayer' not in bot): | 41 'NexusPlayer' not in bot): |
41 configs.extend(mode + '-8888' for mode in | 42 configs.extend(mode + '-8888' for mode in |
42 ['serialize', 'tiles_rt', 'pipe']) | 43 ['serialize', 'tiles_rt', 'pipe']) |
43 configs.append('tiles_rt-gpu') | 44 configs.append('tiles_rt-gpu') |
44 if 'ANGLE' in bot: | 45 if 'ANGLE' in bot: |
45 configs.append('angle') | 46 configs.append('angle') |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 126 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
126 self_test() | 127 self_test() |
127 sys.exit(0) | 128 sys.exit(0) |
128 | 129 |
129 if len(sys.argv) != 3: | 130 if len(sys.argv) != 3: |
130 print usage | 131 print usage |
131 sys.exit(1) | 132 sys.exit(1) |
132 | 133 |
133 with open(sys.argv[1], 'w') as out: | 134 with open(sys.argv[1], 'w') as out: |
134 json.dump(get_args(sys.argv[2]), out) | 135 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |