Home | History | Annotate | Download | only in network_3GModemControl
      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_3GModemControl.pseudomodem"
      7 PURPOSE = "Verify commands sent to a modem manager are reflected in shill."
      8 CRITERIA = """
      9 This test will fail if modem manager state differs from shill state.
     10 """
     11 ATTRIBUTES = "suite:network3g_pseudomodem"
     12 SUITE = "network3g_pseudomodem"
     13 TIME = "SHORT"
     14 TEST_CATEGORY = "Functional"
     15 TEST_CLASS = "network"
     16 TEST_TYPE = "client"
     17 
     18 DOC = """
     19   Tests that commands sent to ModemManager1 are reflected in shill.
     20 
     21   Issues many connect, disconnect, enable, and disable commands to
     22   ensure that the modem state is always properly reflected in shill --
     23   even if the commands are sent to the modem manager instead of shill.
     24   Uses a pseudo modem to simulate modem manager so that this test can
     25   be run on a virtual machine.
     26 """
     27 
     28 from autotest_lib.client.cros.cellular import test_environment
     29 
     30 # 3GPP
     31 test_env = test_environment.CellularPseudoMMTestEnvironment(
     32         pseudomm_args=({'family': '3GPP'},))
     33 job.run_test('network_3GModemControl', test_env=test_env, autoconnect=False,
     34              tag='no-autoconnect-pseudomodem.3GPP')
     35 job.run_test('network_3GModemControl', test_env=test_env, autoconnect=True,
     36              tag='autoconnect-pseudomodem.3GPP')
     37 
     38 # CDMA
     39 test_env = test_environment.CellularPseudoMMTestEnvironment(
     40         pseudomm_args=({'family': 'CDMA'},))
     41 job.run_test('network_3GModemControl', test_env=test_env, autoconnect=False,
     42              tag='no-autoconnect-pseudomodem.CDMA')
     43 job.run_test('network_3GModemControl', test_env=test_env, autoconnect=True,
     44              tag='autoconnect-pseudomodem.CDMA')
     45