| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 match = [] | 55 match = [] |
| 56 if 'Android' in bot: | 56 if 'Android' in bot: |
| 57 # Segfaults when run as GPU bench. Very large texture? | 57 # Segfaults when run as GPU bench. Very large texture? |
| 58 match.append('~blurroundrect') | 58 match.append('~blurroundrect') |
| 59 match.append('~patch_grid') # skia:2847 | 59 match.append('~patch_grid') # skia:2847 |
| 60 match.append('~desk_carsvg') | 60 match.append('~desk_carsvg') |
| 61 if 'HD2000' in bot: | 61 if 'HD2000' in bot: |
| 62 match.extend(['~gradient', '~etc1bitmap']) # skia:2895 | 62 match.extend(['~gradient', '~etc1bitmap']) # skia:2895 |
| 63 if 'Nexus7' in bot: | 63 if 'Nexus7' in bot: |
| 64 match = ['skp'] # skia:2774 | 64 match = ['skp'] # skia:2774 |
| 65 if 'NexusPlayer' in bot: |
| 66 match.append('~desk_unicodetable') |
| 67 |
| 65 if match: | 68 if match: |
| 66 args.append('--match') | 69 args.append('--match') |
| 67 args.extend(match) | 70 args.extend(match) |
| 68 | 71 |
| 69 return args | 72 return args |
| 70 cov_end = lineno() # Don't care about code coverage past here. | 73 cov_end = lineno() # Don't care about code coverage past here. |
| 71 | 74 |
| 72 | 75 |
| 73 def self_test(): | 76 def self_test(): |
| 74 import coverage # This way the bots don't need coverage.py to be installed. | 77 import coverage # This way the bots don't need coverage.py to be installed. |
| 75 args = {} | 78 args = {} |
| 76 cases = [ | 79 cases = [ |
| 77 'Perf-Android-Nexus7-Tegra3-Arm7-Release', | 80 'Perf-Android-Nexus7-Tegra3-Arm7-Release', |
| 81 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', |
| 78 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 82 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
| 79 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', | 83 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', |
| 80 ] | 84 ] |
| 81 | 85 |
| 82 cov = coverage.coverage() | 86 cov = coverage.coverage() |
| 83 cov.start() | 87 cov.start() |
| 84 for case in cases: | 88 for case in cases: |
| 85 args[case] = get_args(case) | 89 args[case] = get_args(case) |
| 86 cov.stop() | 90 cov.stop() |
| 87 | 91 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 101 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 105 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 102 self_test() | 106 self_test() |
| 103 sys.exit(0) | 107 sys.exit(0) |
| 104 | 108 |
| 105 if len(sys.argv) != 3: | 109 if len(sys.argv) != 3: |
| 106 print usage | 110 print usage |
| 107 sys.exit(1) | 111 sys.exit(1) |
| 108 | 112 |
| 109 with open(sys.argv[1], 'w') as out: | 113 with open(sys.argv[1], 'w') as out: |
| 110 json.dump(get_args(sys.argv[2]), out) | 114 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |