| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 else: | 254 else: |
| 255 configuration = builder_dict.get( | 255 configuration = builder_dict.get( |
| 256 'configuration', CONFIG_DEBUG) | 256 'configuration', CONFIG_DEBUG) |
| 257 arch = (builder_dict.get('arch') or builder_dict.get('target_arch')) | 257 arch = (builder_dict.get('arch') or builder_dict.get('target_arch')) |
| 258 if ('Win' in builder_dict.get('os', '') and arch == 'x86_64'): | 258 if ('Win' in builder_dict.get('os', '') and arch == 'x86_64'): |
| 259 configuration += '_x64' | 259 configuration += '_x64' |
| 260 rv['configuration'] = configuration | 260 rv['configuration'] = configuration |
| 261 rv['do_test_steps'] = role == builder_name_schema.BUILDER_ROLE_TEST | 261 rv['do_test_steps'] = role == builder_name_schema.BUILDER_ROLE_TEST |
| 262 rv['do_perf_steps'] = (role == builder_name_schema.BUILDER_ROLE_PERF or | 262 rv['do_perf_steps'] = (role == builder_name_schema.BUILDER_ROLE_PERF or |
| 263 (role == builder_name_schema.BUILDER_ROLE_TEST and | 263 (role == builder_name_schema.BUILDER_ROLE_TEST and |
| 264 configuration == CONFIG_DEBUG) or | 264 configuration == CONFIG_DEBUG)) |
| 265 'Valgrind' in builder_name) | 265 if 'Valgrind' in builder_name: |
| 266 rv['do_perf_steps'] = True |
| 267 if 'GalaxyS4' in builder_name: |
| 268 rv['do_perf_steps'] = False |
| 269 |
| 266 rv['build_targets'] = build_targets_from_builder_dict( | 270 rv['build_targets'] = build_targets_from_builder_dict( |
| 267 builder_dict, rv['do_test_steps'], rv['do_perf_steps']) | 271 builder_dict, rv['do_test_steps'], rv['do_perf_steps']) |
| 268 | 272 |
| 269 # Do we upload perf results? | 273 # Do we upload perf results? |
| 270 upload_perf_results = False | 274 upload_perf_results = False |
| 271 if role == builder_name_schema.BUILDER_ROLE_PERF: | 275 if role == builder_name_schema.BUILDER_ROLE_PERF: |
| 272 upload_perf_results = True | 276 upload_perf_results = True |
| 273 rv['upload_perf_results'] = upload_perf_results | 277 rv['upload_perf_results'] = upload_perf_results |
| 274 | 278 |
| 275 # Do we upload correctness results? | 279 # Do we upload correctness results? |
| (...skipping 26 matching lines...) Expand all Loading... |
| 302 'Build-Win-MSVC-x86-Debug-GDI', | 306 'Build-Win-MSVC-x86-Debug-GDI', |
| 303 'Build-Win-MSVC-x86-Debug-Exceptions', | 307 'Build-Win-MSVC-x86-Debug-Exceptions', |
| 304 'Build-Ubuntu-GCC-Arm7-Debug-Android_FrameworkDefs', | 308 'Build-Ubuntu-GCC-Arm7-Debug-Android_FrameworkDefs', |
| 305 'Build-Ubuntu-GCC-Arm7-Debug-Android_NoNeon', | 309 'Build-Ubuntu-GCC-Arm7-Debug-Android_NoNeon', |
| 306 'Build-Ubuntu-GCC-Arm7-Debug-CrOS_Daisy', | 310 'Build-Ubuntu-GCC-Arm7-Debug-CrOS_Daisy', |
| 307 'Build-Ubuntu-GCC-x86_64-Debug-CrOS_Link', | 311 'Build-Ubuntu-GCC-x86_64-Debug-CrOS_Link', |
| 308 'Build-Ubuntu-GCC-x86_64-Release-Mesa', | 312 'Build-Ubuntu-GCC-x86_64-Release-Mesa', |
| 309 'Build-Ubuntu-GCC-x86_64-Release-ANGLE', | 313 'Build-Ubuntu-GCC-x86_64-Release-ANGLE', |
| 310 'Housekeeper-PerCommit', | 314 'Housekeeper-PerCommit', |
| 311 'Perf-Win8-MSVC-ShuttleB-GPU-HD4600-x86_64-Release-Trybot', | 315 'Perf-Win8-MSVC-ShuttleB-GPU-HD4600-x86_64-Release-Trybot', |
| 316 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Debug', |
| 312 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release-Appurify', | 317 'Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release-Appurify', |
| 313 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', | 318 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', |
| 314 'Test-ChromeOS-GCC-Link-CPU-AVX-x86_64-Debug', | 319 'Test-ChromeOS-GCC-Link-CPU-AVX-x86_64-Debug', |
| 315 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | 320 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
| 316 'Test-Mac10.8-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', | 321 'Test-Mac10.8-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', |
| 317 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage', | 322 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage', |
| 318 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-' | 323 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-' |
| 319 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE'), | 324 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE'), |
| 320 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD', | 325 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD', |
| 321 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', | 326 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', |
| (...skipping 25 matching lines...) Expand all Loading... |
| 347 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 352 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 348 self_test() | 353 self_test() |
| 349 sys.exit(0) | 354 sys.exit(0) |
| 350 | 355 |
| 351 if len(sys.argv) != 3: | 356 if len(sys.argv) != 3: |
| 352 print usage | 357 print usage |
| 353 sys.exit(1) | 358 sys.exit(1) |
| 354 | 359 |
| 355 with open(sys.argv[1], 'w') as out: | 360 with open(sys.argv[1], 'w') as out: |
| 356 json.dump(get_builder_spec(sys.argv[2]), out) | 361 json.dump(get_builder_spec(sys.argv[2]), out) |
| OLD | NEW |