blob: 57d7d7a7ce6e0797750ac14ad2b9af941d95c45a [file] [log] [blame]
Zachary Marcus61304a92018-04-12 16:03:16 -07001# Copyright (c) 2018 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 = 'zmarcus'
6NAME = 'network_WiFi_AssocConfigPerformance'
7TIME = 'SHORT'
8TEST_TYPE = 'Server'
9# ATTRIBUTES = ('suite:wifi_perf')
10DEPENDENCIES = 'wificell'
11
12DOC = """
13Tests the time taken to authenticate, associate, and get an IP.
14Also measures the speed of resuming a connection after a suspend
15"""
16
17
18from autotest_lib.client.common_lib.cros.network import xmlrpc_datatypes
19from autotest_lib.server.cros.network import hostap_config
20
21
22def run(machine):
23 channel = 36
24 n_caps = [hostap_config.HostapConfig.N_CAPABILITY_HT40]
25 mode = hostap_config.HostapConfig.MODE_11N_PURE
26
27 configurations = [hostap_config.HostapConfig(
28 channel=channel,
29 n_capabilities=n_caps,
30 mode=mode)]
31 job.run_test('network_WiFi_AssocConfigPerformance',
32 host=hosts.create_host(machine),
33 num_iterations=5,
34 suspend_duration=30,
35 raw_cmdline_args=args,
36 additional_params=configurations)
37
38
39parallel_simple(run, machines)