Home | History | Annotate | Download | only in power_UiResume
      1 # Copyright 2017 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_UiResume.SuspendToRam"
      7 PURPOSE = "Measure the time it takes to resume from suspend-to-ram."
      8 CRITERIA = "This test is a benchmark."
      9 ATTRIBUTES = "suite:power_build"
     10 TIME = "SHORT"
     11 TEST_CATEGORY = "Logging"
     12 TEST_CLASS = "power"
     13 TEST_TYPE = "client"
     14 
     15 DOC = """
     16 This test will search /var/log/messages for pertinent strings to determine if
     17 the cpu is sleeping. It will wait for a number of seconds before suspending to
     18 ram. It will then calculate how many seconds the system was suspended, and
     19 how many seconds it took to resume. It will also parse the ARC logcat to measure
     20 how many seconds it took for ARC to suspend and then resume. As a precaution it
     21 will ensure your network interface is UP after it has resumed.
     22 """
     23 
     24 job.run_test('power_UiResume', ignore_kernel_warns=True, suspend_state='mem')
     25