Home | History | Annotate | Download | only in bluetooth_Sanity_LEDiscovery
      1 # Copyright 2014 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 
      5 AUTHOR = 'keybuk (a] chromium.org'
      6 NAME = 'bluetooth_Sanity_LEDiscovery'
      7 ATTRIBUTES = "suite:bluetooth, suite:bluetooth_sanity"
      8 SUITE = 'bluetooth,bluetooth_sanity'
      9 TIME = 'SHORT'
     10 TEST_CLASS = 'bluetooth'
     11 TEST_TYPE = 'Server'
     12 DEPENDENCIES = 'bluetooth,wificell,router:panther'
     13 
     14 DOC = """
     15 Verify that the device can discover Bluetooth Low Energy peripheral.
     16 
     17 This is a useful sanity check because it tests basic functionality of the
     18 radio and host subsystem when in LE mode.
     19 """
     20 
     21 from autotest_lib.server.cros.bluetooth import bluetooth_tester
     22 from autotest_lib.server import utils
     23 
     24 
     25 args_dict = utils.args_to_dict(args)
     26 
     27 def 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_LEDiscovery',
     31                  device_host=device_host,
     32                  tester_host=tester_host,
     33                  interactive=False)
     34 
     35 
     36 parallel_simple(run, machines)
     37