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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 if 'iOS' in bot: | 42 if 'iOS' in bot: |
43 args.extend(['--skps', 'ignore_skps']) | 43 args.extend(['--skps', 'ignore_skps']) |
44 | 44 |
45 if 'Appurify' not in bot: | 45 if 'Appurify' not in bot: |
46 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] | 46 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] |
47 # The S4 crashes and the NP produces a long error stream when we run with | 47 # The S4 crashes and the NP produces a long error stream when we run with |
48 # MSAA. | 48 # MSAA. |
49 if ('GalaxyS4' not in bot and | 49 if ('GalaxyS4' not in bot and |
50 'NexusPlayer' not in bot): | 50 'NexusPlayer' not in bot): |
51 if 'Android' in bot: | 51 if 'Android' in bot: |
52 config.extend(['msaa4', 'nvprmsaa4']) | 52 config.extend(['msaa4', 'nvpr4', 'nvprdit4']) |
53 else: | 53 else: |
54 config.extend(['msaa16', 'nvprmsaa16']) | 54 config.extend(['msaa16', 'nvpr16', 'nvprdit16']) |
55 args.append('--config') | 55 args.append('--config') |
56 args.extend(config) | 56 args.extend(config) |
57 | 57 |
58 if 'Valgrind' in bot: | 58 if 'Valgrind' in bot: |
59 # Don't care about Valgrind performance. | 59 # Don't care about Valgrind performance. |
60 args.extend(['--loops', '1']) | 60 args.extend(['--loops', '1']) |
61 args.extend(['--samples', '1']) | 61 args.extend(['--samples', '1']) |
62 # Ensure that the bot framework does not think we have timed out. | 62 # Ensure that the bot framework does not think we have timed out. |
63 args.extend(['--keepAlive', 'true']) | 63 args.extend(['--keepAlive', 'true']) |
64 | 64 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 168 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
169 self_test() | 169 self_test() |
170 sys.exit(0) | 170 sys.exit(0) |
171 | 171 |
172 if len(sys.argv) != 3: | 172 if len(sys.argv) != 3: |
173 print usage | 173 print usage |
174 sys.exit(1) | 174 sys.exit(1) |
175 | 175 |
176 with open(sys.argv[1], 'w') as out: | 176 with open(sys.argv[1], 'w') as out: |
177 json.dump(get_args(sys.argv[2]), out) | 177 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |