1# Copyright 2020 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 5AUTHOR = "ChromeOS Team" 6NAME = "power_Resume.iterations" 7PURPOSE = "Measure the amount of time it takes to resume from suspend." 8CRITERIA = "This test is a benchmark." 9ATTRIBUTES = "suite:crosbolt_perf_perbuild" 10TIME = "SHORT" 11TEST_CATEGORY = "Logging" 12TEST_CLASS = "power" 13TEST_TYPE = "client" 14PY_VERSION = 3 15 16DOC = """ 17This test will search /var/log/messages for pertinent strings to determine if 18the cpu is sleeping. It will wait for a number of seconds before suspending to 19ram. It will then calculate how many seconds the system was suspended, and 20how many seconds it took to resume. As a precaution it will ensure your 21network interface is UP after it has resumed. 22""" 23 24job.add_sysinfo_command('cbmem -c', logfile='bios_log', on_every_test=True) 25job.add_sysinfo_command('cbmem -t', logfile='bios_times', on_every_test=True) 26job.run_test('power_Resume', ignore_kernel_warns=True, suspend_iterations=50, iteration_delay=10) 27