Zachary Marcus | 61304a9 | 2018-04-12 16:03:16 -0700 | [diff] [blame^] | 1 | # 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 | |
| 5 | AUTHOR = 'zmarcus' |
| 6 | NAME = 'network_WiFi_AssocConfigPerformance' |
| 7 | TIME = 'SHORT' |
| 8 | TEST_TYPE = 'Server' |
| 9 | # ATTRIBUTES = ('suite:wifi_perf') |
| 10 | DEPENDENCIES = 'wificell' |
| 11 | |
| 12 | DOC = """ |
| 13 | Tests the time taken to authenticate, associate, and get an IP. |
| 14 | Also measures the speed of resuming a connection after a suspend |
| 15 | """ |
| 16 | |
| 17 | |
| 18 | from autotest_lib.client.common_lib.cros.network import xmlrpc_datatypes |
| 19 | from autotest_lib.server.cros.network import hostap_config |
| 20 | |
| 21 | |
| 22 | def 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 | |
| 39 | parallel_simple(run, machines) |