• 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_Draw"
7PURPOSE = "Measure how much power is drawn over a given amount of time."
8CRITERIA = "This test is a benchmark."
9TIME = "MEDIUM"
10TEST_CATEGORY = "Functional"
11TEST_CLASS = "power"
12TEST_TYPE = "client"
13
14DOC = """
15This test will run for 200 seconds.
16
17This test depends upon power_status.py from AutoTest to provide battery
18state updates. This test requires that AC power is off.
19"""
20
21tag = 'PowerDraw'
22seconds = 200
23
24
25def run_power_draw():
26    job.run_test('power_Draw', seconds=seconds, tag=tag)
27
28
29def run_sat():
30    job.run_test('hardware_SAT', seconds=seconds, tag=tag)
31
32
33def run_gpu():
34    job.run_test('graphics_GLBench',
35                 options='-tests fill:triangle -duration %d' % seconds,
36                 tag=tag)
37
38
39job.parallel([run_power_draw], [run_sat], [run_gpu])
40