| # Copyright 2020 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # Validate that we can register an advertisement that uses the 'broadcast' mode, |
| # which may configure alternate advertising intervals, and uses a random |
| # address. |
| # |
| # Purpose: Test broadcast advertising capabilities. |
| |
| # Deprecated variables: |
| # TIME = 'SHORT' # ~2 minutes on hatch |
| # TEST_CATEGORY = 'Functional' |
| |
| NAME = 'bluetooth_AdapterAdvHealth.adv_broadcast_test' |
| METADATA = { |
| 'contacts': ['chromeos-bt-team@google.com'], |
| # ChromeOS > Platform > Connectivity > Bluetooth |
| 'bug_component': 'b:167317', |
| 'criteria': 'Adapter should advertise with correct parameters.', |
| 'hw_agnostic': False, |
| 'variant_category': '{"name": "BT_Chipset_Kernel"}', |
| 'life_cycle_stage': 'owner_monitored', |
| 'requirements': ['bt-gen-0001-v01'], |
| } |
| |
| ATTRIBUTES = 'suite:bluetooth_sa2' |
| MAX_RESULT_SIZE_KB = 128000 |
| TEST_TYPE = 'server' |
| DEPENDENCIES = 'bluetooth_state:NORMAL' |
| |
| |
| def run(machine): |
| host = hosts.create_host(machine) |
| job.run_test('bluetooth_AdapterAdvHealth', host=host, num_iterations=1, |
| tag='.'.join(NAME.split('.')[1:]), |
| test_name=NAME.split('.')[1], peer_required=False) |
| |
| parallel_simple(run, machines) |