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