Home | History | Annotate | Download | only in network_WiMaxPresent
      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 from autotest_lib.client.bin import test
      6 from autotest_lib.client.common_lib import error
      7 from autotest_lib.client.cros.networking import wimax_proxy
      8 
      9 
     10 class network_WiMaxPresent(test.test):
     11     """Verifies that a WiMAX module can connect to a WiMAX network.
     12 
     13        This test verifies that a build can support WiMAX properly. It needs to
     14        run on a DUT with a supported WiMAX module, but does not require a WiMAX
     15        network.  It simply checks if shill creates a WiMAX device object, which
     16        verifies that:
     17        - The kernel detects a WiMAX module, loads the WiMAX driver, and
     18          downloads the WiMAX firmware to the module.
     19        - The WiMAX manager detects the WiMAX module exposed by the kernel.
     20        - The WiMAX manager is running and can communicate with shill over DBus.
     21        - shill is built with WiMAX support.
     22 
     23     """
     24     version = 1
     25 
     26 
     27     def run_once(self, **kwargs):
     28         proxy = wimax_proxy.WiMaxProxy()
     29         device = proxy.find_wimax_device_object()
     30         if not device:
     31             raise error.TestError('Could not find a WiMAX device.')
     32