| 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 15 matching lines...) Expand all Loading... |
| 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 = ['--pre_log'] | 30 args = ['--pre_log'] |
| 31 | 31 |
| 32 if 'GPU' in bot: | 32 if 'GPU' in bot: |
| 33 args.append('--images') | 33 args.append('--images') |
| 34 args.extend(['--gpuStatsDump', 'true']) | 34 args.extend(['--gpuStatsDump', 'true']) |
| 35 | 35 |
| 36 if 'Android' in bot and 'GPU' in bot: |
| 37 args.extend(['--useThermalManager', '1,1,10,1000']) |
| 38 |
| 36 if 'Appurify' not in bot: | 39 if 'Appurify' not in bot: |
| 37 args.extend(['--scales', '1.0', '1.1']) | 40 args.extend(['--scales', '1.0', '1.1']) |
| 38 | 41 |
| 39 if 'iOS' in bot: | 42 if 'iOS' in bot: |
| 40 args.extend(['--skps', 'ignore_skps']) | 43 args.extend(['--skps', 'ignore_skps']) |
| 41 | 44 |
| 42 if 'Appurify' not in bot: | 45 if 'Appurify' not in bot: |
| 43 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] | 46 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] |
| 44 # 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 |
| 45 # MSAA. | 48 # MSAA. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 args.extend(match) | 125 args.extend(match) |
| 123 | 126 |
| 124 return args | 127 return args |
| 125 cov_end = lineno() # Don't care about code coverage past here. | 128 cov_end = lineno() # Don't care about code coverage past here. |
| 126 | 129 |
| 127 | 130 |
| 128 def self_test(): | 131 def self_test(): |
| 129 import coverage # This way the bots don't need coverage.py to be installed. | 132 import coverage # This way the bots don't need coverage.py to be installed. |
| 130 args = {} | 133 args = {} |
| 131 cases = [ | 134 cases = [ |
| 135 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release', |
| 132 'Perf-Android-Nexus7-Tegra3-Arm7-Release', | 136 'Perf-Android-Nexus7-Tegra3-Arm7-Release', |
| 133 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', | 137 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', |
| 134 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 138 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
| 135 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', | 139 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', |
| 136 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | 140 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
| 137 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', | 141 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', |
| 138 ] | 142 ] |
| 139 | 143 |
| 140 cov = coverage.coverage() | 144 cov = coverage.coverage() |
| 141 cov.start() | 145 cov.start() |
| (...skipping 17 matching lines...) Expand all Loading... |
| 159 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 163 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 160 self_test() | 164 self_test() |
| 161 sys.exit(0) | 165 sys.exit(0) |
| 162 | 166 |
| 163 if len(sys.argv) != 3: | 167 if len(sys.argv) != 3: |
| 164 print usage | 168 print usage |
| 165 sys.exit(1) | 169 sys.exit(1) |
| 166 | 170 |
| 167 with open(sys.argv[1], 'w') as out: | 171 with open(sys.argv[1], 'w') as out: |
| 168 json.dump(get_args(sys.argv[2]), out) | 172 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |