• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5AUTHOR = "ChromeOS Team"
6NAME = "network_3GModemControl.pseudomodem"
7PURPOSE = "Verify commands sent to a modem manager are reflected in shill."
8CRITERIA = """
9This test will fail if modem manager state differs from shill state.
10"""
11ATTRIBUTES = "suite:network3g_pseudomodem"
12TIME = "SHORT"
13TEST_CATEGORY = "Functional"
14TEST_CLASS = "network"
15TEST_TYPE = "client"
16
17DOC = """
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
27from autotest_lib.client.cros.cellular import test_environment
28
29# 3GPP
30test_env = test_environment.CellularPseudoMMTestEnvironment(
31        pseudomm_args=({'family': '3GPP'},))
32job.run_test('network_3GModemControl', test_env=test_env, autoconnect=False,
33             tag='no-autoconnect-pseudomodem.3GPP')
34job.run_test('network_3GModemControl', test_env=test_env, autoconnect=True,
35             tag='autoconnect-pseudomodem.3GPP')
36
37# CDMA
38test_env = test_environment.CellularPseudoMMTestEnvironment(
39        pseudomm_args=({'family': 'CDMA'},))
40job.run_test('network_3GModemControl', test_env=test_env, autoconnect=False,
41             tag='no-autoconnect-pseudomodem.CDMA')
42job.run_test('network_3GModemControl', test_env=test_env, autoconnect=True,
43             tag='autoconnect-pseudomodem.CDMA')
44