blob: 1907412e67a405569427ad0859e009461114fc6d [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "Chrome OS Team"
NAME = "Network3G"
TIME = "SHORT"
TEST_CATEGORY = "Functional"
TEST_CLASS = "suite"
TEST_TYPE = "server"
DOC = """
This test suite runs automated 3G tests that should all pass.
"""
from autotest_lib.server import site_host_attributes
from autotest_lib.client.common_lib import error
# List of tests to be run.
CLIENT_TESTS = [
'network_3GModemPresent',
'network_3GSmokeTest'
]
SERVER_TESTS = [
'network_3GLoadFirmware',
]
def run_client_test(machine):
client = hosts.create_host(machine)
client_attributes = site_host_attributes.HostAttributes(machine)
client_at = autotest.Autotest(client)
if not client_attributes.has_3g:
raise error.TestNAError(
"Machine does not have a 3G module or is not labeled as having one.")
for test in CLIENT_TESTS:
client_at.run_test(test)
def run_server_test(machine):
host = hosts.create_host(machine)
for test in SERVER_TESTS:
job.run_test(test, host=host)
job.parallel_on_machines(run_client_test, machines)
parallel_simple(run_server_test, machines)