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