• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 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 = 'chromeos-bluetooth'
6NAME = 'bluetooth_AdapterAdvHealth.adv_reboot_advertising_test'
7PURPOSE = 'Test bluetooth adapter advertising.'
8CRITERIA = 'Adapter should advertise with correct parameters.'
9ATTRIBUTES = 'suite:bluetooth_flaky'
10TIME = 'SHORT'  # ~3 minutes on Eve
11MAX_RESULT_SIZE_KB = 128000
12TEST_CATEGORY = 'Functional'
13TEST_CLASS = 'bluetooth'
14TEST_TYPE = 'server'
15DEPENDENCIES = 'bluetooth'
16
17DOC = """
18This test case verifies that the Bluetooth adapter of the DUT can
19behave as a Bluetooth low-energy device and advertise correctly around
20the adapter being power-cycled.
21
22This autotest include the following test cases:
23    self.test_case_SI200_RA3_CD_PC_CD_UA3()
24    self.test_case_RA3_CD_SI200_CD_PC_CD_UA3()
25    self.test_case_RA1_CD_SI200_CD_PC_CD_UA1()
26
27Mnemonics of the test cases:
28    CD: check advertising duration and intervals
29    RA: register advertisements
30    UA: unregister advertisements
31    SI: set advertising intervals
32    RS: reset advertising
33    FRA: fail to register extra advertisements when max ones have
34         been registered.
35    FSI: fail to set advertising intervals beyond legitimate range
36         of [20 ms, 10,240 ms].
37    PC: power cycle the bluetooth adapter (controller).
38    SR: suspend and resume the DUT (chromebook)
39
40"""
41
42def run(machine):
43    host = hosts.create_host(machine)
44    job.run_test('bluetooth_AdapterAdvHealth', host=host, num_iterations=1,
45                 test_name=NAME.split('.')[1], peer_required=False)
46
47parallel_simple(run, machines)
48