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 = "cellular_Smoke.pseudomodem"
7PURPOSE = "Verify 3G modem can connect to the network."
8CRITERIA = """
9This test will fail if one of the following conditions occur:
10  - 3G modem fails to connect to network
11  - the modem is not left in a working state
12"""
13ATTRIBUTES = "suite:cellular_pseudomodem"
14TIME = "SHORT"
15TEST_CATEGORY = "Functional"
16TEST_CLASS = "network"
17TEST_TYPE = "client"
18DOC = """
19  Tests that 3G modem can connect to the network
20
21  The test attempts to connect using the 3G network. The test then
22  disconnects from the network, and verifies that the modem still
23  responds to modem manager DBUS API calls.  It repeats the
24  connect/disconnect sequence several times.
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('cellular_Smoke', tag='pseudomodem_3GPP', test_env=test_env)
33
34# CDMA
35test_env = test_environment.CellularPseudoMMTestEnvironment(
36        pseudomm_args=({'family': 'CDMA'},))
37job.run_test('cellular_Smoke', tag='pseudomodem_CDMA', test_env=test_env)
38