| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import collections | 5 import collections |
| 6 from . import steps | 6 from . import steps |
| 7 | 7 |
| 8 | 8 |
| 9 _builders = collections.defaultdict(dict) | 9 _builders = collections.defaultdict(dict) |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 if platform == 'android': | 38 if platform == 'android': |
| 39 spec['android_config'] = 'base_config' | 39 spec['android_config'] = 'base_config' |
| 40 spec['chromium_config_kwargs']['TARGET_ARCH'] = 'arm' | 40 spec['chromium_config_kwargs']['TARGET_ARCH'] = 'arm' |
| 41 spec['chromium_config_kwargs']['TARGET_PLATFORM'] = 'android' | 41 spec['chromium_config_kwargs']['TARGET_PLATFORM'] = 'android' |
| 42 spec['chromium_apply_config'].append('android') | 42 spec['chromium_apply_config'].append('android') |
| 43 spec['gclient_apply_config'].append('android') | 43 spec['gclient_apply_config'].append('android') |
| 44 return spec | 44 return spec |
| 45 | 45 |
| 46 | 46 |
| 47 def BuildSpec(platform, target_bits, build_config='Release', | 47 def BuildSpec(platform, target_bits, build_config='Release', |
| 48 gclient_config='chromium_webrtc', mb=False): | 48 gclient_config='chromium_webrtc'): |
| 49 spec = BaseSpec( | 49 spec = BaseSpec( |
| 50 bot_type='builder', | 50 bot_type='builder', |
| 51 chromium_apply_config=['dcheck', 'blink_logging_on'], | 51 chromium_apply_config=['dcheck', 'blink_logging_on', 'mb'], |
| 52 gclient_config=gclient_config, | 52 gclient_config=gclient_config, |
| 53 platform=platform, | 53 platform=platform, |
| 54 target_bits=target_bits, | 54 target_bits=target_bits, |
| 55 build_config=build_config) | 55 build_config=build_config) |
| 56 | |
| 57 if platform == 'android': | |
| 58 spec['compile_targets'] = [] | |
| 59 else: | |
| 60 spec['compile_targets'] = ['chromium_builder_webrtc'] | |
| 61 | |
| 62 if mb: | |
| 63 spec['chromium_apply_config'].append('mb') | |
| 64 | |
| 65 return spec | 56 return spec |
| 66 | 57 |
| 67 | 58 |
| 68 class WebRTCTest(steps.GTestTest): | 59 class WebRTCTest(steps.GTestTest): |
| 69 """A GTestTest with the ability to turn on perf reporting. | 60 """A GTestTest with the ability to turn on perf reporting. |
| 70 | 61 |
| 71 WebRTC is the only project that runs correctness tests with perf reporting | 62 WebRTC is the only project that runs correctness tests with perf reporting |
| 72 enabled at the same time, which differs from the chromium.perf bots. | 63 enabled at the same time, which differs from the chromium.perf bots. |
| 73 """ | 64 """ |
| 74 def __init__(self, name, args=None, perf_id=None, **runtest_kwargs): | 65 def __init__(self, name, args=None, perf_id=None, **runtest_kwargs): |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 150 |
| 160 AddBuildSpec('Win Builder', 'win', target_bits=32) | 151 AddBuildSpec('Win Builder', 'win', target_bits=32) |
| 161 AddBuildSpec('Mac Builder', 'mac') | 152 AddBuildSpec('Mac Builder', 'mac') |
| 162 AddBuildSpec('Linux Builder', 'linux') | 153 AddBuildSpec('Linux Builder', 'linux') |
| 163 | 154 |
| 164 AddTestSpec('Win7 Tester', 'chromium-webrtc-rel-7', 'win', target_bits=32) | 155 AddTestSpec('Win7 Tester', 'chromium-webrtc-rel-7', 'win', target_bits=32) |
| 165 AddTestSpec('Win8 Tester', 'chromium-webrtc-rel-win8', 'win', target_bits=32) | 156 AddTestSpec('Win8 Tester', 'chromium-webrtc-rel-win8', 'win', target_bits=32) |
| 166 AddTestSpec('Win10 Tester', 'chromium-webrtc-rel-win10', 'win', target_bits=32) | 157 AddTestSpec('Win10 Tester', 'chromium-webrtc-rel-win10', 'win', target_bits=32) |
| 167 AddTestSpec('Mac Tester', 'chromium-webrtc-rel-mac', 'mac') | 158 AddTestSpec('Mac Tester', 'chromium-webrtc-rel-mac', 'mac') |
| 168 AddTestSpec('Linux Tester', 'chromium-webrtc-rel-linux', 'linux') | 159 AddTestSpec('Linux Tester', 'chromium-webrtc-rel-linux', 'linux') |
| OLD | NEW |