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 5from autotest_lib.server import utils 6 7AUTHOR = 'chromeos-bluetooth' 8NAME = 'bluetooth_AdapterAdvMonitor' 9PURPOSE = ('batch of Bluetooth Advertisement Monitor tests') 10CRITERIA = 'All tests should pass' 11TIME = 'LONG' # ~10 minutes 12TEST_CATEGORY = 'Functional' 13ATTRIBUTES = 'suite:bluetooth_qualification' 14TEST_CLASS = 'bluetooth' 15TEST_TYPE = 'server' 16DEPENDENCIES = 'bluetooth, working_bluetooth_btpeer:2' 17 18DOC = """ 19 A Batch of Bluetooth Advertisement Monitor API tests. This test is written 20 as a batch of tests in order to reduce test time, since auto-test ramp up 21 time is costly. The batch is using BluetoothAdapterQuickTests wrapper 22 methods to start and end a test and a batch of tests. 23 24 This class can be called to run the entire test batch or to run a specific 25 test only. More information about the tests can be found here: 26 go/bt-advmon-api-test-plan 27 28 """ 29 30args_dict = utils.args_to_dict(args) 31 32def run(machine): 33 host = hosts.create_host(machine) 34 job.run_test('bluetooth_AdapterAdvMonitor', 35 host=host, 36 num_iterations=1, 37 args_dict=args_dict) 38 39parallel_simple(run, machines) 40