1# Copyright (c) 2020 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5AUTHOR = 'chromeos-bluetooth'
6NAME = 'bluetooth_AdapterCLHealth.cl_adapter_discoverable_test'
7ATTRIBUTES = 'suite:bluetooth, suite:bluetooth_e2e'
8TIME = 'SHORT'
9TEST_CLASS = 'bluetooth'
10TEST_TYPE = 'Server'
11DEPENDENCIES = 'bluetooth, working_bluetooth_btpeer:1'
12
13DOC = """
14Verify that the device can be discovered from another Bluetooth device.
15
16This is a useful health check because it tests basic functionality of the
17radio and host subsystem.
18"""
19
20from autotest_lib.server import utils
21
22args_dict = utils.args_to_dict(args)
23
24def run(machine):
25    host = hosts.create_host(machine)
26    job.run_test('bluetooth_AdapterCLHealth', host=host,
27                 num_iterations=1, args_dict=args_dict,
28                 test_name=NAME.split('.')[1])
29
30parallel_simple(run, machines)