xref: /aosp_15_r20/external/autotest/client/cros/ethernet/network_EthernetStressPlug/control (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright (c) 2012 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 = "ChromeOS Team"
6NAME = "network_EthernetStressPlug"
7PURPOSE = "Stress-test Ethernet plug/unplug"
8CRITERIA = """
9This test fails if device fails to obtain dhcp through ethernet.
10"""
11PY_VERSION = 3
12
13# Note: This test is currently only intended for manual runs in
14# a "well controlled" enviroment. In other words, document the
15# configuration (DUT mfg/model, Ethernet mfg/model, OS version, etc.)
16# and test results (histogram).
17TIME = "SHORT"
18TEST_CATEGORY = "Stress"
19TEST_CLASS = "network"
20TEST_TYPE = "client"
21
22DOC = """
23  Stress-tests simulating plugging/unplugging the ethernet dongle.
24"""
25
26# We want the default number of loops per test run
27# to be 100.
28num_iterations = 100
29interface=None # autodetect interface
30
31# Parse comma-separated args.
32for arg in args:
33    for item in arg.split(','):
34        key, val = item.split('=')
35        if key == 'num_iterations':
36            num_iterations = int(val)
37        if key == 'interface':
38            interface = val
39
40job.run_test('network_EthernetStressPlug', num_iterations=num_iterations,
41    interface=interface)
42