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 TIME = "SHORT"
     14 TEST_CATEGORY = "Functional"
     15 TEST_CLASS = "network"
     16 TEST_TYPE = "client"
     17 
     18 DOC = """
     19   Tests that a 3G modem is available.
     20 
     21   The test attempts to find a flimflam device corresponding to a
     22   cellular modem.
     23 
     24 """
     25 
     26 from autotest_lib.client.cros.cellular import test_environment
     27 
     28 # 3GPP
     29 test_env = test_environment.CellularPseudoMMTestEnvironment(
     30         pseudomm_args=({'family': '3GPP'},))
     31 job.run_test('network_3GModemPresent', test_env=test_env,
     32              tag='pseudomodem_3GPP')
     33 
     34 # CDMA
     35 test_env = test_environment.CellularPseudoMMTestEnvironment(
     36         pseudomm_args=({'family': 'CDMA'},))
     37 job.run_test('network_3GModemPresent', test_env=test_env,
     38              tag='pseudomodem_CDMA')
     39