xref: /aosp_15_r20/external/autotest/client/site_tests/power_Resume/control.freeze (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright 2022 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.
4AUTHOR = 'ChromeOS Team'
5NAME = 'power_Resume.freeze'
6PURPOSE = 'Measure the time it takes to resume from suspend type freeze.'
7TIME = 'SHORT'
8TEST_TYPE = 'client'
9PY_VERSION = 3
10DOC = """
11This test will search /var/log/messages for pertinent strings to determine if
12the cpu is sleeping. It will wait for a number of seconds before suspending to
13ram. It will then calculate how many seconds the system was suspended, and
14how many seconds it took to resume. As a precaution it will ensure your
15network interface is UP after it has resumed.
16"""
17
18job.add_sysinfo_command('cbmem -c', logfile='bios_log', on_every_test=True)
19job.add_sysinfo_command('cbmem -t', logfile='bios_times', on_every_test=True)
20job.run_test('power_Resume', tag=NAME.split('.')[1], suspend_state='freeze')
21