Home | History | Annotate | Download | only in network_EthernetStressPlug
      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 
      5 AUTHOR = "ChromeOS Team"
      6 NAME = "network_EthernetStressPlug"
      7 PURPOSE = "Stress-test Ethernet plug/unplug"
      8 CRITERIA = """
      9 This test fails if device fails to obtain dhcp through ethernet.
     10 """
     11 ATTRIBUTES = "suite:stress_experimental"
     12 SUITE = "stress_experimental"
     13 
     14 TIME = "SHORT"
     15 TEST_CATEGORY = "Stress"
     16 TEST_CLASS = "network"
     17 TEST_TYPE = "client"
     18 
     19 DOC = """
     20   Stress-tests simulating plugging/unplugging the ethernet dongle.
     21 """
     22 
     23 # We want the default number of loops per test run
     24 # to be 100.
     25 num_iterations = 100
     26 
     27 # Parse comma-separated args.
     28 for arg in args:
     29     for item in arg.split(','):
     30         key, val = item.split('=')
     31         if key == 'num_iterations':
     32             num_iterations = int(val)
     33 
     34 job.run_test('network_EthernetStressPlug', num_iterations=num_iterations)
     35