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