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