blob: cbbcef6ac4404194d4b156c61a4808459d2b7cb4 [file] [log] [blame]
# Copyright 2022 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 = 'ChromeOS Team'
NAME = 'power_Resume.mem'
PURPOSE = 'Measure the time it takes to resume from suspend type mem.'
TIME = 'SHORT'
TEST_TYPE = 'client'
PY_VERSION = 3
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. As a precaution it will ensure your
network interface is UP after it has resumed.
"""
job.add_sysinfo_command('cbmem -c', logfile='bios_log', on_every_test=True)
job.add_sysinfo_command('cbmem -t', logfile='bios_times', on_every_test=True)
job.run_test('power_Resume', tag=NAME.split('.')[1], suspend_state='mem')