• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5from autotest_lib.server import utils
6
7AUTHOR = 'chromeos-chameleon'
8NAME = 'bluetooth_AdapterStandalone'
9PURPOSE = 'Test bluetooth adapter standalone without connection.'
10CRITERIA = 'Adapter should work in correct states.'
11ATTRIBUTES = 'suite:bluetooth, suite:bluetooth_sanity'
12TIME = 'SHORT'
13TEST_CATEGORY = 'Functional'
14TEST_CLASS = 'bluetooth'
15TEST_TYPE = 'server'
16DEPENDENCIES = 'bluetooth'
17
18DOC = """
19Verify that the bluetooth adapter of the DUT works properly standalone
20without connecting to other devices.
21
22Specifically, 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
39args_dict = utils.args_to_dict(args)
40chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict)
41
42def run(machine):
43    host = hosts.create_host(machine, chameleon_args=chameleon_args)
44    job.run_test('bluetooth_AdapterStandalone', host=host)
45
46parallel_simple(run, machines)
47