xref: /aosp_15_r20/external/autotest/client/site_tests/power_Idle/control.fast (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright (c) 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_Idle.fast"
7PURPOSE = "Measure power usage when system is idle."
8CRITERIA = "This test is a benchmark."
9TIME = "SHORT"
10TEST_CATEGORY = "Benchmark"
11TEST_CLASS = "power"
12TEST_TYPE = "client"
13PY_VERSION = 3
14
15DOC = """
16This test records power related statistics while the system is idling.
17
18    Current tests,
19
20      | test# | seconds | display   | bluetooth |
21      -------------------------------------------
22      | 1     |  10     | off       | off       |
23      | 2     |  10     | default   | off       |
24      | 3     |  10     | default   | on - idle |
25      | 4     |  10     | off       | on - idle |
26"""
27
28args_dict = utils.args_to_dict(args)
29pdash_note = args_dict.get('pdash_note', '')
30job.run_test('power_Idle', warmup_secs=2, idle_secs=10, seconds_period=1,
31             pdash_note=pdash_note, tag=NAME.split('.')[1])
32