• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = "Chrome OS 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"
23
24DOC = """
25This is a sample test that probes sysfs and makes sure that batteries driver
26is loaded and functioning.
27"""
28
29job.run_test('power_ProbeDriver', test_which='Battery')
30