Home | History | Annotate | Download | only in network_3GModemPresent
      1 # Copyright (c) 2013 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_3GModemPresent.pseudomodem"
      7 PURPOSE = "Verify 3G modem is visible to Flimflam."
      8 CRITERIA = """
      9 This test will fail if neither Cromo nor ModemManager is exporting a modem
     10 device via flimflam.
     11 """
     12 ATTRIBUTES = "suite:network3g_pseudomodem"
     13 SUITE = "network3g_pseudomodem"
     14 TIME = "SHORT"
     15 TEST_CATEGORY = "Functional"
     16 TEST_CLASS = "network"
     17 TEST_TYPE = "client"
     18 
     19 DOC = """
     20   Tests that a 3G modem is available.
     21 
     22   The test attempts to find a flimflam device corresponding to a
     23   cellular modem.
     24 
     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_3GModemPresent', test_env=test_env,
     33              tag='pseudomodem_3GPP')
     34 
     35 # CDMA
     36 test_env = test_environment.CellularPseudoMMTestEnvironment(
     37         pseudomm_args=({'family': 'CDMA'},))
     38 job.run_test('network_3GModemPresent', test_env=test_env,
     39              tag='pseudomodem_CDMA')
     40