Home | History | Annotate | Download | only in bluetooth_AdapterStandalone
      1 # Copyright 2016 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 from autotest_lib.server import utils
      6 
      7 AUTHOR = 'chromeos-chameleon'
      8 NAME = 'bluetooth_AdapterStandalone'
      9 PURPOSE = 'Test bluetooth adapter standalone without connection.'
     10 CRITERIA = 'Adapter should work in correct states.'
     11 ATTRIBUTES = 'suite:bluetooth, suite:bluetooth_sanity'
     12 TIME = 'SHORT'
     13 TEST_CATEGORY = 'Functional'
     14 TEST_CLASS = 'bluetooth'
     15 TEST_TYPE = 'server'
     16 DEPENDENCIES = 'bluetooth'
     17 
     18 DOC = """
     19 Verify that the bluetooth adapter of the DUT works properly standalone
     20 without connecting to other devices.
     21 
     22 Specifically, the following subtests are executed in this autotest.
     23     - test_start_bluetoothd
     24     - test_stop_bluetoothd
     25     - test_adapter_work_state
     26     - test_power_on_adapter
     27     - test_power_off_adapter
     28     - test_reset_on_adapter
     29     - test_reset_off_adapter
     30     - test_UUIDs
     31     - test_start_discovery
     32     - test_stop_discovery
     33     - test_discoverable
     34     - test_nondiscoverable
     35     - test_pairable
     36     - test_nonpairable
     37 """
     38 
     39 args_dict = utils.args_to_dict(args)
     40 chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict)
     41 
     42 def run(machine):
     43     host = hosts.create_host(machine, chameleon_args=chameleon_args)
     44     job.run_test('bluetooth_AdapterStandalone', host=host)
     45 
     46 parallel_simple(run, machines)
     47