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