• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 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 = 'bfreed'
6NAME = 'network_WiFi_BluetoothStreamPerf.11g'
7ATTRIBUTES = 'suite:bluetooth_wifi_coex'
8# This test is flaky but adding to  'suite:bluetooth_flaky' will use up
9# a lot of lab capacity
10TIME = 'MEDIUM'
11TEST_TYPE = 'Server'
12DEPENDENCIES = 'wificell, working_bluetooth_btpeer:1'
13PY_VERSION = 3
14
15DOC = """
16This test uses netperf to measure the maximal receiving and transmitting
17throughput on a DUT with an open 802.11g network while operating bluetooth.
18"""
19
20
21from autotest_lib.server import utils
22from autotest_lib.server.cros.network import hostap_config
23
24args_dict = utils.args_to_dict(args)
25
26def run(machine):
27    host = hosts.create_host(machine)
28
29    mode = hostap_config.HostapConfig.MODE_11G
30    configs = [hostap_config.HostapConfig(channel=channel, mode=mode)
31               for channel in (6,)]
32
33    job.run_test('network_WiFi_BluetoothStreamPerf', tag=NAME.split('.')[1],
34                 host=host, raw_cmdline_args=args, args_dict=args_dict,
35                 additional_params=configs, test_name='coex_test')
36
37parallel_simple(run, machines)
38