• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2017 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 = "Chrome OS Team"
6NAME = "power_Resume.SuspendToRam"
7PURPOSE = "Measure the time it takes to resume from suspend-to-ram."
8CRITERIA = "This test is a benchmark."
9ATTRIBUTES = "suite:power_build"
10TIME = "SHORT"
11TEST_CATEGORY = "Logging"
12TEST_CLASS = "power"
13TEST_TYPE = "client"
14
15DOC = """
16This test will search /var/log/messages for pertinent strings to determine if
17the cpu is sleeping. It will wait for a number of seconds before suspending to
18ram. It will then calculate how many seconds the system was suspended, and
19how many seconds it took to resume. As a precaution it will ensure your
20network interface is UP after it has resumed.
21"""
22
23job.run_test('power_Resume', ignore_kernel_warns=True, suspend_state='mem')
24