Home | History | Annotate | Download | only in network_3GIdentifiers
      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_3GIdentifiers.pseudomodem"
      7 PURPOSE = "Verify cellular modem provides correct identification information."
      8 CRITERIA = """
      9 This test will fail if one of the following conditions occur:
     10   - Cellular modem does not provide an identifier
     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 DOC = """
     19   Tests that a cellular modem provides correct identification information
     20 
     21   The test queries the modem for the following identifiers:
     22     - MEID
     23     - IMEI
     24     - IMSI
     25     - ICCID
     26     - SIM operator ID
     27 """
     28 
     29 import os
     30 
     31 from autotest_lib.client.cros.cellular import test_environment
     32 
     33 test_module_path = os.path.join(
     34         job.testdir, 'network_3GIdentifiers', 'network_3GIdentifiers.py')
     35 test_env = test_environment.CellularPseudoMMTestEnvironment(
     36         pseudomm_args=({'family': '3GPP',
     37                         'test-module' : test_module_path,
     38                         'test-sim-class' : 'TestSIM'},))
     39 job.run_test('network_3GIdentifiers',  tag='pseudomodem', test_env=test_env)
     40