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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 match.append('~inc1.ico') | 127 match.append('~inc1.ico') |
128 match.append('~inc0.png') | 128 match.append('~inc0.png') |
129 match.append('~inc1.png') | 129 match.append('~inc1.png') |
130 match.append('~inc2.png') | 130 match.append('~inc2.png') |
131 match.append('~inc12.png') | 131 match.append('~inc12.png') |
132 match.append('~inc13.png') | 132 match.append('~inc13.png') |
133 match.append('~inc14.png') | 133 match.append('~inc14.png') |
134 match.append('~inc0.webp') | 134 match.append('~inc0.webp') |
135 match.append('~inc1.webp') | 135 match.append('~inc1.webp') |
136 | 136 |
137 # As an experiment, skip nanobench on Debug trybots. | |
138 if 'Debug' in bot and 'CPU' in bot and 'Trybot' in bot: | |
139 match = ['nothing_will_match_this'] | |
140 | |
141 if match: | 137 if match: |
142 args.append('--match') | 138 args.append('--match') |
143 args.extend(match) | 139 args.extend(match) |
144 | 140 |
145 return args | 141 return args |
146 cov_end = lineno() # Don't care about code coverage past here. | 142 cov_end = lineno() # Don't care about code coverage past here. |
147 | 143 |
148 | 144 |
149 def self_test(): | 145 def self_test(): |
150 import coverage # This way the bots don't need coverage.py to be installed. | 146 import coverage # This way the bots don't need coverage.py to be installed. |
151 args = {} | 147 args = {} |
152 cases = [ | 148 cases = [ |
153 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release', | 149 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release', |
154 'Perf-Android-Nexus7-Tegra3-Arm7-Release', | 150 'Perf-Android-Nexus7-Tegra3-Arm7-Release', |
155 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', | 151 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', |
156 'Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release', | 152 'Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release', |
157 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 153 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
158 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', | 154 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', |
159 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | 155 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
160 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', | 156 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', |
161 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot', | |
162 'Perf-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release', | 157 'Perf-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release', |
163 'Perf-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release-Vulkan', | 158 'Perf-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release-Vulkan', |
164 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release', | 159 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release', |
165 ] | 160 ] |
166 | 161 |
167 cov = coverage.coverage() | 162 cov = coverage.coverage() |
168 cov.start() | 163 cov.start() |
169 for case in cases: | 164 for case in cases: |
170 args[case] = get_args(case) | 165 args[case] = get_args(case) |
171 cov.stop() | 166 cov.stop() |
(...skipping 14 matching lines...) Expand all Loading... |
186 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 181 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
187 self_test() | 182 self_test() |
188 sys.exit(0) | 183 sys.exit(0) |
189 | 184 |
190 if len(sys.argv) != 3: | 185 if len(sys.argv) != 3: |
191 print usage | 186 print usage |
192 sys.exit(1) | 187 sys.exit(1) |
193 | 188 |
194 with open(sys.argv[1], 'w') as out: | 189 with open(sys.argv[1], 'w') as out: |
195 json.dump(get_args(sys.argv[2]), out) | 190 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |