Home | History | Annotate | Download | only in cellular_ZeroSignal
      1 # Copyright (c) 2011 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 AUTHOR = "ChromeOS Team"
      6 NAME = "cellular_ZeroSignal"
      7 PURPOSE = "Verify cell modem properly deals with signal changes."
      8 CRITERIA = """Modem can loses registeration after signal is lost."""
      9 ATTRIBUTES = "suite:cell_emulator"
     10 TIME = "SHORT"
     11 TEST_CATEGORY = "Functional"
     12 TEST_CLASS = "network"
     13 TEST_TYPE = "client"
     14 
     15 DOC = """
     16   Tests that a modem loses registration when the signal stregth goes
     17   to zero and that it reregisters on a new technology when the a
     18   technology has a signal.
     19 """
     20 
     21 from autotest_lib.client.cros.cellular import cellular
     22 from autotest_lib.client.cros.cellular import labconfig
     23 
     24 
     25 config = labconfig.Configuration(args)
     26 technologies = config.get_technologies()
     27 gsm_technologies = [tech for tech in technologies
     28     if cellular.TechnologyToFamily[tech] == cellular.TechnologyFamily.UMTS]
     29 
     30 job.run_test('cellular_Signal',
     31              config=config,
     32              technologies=gsm_technologies,
     33              wait_for_disc=True,
     34              verify_set_power=True,
     35              tag='GSM.SetPower.Wait')
     36 
     37 job.run_test('cellular_Signal',
     38              config=config,
     39              technologies=gsm_technologies,
     40              wait_for_disc=False,
     41              verify_set_power=True,
     42              tag='GSM.SetPower.NoWait')
     43 
     44 # TODO(jglasgow): run tests for CDMA technologies
     45