Home | History | Annotate | Download | only in cellular_Signal
      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_Signal"
      7 PURPOSE = "Verify cell modem properly deals with technology changes."
      8 CRITERIA = """Modem reregisters after technology changes."""
      9 ATTRIBUTES = "suite:cell_emulator"
     10 TIME = "SHORT"
     11 TEST_CATEGORY = "Functional"
     12 TEST_CLASS = "network"
     13 TEST_TYPE = "client"
     14 
     15 DOC = """
     16   Test that a modem can reregister after the network technology abruptly
     17   changes.
     18 """
     19 
     20 from autotest_lib.client.cros.cellular import cellular
     21 from autotest_lib.client.cros.cellular import labconfig
     22 
     23 
     24 config = labconfig.Configuration(args)
     25 technologies = config.get_technologies()
     26 gsm_technologies = [tech for tech in technologies
     27     if cellular.TechnologyToFamily[tech] == cellular.TechnologyFamily.UMTS]
     28 
     29 # One can only roam with a given technology family
     30 job.run_test('cellular_Signal',
     31              config=config,
     32              technologies=gsm_technologies,
     33              wait_for_disc=True,
     34              verify_set_power=False,
     35              tag='GSM.Wait')
     36 
     37 job.run_test('cellular_Signal',
     38              config=config,
     39              technologies=gsm_technologies,
     40              wait_for_disc=False,
     41              verify_set_power=False,
     42              tag='GSM.NoWait')
     43 
     44 # TODO(jglasgow): run tests for CDMA technologies
     45