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 SUITE = "cell_emulator"
     11 TIME = "SHORT"
     12 TEST_CATEGORY = "Functional"
     13 TEST_CLASS = "network"
     14 TEST_TYPE = "client"
     15 
     16 DOC = """
     17   Test that a modem can reregister after the network technology abruptly
     18   changes.
     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 # One can only roam with a given technology family
     31 job.run_test('cellular_Signal',
     32              config=config,
     33              technologies=gsm_technologies,
     34              wait_for_disc=True,
     35              verify_set_power=False,
     36              tag='GSM.Wait')
     37 
     38 job.run_test('cellular_Signal',
     39              config=config,
     40              technologies=gsm_technologies,
     41              wait_for_disc=False,
     42              verify_set_power=False,
     43              tag='GSM.NoWait')
     44 
     45 # TODO(jglasgow): run tests for CDMA technologies
     46