| # 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_GobiUncleanDisconnect', |
| 'network_3GDisableWhileConnecting', |
| 'network_3GModemPresent', |
| 'network_3GRecoverFromGobiDesync', |
| 'network_3GSafetyDance', |
| 'network_3GSmokeTest', |
| 'network_3GStressEnable', |
| 'network_3GSuspendResume' |
| |
| # These tests shouldn't be run on activated devices. |
| # 'network_3GActivate', |
| # 'network_3GFailedConnect', |
| ] |
| |
| SERVER_TESTS = [ |
| 'network_3GLoadFirmware' |
| ] |
| |
| |
| def run_tests(machine): |
| client = hosts.create_host(machine) |
| client_attributes = site_host_attributes.HostAttributes(machine) |
| client_at = autotest.Autotest(client) |
| |
| for test in CLIENT_TESTS: |
| client_at.run_test(test) |
| |
| for test in SERVER_TESTS: |
| job.run_test(test, host=client) |
| |
| |
| job.parallel_on_machines(run_tests, machines) |