| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 configs.extend(mode + '-8888' for mode in | 81 configs.extend(mode + '-8888' for mode in |
| 82 ['serialize', 'tiles_rt', 'pic']) | 82 ['serialize', 'tiles_rt', 'pic']) |
| 83 | 83 |
| 84 if 'ANGLE' in bot: | 84 if 'ANGLE' in bot: |
| 85 configs.append('angle') | 85 configs.append('angle') |
| 86 | 86 |
| 87 # We want to run gpudft on atleast the mali 400 | 87 # We want to run gpudft on atleast the mali 400 |
| 88 if 'GalaxyS3' in bot: | 88 if 'GalaxyS3' in bot: |
| 89 configs.append('gpudft') | 89 configs.append('gpudft') |
| 90 | 90 |
| 91 # CommandBuffer bot *only* runs the command_buffer config. |
| 92 if 'CommandBuffer' in bot: |
| 93 configs = ['command_buffer'] |
| 94 |
| 91 args.append('--config') | 95 args.append('--config') |
| 92 args.extend(configs) | 96 args.extend(configs) |
| 93 | 97 |
| 94 # Run tests, gms, and image decoding tests everywhere. | 98 # Run tests, gms, and image decoding tests everywhere. |
| 95 # TODO: remove skp from default --src list? | 99 # TODO: remove skp from default --src list? |
| 96 args.extend('--src tests gm image'.split(' ')) | 100 args.extend('--src tests gm image'.split(' ')) |
| 97 | 101 |
| 98 if 'GalaxyS' in bot: | 102 if 'GalaxyS' in bot: |
| 99 args.extend(('--threads', '0')) | 103 args.extend(('--threads', '0')) |
| 100 | 104 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 return args | 248 return args |
| 245 cov_end = lineno() # Don't care about code coverage past here. | 249 cov_end = lineno() # Don't care about code coverage past here. |
| 246 | 250 |
| 247 | 251 |
| 248 def self_test(): | 252 def self_test(): |
| 249 import coverage # This way the bots don't need coverage.py to be installed. | 253 import coverage # This way the bots don't need coverage.py to be installed. |
| 250 args = {} | 254 args = {} |
| 251 cases = [ | 255 cases = [ |
| 252 'Pretend-iOS-Bot', | 256 'Pretend-iOS-Bot', |
| 253 'Test-Android-GCC-AndroidOne-GPU-Mali400MP2-Arm7-Release', | 257 'Test-Android-GCC-AndroidOne-GPU-Mali400MP2-Arm7-Release', |
| 254 'Test-Android-GCC-Nexus9-GPU-TegraK1-Arm64-Debug', | |
| 255 'Test-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Debug', | 258 'Test-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Debug', |
| 256 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', | 259 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', |
| 257 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Release', | 260 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Release', |
| 261 'Test-Android-GCC-Nexus9-GPU-TegraK1-Arm64-Debug', |
| 258 'Test-Android-GCC-NexusPlayer-CPU-SSSE3-x86-Release', | 262 'Test-Android-GCC-NexusPlayer-CPU-SSSE3-x86-Release', |
| 259 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 263 'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release', |
| 264 'Test-Mac-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', |
| 265 'Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer', |
| 266 'Test-Mac10.8-Clang-MacMini4.1-CPU-SSE4-x86_64-Release', |
| 260 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', | 267 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', |
| 261 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN', | 268 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN', |
| 262 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Valgrind', | 269 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Valgrind', |
| 270 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
| 263 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', | 271 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', |
| 264 'Test-Mac10.8-Clang-MacMini4.1-CPU-SSE4-x86_64-Release', | |
| 265 'Test-Mac-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', | |
| 266 'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release', | |
| 267 ] | 272 ] |
| 268 | 273 |
| 269 cov = coverage.coverage() | 274 cov = coverage.coverage() |
| 270 cov.start() | 275 cov.start() |
| 271 for case in cases: | 276 for case in cases: |
| 272 args[case] = get_args(case) | 277 args[case] = get_args(case) |
| 273 cov.stop() | 278 cov.stop() |
| 274 | 279 |
| 275 this_file = os.path.basename(__file__) | 280 this_file = os.path.basename(__file__) |
| 276 _, _, not_run, _ = cov.analysis(this_file) | 281 _, _, not_run, _ = cov.analysis(this_file) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 288 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 293 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 289 self_test() | 294 self_test() |
| 290 sys.exit(0) | 295 sys.exit(0) |
| 291 | 296 |
| 292 if len(sys.argv) != 3: | 297 if len(sys.argv) != 3: |
| 293 print usage | 298 print usage |
| 294 sys.exit(1) | 299 sys.exit(1) |
| 295 | 300 |
| 296 with open(sys.argv[1], 'w') as out: | 301 with open(sys.argv[1], 'w') as out: |
| 297 json.dump(get_args(sys.argv[2]), out) | 302 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |