Home | History | Annotate | Download | only in power_SuspendStress
      1 # Copyright (c) 2016 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 = "Chrome OS Team"
      6 NAME = "power_SuspendStress.4hours"
      7 ATTRIBUTES = "suite:jailed_build"
      8 PURPOSE = "Run repeated iterations of suspend/resume to find rare errors."
      9 TIME = "MEDIUM"
     10 TEST_CATEGORY = "Functional"
     11 TEST_CLASS = "power"
     12 TEST_TYPE = "client"
     13 
     14 DOC = """
     15 Runs four hours of bare suspend/resume cycles without additional workload.
     16 Follows this by a few short checks to make sure the system is still in a good
     17 state (work in progress, feel free to add some more).
     18 """
     19 
     20 # In 4 hours of runs, we need to make sure the DUT can keep the autoserv SSH
     21 # connection alive a few times. Increase the time "awake" to 0 to 8 seconds,
     22 # to occasionally leave more time for some network traffic.
     23 # Tested with the current default autoserv connection parameters:
     24 # ServerAliveInterval=900 ServerAliveCountMax=3
     25 job.run_test('power_SuspendStress', duration=14400, tag='bare', max_resume_window=8)
     26 
     27 job.run_test('hardware_EC', tag='power_SuspendStress')
     28 job.run_test('login_LoginSuccess', tag='power_SuspendStress')
     29 job.run_test('hardware_TPMCheck', tag='power_SuspendStress')
     30 job.run_test('audio_Aplay', tag='power_SuspendStress')
     31