1# Copyright (c) 2013 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 = 'keybuk@chromium.org'
6NAME = 'bluetooth_Sanity_Discoverable'
7ATTRIBUTES = "suite:bluetooth, suite:bluetooth_sanity"
8SUITE = 'bluetooth,bluetooth_sanity'
9TIME = 'SHORT'
10TEST_CLASS = 'bluetooth'
11TEST_TYPE = 'Server'
12DEPENDENCIES = 'bluetooth,wificell'
13
14DOC = """
15Verify that the device can be discovered from another Bluetooth device.
16
17This is a useful sanity check because it tests basic functionality of the
18radio and host subsystem.
19"""
20
21from autotest_lib.server.cros.bluetooth import bluetooth_tester
22from autotest_lib.server import utils
23
24
25args_dict = utils.args_to_dict(args)
26
27def run(machine):
28    device_host = hosts.create_host(machine)
29    tester_host = bluetooth_tester.create_host_from(device_host, args=args_dict)
30    job.run_test('bluetooth_Sanity_Discoverable',
31                 device_host=device_host,
32                 tester_host=tester_host,
33                 interactive=False)
34
35
36parallel_simple(run, machines)
37