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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 def get_extra_env_vars(builder_dict): | 155 def get_extra_env_vars(builder_dict): |
156 env = {} | 156 env = {} |
157 if builder_dict.get('configuration') == 'Coverage': | 157 if builder_dict.get('configuration') == 'Coverage': |
158 # We have to use Clang 3.6 because earlier versions do not support the | 158 # We have to use Clang 3.6 because earlier versions do not support the |
159 # compile flags we use and 3.7 and 3.8 hit asserts during compilation. | 159 # compile flags we use and 3.7 and 3.8 hit asserts during compilation. |
160 env['CC'] = '/usr/bin/clang-3.6' | 160 env['CC'] = '/usr/bin/clang-3.6' |
161 env['CXX'] = '/usr/bin/clang++-3.6' | 161 env['CXX'] = '/usr/bin/clang++-3.6' |
162 elif builder_dict.get('compiler') == 'Clang': | 162 elif builder_dict.get('compiler') == 'Clang': |
163 env['CC'] = '/usr/bin/clang' | 163 env['CC'] = '/usr/bin/clang' |
164 env['CXX'] = '/usr/bin/clang++' | 164 env['CXX'] = '/usr/bin/clang++' |
| 165 |
| 166 # Force Debug mode for Appurify bots so that we don't have to sign the test |
| 167 # APK. |
| 168 # TODO(borenet): Remove this once able. |
| 169 if builder_dict.get('extra_config') == 'Appurify': |
| 170 env['BUILDTYPE'] = CONFIG_DEBUG |
| 171 |
165 return env | 172 return env |
166 | 173 |
167 | 174 |
168 cov_skip.extend([lineno(), lineno() + 1]) | 175 cov_skip.extend([lineno(), lineno() + 1]) |
169 def build_targets_from_builder_dict(builder_dict): | 176 def build_targets_from_builder_dict(builder_dict): |
170 """Return a list of targets to build, depending on the builder type.""" | 177 """Return a list of targets to build, depending on the builder type.""" |
171 if builder_dict['role'] in ('Test', 'Perf') and builder_dict['os'] == 'iOS': | 178 if builder_dict['role'] in ('Test', 'Perf') and builder_dict['os'] == 'iOS': |
172 return ['iOSShell'] | 179 return ['iOSShell'] |
173 elif builder_dict['role'] == builder_name_schema.BUILDER_ROLE_TEST: | 180 elif builder_dict['role'] == builder_name_schema.BUILDER_ROLE_TEST: |
174 t = ['dm'] | 181 t = ['dm'] |
175 if builder_dict.get('configuration') == 'Debug': | 182 if builder_dict.get('configuration') == 'Debug': |
176 t.append('nanobench') | 183 t.append('nanobench') |
177 return t | 184 return t |
178 elif builder_dict['role'] == builder_name_schema.BUILDER_ROLE_PERF: | 185 elif builder_dict['role'] == builder_name_schema.BUILDER_ROLE_PERF: |
179 return ['nanobench'] | 186 if builder_dict.get('extra_config') == 'Appurify': |
| 187 return ['VisualBenchTest_APK'] |
| 188 else: |
| 189 return ['nanobench'] |
180 else: | 190 else: |
181 return ['most'] | 191 return ['most'] |
182 | 192 |
183 | 193 |
184 cov_skip.extend([lineno(), lineno() + 1]) | 194 cov_skip.extend([lineno(), lineno() + 1]) |
185 def device_cfg(builder_dict): | 195 def device_cfg(builder_dict): |
186 # Android. | 196 # Android. |
187 if 'Android' in builder_dict.get('extra_config', ''): | 197 if 'Android' in builder_dict.get('extra_config', ''): |
188 if 'NoNeon' in builder_dict['extra_config']: | 198 if 'NoNeon' in builder_dict['extra_config']: |
189 return 'arm_v7' | 199 return 'arm_v7' |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 'Build-Win-MSVC-x86-Debug', | 303 'Build-Win-MSVC-x86-Debug', |
294 'Build-Win-MSVC-x86-Debug-GDI', | 304 'Build-Win-MSVC-x86-Debug-GDI', |
295 'Build-Win-MSVC-x86-Debug-Exceptions', | 305 'Build-Win-MSVC-x86-Debug-Exceptions', |
296 'Build-Ubuntu-GCC-Arm7-Debug-Android_FrameworkDefs', | 306 'Build-Ubuntu-GCC-Arm7-Debug-Android_FrameworkDefs', |
297 'Build-Ubuntu-GCC-Arm7-Debug-Android_NoNeon', | 307 'Build-Ubuntu-GCC-Arm7-Debug-Android_NoNeon', |
298 'Build-Ubuntu-GCC-Arm7-Debug-CrOS_Daisy', | 308 'Build-Ubuntu-GCC-Arm7-Debug-CrOS_Daisy', |
299 'Build-Ubuntu-GCC-x86_64-Debug-CrOS_Link', | 309 'Build-Ubuntu-GCC-x86_64-Debug-CrOS_Link', |
300 'Build-Ubuntu-GCC-x86_64-Release-Mesa', | 310 'Build-Ubuntu-GCC-x86_64-Release-Mesa', |
301 'Housekeeper-PerCommit', | 311 'Housekeeper-PerCommit', |
302 'Perf-Win8-MSVC-ShuttleB-GPU-HD4600-x86_64-Release-Trybot', | 312 'Perf-Win8-MSVC-ShuttleB-GPU-HD4600-x86_64-Release-Trybot', |
| 313 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release-Appurify', |
303 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', | 314 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', |
304 'Test-ChromeOS-GCC-Link-CPU-AVX-x86_64-Debug', | 315 'Test-ChromeOS-GCC-Link-CPU-AVX-x86_64-Debug', |
305 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | 316 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
306 'Test-Mac10.8-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', | 317 'Test-Mac10.8-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', |
| 318 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage', |
307 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD', | 319 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD', |
308 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', | 320 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', |
309 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 321 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
310 'Test-Win8-MSVC-ShuttleB-GPU-HD4600-x86-Release-ANGLE', | 322 'Test-Win8-MSVC-ShuttleB-GPU-HD4600-x86-Release-ANGLE', |
311 'Test-Win8-MSVC-ShuttleA-CPU-AVX-x86_64-Debug', | 323 'Test-Win8-MSVC-ShuttleA-CPU-AVX-x86_64-Debug', |
312 ] | 324 ] |
313 | 325 |
314 cov = coverage.coverage() | 326 cov = coverage.coverage() |
315 cov.start() | 327 cov.start() |
316 for case in cases: | 328 for case in cases: |
(...skipping 17 matching lines...) Expand all Loading... |
334 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 346 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
335 self_test() | 347 self_test() |
336 sys.exit(0) | 348 sys.exit(0) |
337 | 349 |
338 if len(sys.argv) != 3: | 350 if len(sys.argv) != 3: |
339 print usage | 351 print usage |
340 sys.exit(1) | 352 sys.exit(1) |
341 | 353 |
342 with open(sys.argv[1], 'w') as out: | 354 with open(sys.argv[1], 'w') as out: |
343 json.dump(get_builder_spec(sys.argv[2]), out) | 355 json.dump(get_builder_spec(sys.argv[2]), out) |
OLD | NEW |