• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2015 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.11b'
7# TODO(b/168842922) Schedule the test when it is fixed
8ATTRIBUTES = ''
9TIME = 'MEDIUM'
10TEST_TYPE = 'Server'
11DEPENDENCIES = 'wificell, working_bluetooth_btpeer:1'
12
13DOC = """
14This test uses netperf to measure the maximal receiving and transmitting
15throughput on a DUT with an open 802.11b network while operating bluetooth.
16"""
17
18
19from autotest_lib.server import utils
20from autotest_lib.server.cros.network import hostap_config
21
22args_dict = utils.args_to_dict(args)
23btpeer_args = hosts.CrosHost.get_btpeer_arguments(args_dict)
24
25def run(machine):
26    host = hosts.create_host(machine)
27    host.initialize_btpeer(btpeer_args)
28    mode = hostap_config.HostapConfig.MODE_11B
29    configs = [hostap_config.HostapConfig(channel=channel, mode=mode)
30               for channel in (6,)]
31    job.run_test('network_WiFi_BluetoothStreamPerf', tag=NAME.split('.')[1],
32                 host=host, raw_cmdline_args=args,
33                 additional_params=configs)
34
35
36parallel_simple(run, machines)
37