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', 'nvpr4', 'nvprdit4']) | 52 # The TegraX1 has a regular OpenGL implementation. We bench that instead |
| 53 # of ES. |
| 54 if 'TegraX1' in bot: |
| 55 config.remove('gpu') |
| 56 config.extend(['gl', 'glmsaa4', 'glnvpr4', 'glnvprdit4']) |
| 57 else: |
| 58 config.extend(['msaa4', 'nvpr4', 'nvprdit4']) |
53 else: | 59 else: |
54 config.extend(['msaa16', 'nvpr16', 'nvprdit16']) | 60 config.extend(['msaa16', 'nvpr16', 'nvprdit16']) |
55 args.append('--config') | 61 args.append('--config') |
56 args.extend(config) | 62 args.extend(config) |
57 | 63 |
58 if 'Valgrind' in bot: | 64 if 'Valgrind' in bot: |
59 # Don't care about Valgrind performance. | 65 # Don't care about Valgrind performance. |
60 args.extend(['--loops', '1']) | 66 args.extend(['--loops', '1']) |
61 args.extend(['--samples', '1']) | 67 args.extend(['--samples', '1']) |
62 # Ensure that the bot framework does not think we have timed out. | 68 # Ensure that the bot framework does not think we have timed out. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 cases = [ | 149 cases = [ |
144 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release', | 150 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release', |
145 'Perf-Android-Nexus7-Tegra3-Arm7-Release', | 151 'Perf-Android-Nexus7-Tegra3-Arm7-Release', |
146 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', | 152 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', |
147 'Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release', | 153 'Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release', |
148 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 154 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
149 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', | 155 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', |
150 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | 156 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
151 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', | 157 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', |
152 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot', | 158 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot', |
| 159 'Perf-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release', |
153 ] | 160 ] |
154 | 161 |
155 cov = coverage.coverage() | 162 cov = coverage.coverage() |
156 cov.start() | 163 cov.start() |
157 for case in cases: | 164 for case in cases: |
158 args[case] = get_args(case) | 165 args[case] = get_args(case) |
159 cov.stop() | 166 cov.stop() |
160 | 167 |
161 this_file = os.path.basename(__file__) | 168 this_file = os.path.basename(__file__) |
162 _, _, not_run, _ = cov.analysis(this_file) | 169 _, _, not_run, _ = cov.analysis(this_file) |
(...skipping 11 matching lines...) Expand all Loading... |
174 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 181 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
175 self_test() | 182 self_test() |
176 sys.exit(0) | 183 sys.exit(0) |
177 | 184 |
178 if len(sys.argv) != 3: | 185 if len(sys.argv) != 3: |
179 print usage | 186 print usage |
180 sys.exit(1) | 187 sys.exit(1) |
181 | 188 |
182 with open(sys.argv[1], 'w') as out: | 189 with open(sys.argv[1], 'w') as out: |
183 json.dump(get_args(sys.argv[2]), out) | 190 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |