xref: /aosp_15_r20/external/autotest/client/site_tests/power_Standby/control.6min (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright 2018 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_Standby.6min"
7TIME = "SHORT"
8TEST_CATEGORY = "Benchmark"
9TEST_CLASS = "power"
10TEST_TYPE = "client"
11PY_VERSION = 3
12
13DOC = """
14This test measures the power draw during suspend.
15
16Test uses RTC wake to transition from suspend to S0 every sample_hours for a
17total standby time of test_hours.  The suspend to S0 transitions are added to
18  1. Validate battery use
19  2. Guarantee that suspend was maintained (no external/false wake)
20  3. Create transitions which more closely model user's interaction.
21
22The 5 minutes version is intended to use with power measurement telemetry device
23as the battery gas gauge would not be accurate enough to measure power this low.
24"""
25
26args_dict = utils.args_to_dict(args)
27pdash_note = args_dict.get('pdash_note', '')
28job.run_test('power_Standby', sample_hours=0.1, test_hours=0.1,
29             tag=NAME.split('.')[1], pdash_note=pdash_note)
30