blob: 1e7fe765508bc2e0c8bdf7ed7121272c57db0c74 [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "Chrome OS Team"
NAME = "power_UiResume.SuspendToRam"
PURPOSE = "Measure the time it takes to resume from suspend-to-ram."
CRITERIA = "This test is a benchmark."
ATTRIBUTES = "suite:power_build"
TEST_CLASS = "power"
TEST_TYPE = "client"
DOC = """
This test will search /var/log/messages for pertinent strings to determine if
the cpu is sleeping. It will wait for a number of seconds before suspending to
ram. It will then calculate how many seconds the system was suspended, and
how many seconds it took to resume. It will also parse the ARC logcat to measure
how many seconds it took for ARC to suspend and then resume. As a precaution it
will ensure your network interface is UP after it has resumed.
job.run_test('power_UiResume', ignore_kernel_warns=True, suspend_state='mem')