aboutsummaryrefslogtreecommitdiff
path: root/client/site_tests/power_ProbeDriver/control.probe_ac
blob: ae8ed44be3de6b54804bf9f5c9698ce9b93b62c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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.probe_ac"
ATTRIBUTES = "suite:power_build"
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', test_which='Mains')