Chromium Code Reviews| 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 13 matching lines...) Expand all Loading... | |
| 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'] | 32 configs = ['565', '8888', 'gpu'] |
| 33 | 33 |
| 34 if '-CPU-' in bot: | |
|
mtklein
2015/05/05 15:51:44
You ought to be able to just put 'matrix-8888' and
| |
| 35 configs.append('matrix-8888') | |
| 36 elif '-GPU-' in bot: | |
| 37 configs.append('matrix-gpu') | |
| 38 args.extend('--matrix 8 6 7 5 3 0 9 3 9'.split(' ')) | |
| 39 | |
| 34 if 'TegraK1' in bot or 'GTX550Ti' in bot or 'GTX660' in bot or 'GT610' in bot: | 40 if 'TegraK1' in bot or 'GTX550Ti' in bot or 'GTX660' in bot or 'GT610' in bot: |
| 35 if 'Android' in bot: | 41 if 'Android' in bot: |
| 36 configs.append('nvprmsaa4') | 42 configs.append('nvprmsaa4') |
| 37 else: | 43 else: |
| 38 configs.append('nvprmsaa16') | 44 configs.append('nvprmsaa16') |
| 39 | 45 |
| 40 # The S4 crashes and the NP produces a long error stream when we run with | 46 # The S4 crashes and the NP produces a long error stream when we run with |
| 41 # MSAA. The Tegra2 and Tegra3 just don't support it. | 47 # MSAA. The Tegra2 and Tegra3 just don't support it. |
| 42 if ('GalaxyS4' not in bot and | 48 if ('GalaxyS4' not in bot and |
| 43 'NexusPlayer' not in bot and | 49 'NexusPlayer' not in bot and |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 192 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 198 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 193 self_test() | 199 self_test() |
| 194 sys.exit(0) | 200 sys.exit(0) |
| 195 | 201 |
| 196 if len(sys.argv) != 3: | 202 if len(sys.argv) != 3: |
| 197 print usage | 203 print usage |
| 198 sys.exit(1) | 204 sys.exit(1) |
| 199 | 205 |
| 200 with open(sys.argv[1], 'w') as out: | 206 with open(sys.argv[1], 'w') as out: |
| 201 json.dump(get_args(sys.argv[2]), out) | 207 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |