xref: /aosp_15_r20/external/autotest/client/site_tests/suite_HWQual/control.probe_ac (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright (c) 2010 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 = "suite_HWQual.probe_ac"
7ATTRIBUTES = "suite:power_build"
8PURPOSE = "Confirm that AC driver is loaded and functioning."
9CRITERIA = """\
10Plug AC before run this test.
11
12This test will pass only if all of the following conditions occur:
13- Find exactly one AC.
14- AC is online.
15
16This test will fail if all of the following conditions occur:
17- Find one or more batteries.
18- One of batteries is discharging.
19"""
20TIME = "SHORT"
21TEST_CATEGORY = "Functional"
22TEST_CLASS = "power"
23TEST_TYPE = "client"
24PY_VERSION = 3
25
26DOC = """
27This is a sample test that probes sysfs and makes sure that AC driver
28is loaded and functioning.
29"""
30
31job.run_test('power_ProbeDriver', test_which='Mains')
32