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 11 matching lines...) Expand all Loading... |
22 | 22 |
23 def lineno(): | 23 def lineno(): |
24 caller = inspect.stack()[1] # Up one level to our caller. | 24 caller = inspect.stack()[1] # Up one level to our caller. |
25 return inspect.getframeinfo(caller[0]).lineno | 25 return inspect.getframeinfo(caller[0]).lineno |
26 | 26 |
27 | 27 |
28 cov_start = lineno()+1 # We care about coverage starting just past this def. | 28 cov_start = lineno()+1 # We care about coverage starting just past this def. |
29 def get_args(bot): | 29 def get_args(bot): |
30 args = [] | 30 args = [] |
31 | 31 |
32 configs = ['565', '8888', 'gpu', 'upright-matrix-8888', 'upright-matrix-gpu'] | 32 configs = ['565', '8888', 'gpu'] |
33 | 33 |
34 args.extend('--matrix 0 1 1 0'.split(' ')) | 34 if 'Android' not in bot: |
| 35 configs.extend(('upright-matrix-8888', 'upright-matrix-gpu')) |
| 36 args.extend('--matrix 0 1 1 0'.split(' ')) |
35 | 37 |
36 if 'TegraK1' in bot or 'GTX550Ti' in bot or 'GTX660' in bot or 'GT610' in bot: | 38 if 'TegraK1' in bot or 'GTX550Ti' in bot or 'GTX660' in bot or 'GT610' in bot: |
37 if 'Android' in bot: | 39 if 'Android' in bot: |
38 configs.append('nvprmsaa4') | 40 configs.append('nvprmsaa4') |
39 else: | 41 else: |
40 configs.append('nvprmsaa16') | 42 configs.append('nvprmsaa16') |
41 | 43 |
42 # The S4 crashes and the NP produces a long error stream when we run with | 44 # The S4 crashes and the NP produces a long error stream when we run with |
43 # MSAA. The Tegra2 and Tegra3 just don't support it. | 45 # MSAA. The Tegra2 and Tegra3 just don't support it. |
44 if ('GalaxyS4' not in bot and | 46 if ('GalaxyS4' not in bot and |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 212 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
211 self_test() | 213 self_test() |
212 sys.exit(0) | 214 sys.exit(0) |
213 | 215 |
214 if len(sys.argv) != 3: | 216 if len(sys.argv) != 3: |
215 print usage | 217 print usage |
216 sys.exit(1) | 218 sys.exit(1) |
217 | 219 |
218 with open(sys.argv[1], 'w') as out: | 220 with open(sys.argv[1], 'w') as out: |
219 json.dump(get_args(sys.argv[2]), out) | 221 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |