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 = "ChromeOS Team" 6NAME = "suite_HWQual.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" 13PY_VERSION = 3 14 15DOC = """ 16This test will run for 200 seconds. 17 18This test depends upon power_status.py from AutoTest to provide battery 19state updates. This test requires that AC power is off. 20""" 21 22tag = 'PowerDraw' 23seconds = 200 24 25 26def run_power_draw(): 27 job.run_test('power_Draw', seconds=seconds, tag=tag) 28 29 30def run_sat(): 31 job.run_test('hardware_SAT', seconds=seconds, tag=tag) 32 33 34def run_gpu(): 35 job.run_test('graphics_GLBench', 36 options='-tests fill:triangle -duration %d' % seconds, 37 tag=tag) 38 39 40job.parallel([run_power_draw], [run_sat], [run_gpu]) 41