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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 if builder_dict['role'] in ('Test', 'Perf') and builder_dict['os'] == 'iOS': | 201 if builder_dict['role'] in ('Test', 'Perf') and builder_dict['os'] == 'iOS': |
202 return ['iOSShell'] | 202 return ['iOSShell'] |
203 if builder_dict.get('extra_config') == 'Appurify': | 203 if builder_dict.get('extra_config') == 'Appurify': |
204 return ['VisualBenchTest_APK'] | 204 return ['VisualBenchTest_APK'] |
205 if 'SAN' in builder_dict.get('extra_config', ''): | 205 if 'SAN' in builder_dict.get('extra_config', ''): |
206 # 'most' does not compile under MSAN. | 206 # 'most' does not compile under MSAN. |
207 return ['dm', 'nanobench'] | 207 return ['dm', 'nanobench'] |
208 t = [] | 208 t = [] |
209 if do_test_steps: | 209 if do_test_steps: |
210 t.append('dm') | 210 t.append('dm') |
211 if do_perf_steps and builder_dict.get('extra_config') == 'VisualBench': | 211 if builder_dict.get('extra_config') == 'VisualBench': |
212 t.append('visualbench') | 212 t.append('visualbench') |
213 elif do_perf_steps: | 213 elif do_perf_steps: |
214 t.append('nanobench') | 214 t.append('nanobench') |
215 if t: | 215 if t: |
216 return t | 216 return t |
217 else: | 217 else: |
218 return ['most'] | 218 return ['most'] |
219 | 219 |
220 | 220 |
221 cov_skip.extend([lineno(), lineno() + 1]) | 221 cov_skip.extend([lineno(), lineno() + 1]) |
222 def device_cfg(builder_dict): | 222 def device_cfg(builder_dict): |
223 # Android. | 223 # Android. |
224 if 'Android' in builder_dict.get('extra_config', ''): | 224 if 'Android' in builder_dict.get('extra_config', ''): |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 def self_test(): | 351 def self_test(): |
352 import coverage # This way the bots don't need coverage.py to be installed. | 352 import coverage # This way the bots don't need coverage.py to be installed. |
353 args = {} | 353 args = {} |
354 cases = [ | 354 cases = [ |
355 'Build-Mac10.8-Clang-Arm7-Debug-Android', | 355 'Build-Mac10.8-Clang-Arm7-Debug-Android', |
356 'Build-Win-MSVC-x86-Debug', | 356 'Build-Win-MSVC-x86-Debug', |
357 'Build-Win-MSVC-x86-Debug-GDI', | 357 'Build-Win-MSVC-x86-Debug-GDI', |
358 'Build-Win-MSVC-x86-Debug-Exceptions', | 358 'Build-Win-MSVC-x86-Debug-Exceptions', |
359 'Build-Ubuntu-GCC-Arm7-Debug-Android_FrameworkDefs', | 359 'Build-Ubuntu-GCC-Arm7-Debug-Android_FrameworkDefs', |
360 'Build-Ubuntu-GCC-Arm7-Debug-Android_NoNeon', | 360 'Build-Ubuntu-GCC-Arm7-Debug-Android_NoNeon', |
| 361 'Build-Ubuntu-GCC-x86_64-Release-ANGLE', |
| 362 'Build-Ubuntu-GCC-x64_64-Release-Fast', |
361 'Build-Ubuntu-GCC-x86_64-Release-Mesa', | 363 'Build-Ubuntu-GCC-x86_64-Release-Mesa', |
362 'Build-Ubuntu-GCC-x86_64-Release-ANGLE', | |
363 'Housekeeper-PerCommit', | 364 'Housekeeper-PerCommit', |
364 'Perf-Win8-MSVC-ShuttleB-GPU-HD4600-x86_64-Release-Trybot', | 365 'Perf-Win8-MSVC-ShuttleB-GPU-HD4600-x86_64-Release-Trybot', |
365 'Perf-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-VisualBench', | 366 'Perf-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-VisualBench', |
366 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Debug', | 367 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Debug', |
367 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release-Appurify', | 368 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release-Appurify', |
368 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', | 369 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', |
369 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | 370 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
370 'Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer', | 371 'Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer', |
371 'Test-Mac10.8-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', | 372 'Test-Mac10.8-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', |
372 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage', | 373 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage', |
| 374 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', |
373 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-' | 375 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-' |
374 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE'), | 376 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE'), |
375 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD', | 377 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD', |
376 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Fast', | 378 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Fast', |
377 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', | 379 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', |
378 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 380 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
379 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan', | 381 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan', |
380 'Test-Win8-MSVC-ShuttleB-GPU-HD4600-x86-Release-ANGLE', | 382 'Test-Win8-MSVC-ShuttleB-GPU-HD4600-x86-Release-ANGLE', |
381 'Test-Win8-MSVC-ShuttleA-CPU-AVX-x86_64-Debug', | 383 'Test-Win8-MSVC-ShuttleA-CPU-AVX-x86_64-Debug', |
382 ] | 384 ] |
(...skipping 21 matching lines...) Expand all Loading... |
404 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 406 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
405 self_test() | 407 self_test() |
406 sys.exit(0) | 408 sys.exit(0) |
407 | 409 |
408 if len(sys.argv) != 3: | 410 if len(sys.argv) != 3: |
409 print usage | 411 print usage |
410 sys.exit(1) | 412 sys.exit(1) |
411 | 413 |
412 with open(sys.argv[1], 'w') as out: | 414 with open(sys.argv[1], 'w') as out: |
413 json.dump(get_builder_spec(sys.argv[2]), out) | 415 json.dump(get_builder_spec(sys.argv[2]), out) |
OLD | NEW |