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