blob: 14363de78d9c0f3fc5c17540b71c440638583186 [file] [log] [blame]
# Copyright 2020 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.
# TEST IS DISABLED UNTIL MIGRATED TO PYTHON 3.
# For instructions on how to: go/tauto-py3-migration
# To re-enable migrate to Python 3.
# If the test is not migrated by 1/14/22 it will be deleted.
AUTHOR = "Chrome OS Team"
NAME = "power_Resume.iterations"
PURPOSE = "Measure the amount of time it takes to resume from suspend."
CRITERIA = "This test is a benchmark."
ATTRIBUTES = "suite:crosbolt_perf_perbuild"
TIME = "SHORT"
TEST_CATEGORY = "Logging"
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. 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', ignore_kernel_warns=True, suspend_iterations=50, iteration_delay=10)