blob: 038b33639ab1d0a641f3ff1d9de9a89829ba60b4 [file] [log] [blame] [edit]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "Chrome OS Team"
NAME = "power_ProbeDriver"
PURPOSE = "Confirm that AC driver is loaded and functioning."
CRITERIA = """\
Plug AC before run this test.
This test will pass only if all of the following conditions occur:
- Find exactly one AC.
- AC is online.
This test will fail if all of the following conditions occur:
- Find one or more batteries.
- One of batteries is discharging.
"""
TIME = "SHORT"
TEST_CATEGORY = "Functional"
TEST_CLASS = "power"
TEST_TYPE = "client"
DOC = """
This is a sample test that probes sysfs and makes sure that AC driver
is loaded and functioning.
"""
job.run_test('power_ProbeDriver', power_supply_class='Mains')