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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 if '-TSAN' not in bot: | 43 if '-TSAN' not in bot: |
| 44 if ('TegraK1' in bot or | 44 if ('TegraK1' in bot or |
| 45 'GTX550Ti' in bot or | 45 'GTX550Ti' in bot or |
| 46 'GTX660' in bot or | 46 'GTX660' in bot or |
| 47 'GT610' in bot): | 47 'GT610' in bot): |
| 48 if 'Android' in bot: | 48 if 'Android' in bot: |
| 49 configs.append('nvprdit4') | 49 configs.append('nvprdit4') |
| 50 else: | 50 else: |
| 51 configs.append('nvprdit16') | 51 configs.append('nvprdit16') |
| 52 | 52 |
| 53 # We want to test the OpenGL config not the GLES config on the X1 | |
| 54 if 'TegraX1' in bot: | |
|
bsalomon
2016/04/04 14:38:38
The X1 is currently not running any nvpr configs.
| |
| 55 configs.remove('gpu') | |
| 56 configs.remove('gpusrgb') | |
| 57 configs.append('gl') | |
| 58 configs.append('glsrgb') | |
| 59 | |
| 53 # The S4 crashes and the NP produces a long error stream when we run with | 60 # The S4 crashes and the NP produces a long error stream when we run with |
| 54 # MSAA. The Tegra2 and Tegra3 just don't support it. | 61 # MSAA. The Tegra2 and Tegra3 just don't support it. |
| 55 if ('GalaxyS4' not in bot and | 62 if ('GalaxyS4' not in bot and |
| 56 'NexusPlayer' not in bot and | 63 'NexusPlayer' not in bot and |
| 57 'Tegra3' not in bot and | 64 'Tegra3' not in bot and |
| 58 'iOS' not in bot): | 65 'iOS' not in bot): |
| 59 if 'Android' in bot: | 66 if 'Android' in bot: |
| 60 configs.append('msaa4') | 67 configs.append('msaa4') |
| 61 else: | 68 else: |
| 62 configs.append('msaa16') | 69 configs.append('msaa16') |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 255 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', | 262 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', |
| 256 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Release', | 263 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Release', |
| 257 'Test-Android-GCC-NexusPlayer-CPU-SSSE3-x86-Release', | 264 'Test-Android-GCC-NexusPlayer-CPU-SSSE3-x86-Release', |
| 258 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 265 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
| 259 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', | 266 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', |
| 260 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN', | 267 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN', |
| 261 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Valgrind', | 268 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Valgrind', |
| 262 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', | 269 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', |
| 263 'Test-Mac10.8-Clang-MacMini4.1-CPU-SSE4-x86_64-Release', | 270 'Test-Mac10.8-Clang-MacMini4.1-CPU-SSE4-x86_64-Release', |
| 264 'Test-Mac-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', | 271 'Test-Mac-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', |
| 272 'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release', | |
| 265 ] | 273 ] |
| 266 | 274 |
| 267 cov = coverage.coverage() | 275 cov = coverage.coverage() |
| 268 cov.start() | 276 cov.start() |
| 269 for case in cases: | 277 for case in cases: |
| 270 args[case] = get_args(case) | 278 args[case] = get_args(case) |
| 271 cov.stop() | 279 cov.stop() |
| 272 | 280 |
| 273 this_file = os.path.basename(__file__) | 281 this_file = os.path.basename(__file__) |
| 274 _, _, not_run, _ = cov.analysis(this_file) | 282 _, _, not_run, _ = cov.analysis(this_file) |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 286 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 294 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 287 self_test() | 295 self_test() |
| 288 sys.exit(0) | 296 sys.exit(0) |
| 289 | 297 |
| 290 if len(sys.argv) != 3: | 298 if len(sys.argv) != 3: |
| 291 print usage | 299 print usage |
| 292 sys.exit(1) | 300 sys.exit(1) |
| 293 | 301 |
| 294 with open(sys.argv[1], 'w') as out: | 302 with open(sys.argv[1], 'w') as out: |
| 295 json.dump(get_args(sys.argv[2]), out) | 303 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |