42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
|
|
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
||
|
|
# Use of this source code is governed by a BSD-style license that can be
|
||
|
|
# found in the LICENSE file.
|
||
|
|
|
||
|
|
AUTHOR = "ChromeOS Team"
|
||
|
|
NAME = "network_EthernetStressPlug"
|
||
|
|
PURPOSE = "Stress-test Ethernet plug/unplug"
|
||
|
|
CRITERIA = """
|
||
|
|
This test fails if device fails to obtain dhcp through ethernet.
|
||
|
|
"""
|
||
|
|
PY_VERSION = 3
|
||
|
|
|
||
|
|
# Note: This test is currently only intended for manual runs in
|
||
|
|
# a "well controlled" enviroment. In other words, document the
|
||
|
|
# configuration (DUT mfg/model, Ethernet mfg/model, OS version, etc.)
|
||
|
|
# and test results (histogram).
|
||
|
|
TIME = "SHORT"
|
||
|
|
TEST_CATEGORY = "Stress"
|
||
|
|
TEST_CLASS = "network"
|
||
|
|
TEST_TYPE = "client"
|
||
|
|
|
||
|
|
DOC = """
|
||
|
|
Stress-tests simulating plugging/unplugging the ethernet dongle.
|
||
|
|
"""
|
||
|
|
|
||
|
|
# We want the default number of loops per test run
|
||
|
|
# to be 100.
|
||
|
|
num_iterations = 100
|
||
|
|
interface=None # autodetect interface
|
||
|
|
|
||
|
|
# Parse comma-separated args.
|
||
|
|
for arg in args:
|
||
|
|
for item in arg.split(','):
|
||
|
|
key, val = item.split('=')
|
||
|
|
if key == 'num_iterations':
|
||
|
|
num_iterations = int(val)
|
||
|
|
if key == 'interface':
|
||
|
|
interface = val
|
||
|
|
|
||
|
|
job.run_test('network_EthernetStressPlug', num_iterations=num_iterations,
|
||
|
|
interface=interface)
|