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