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