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.Aquarium" 7PURPOSE = "Stress system similar to Factory Run-in." 8CRITERIA = "This test is a benchmark." 9TIME = "MEDIUM" 10TEST_CATEGORY = "Functional" 11TEST_CLASS = "power" 12TEST_TYPE = "client" 13 14DOC = """ 15This test will run for 3600 seconds by default. 16 17This test tries to emulate the factory Run-In test workload in order to 18(more) easily replicate issues that might happen in the factory test. 19""" 20 21tag = 'PowerDraw' 22seconds = 3600 23 24 25def run_power_draw(): 26 job.run_test('power_Draw', seconds=seconds, tag=tag) 27 28 29# wait 20 seconds to give WebGLAquarium a chance to get started. 30# Aquarium wants to see idle CPU before it will start. 31# And if the CPU is too hot, it will sleep for 60 seconds. 32def run_sat(): 33 job.run_test('hardware_SAT', seconds=seconds, wait_secs=120, 34 free_memory_fraction=0.80, tag=tag) 35 36 37def run_aquarium(): 38 job.run_test('graphics_WebGLAquarium', test_duration_secs=seconds, 39 test_setting_num_fishes=(1000,), ac_ok=True, 40 tag=tag) 41 42 43job.parallel([run_power_draw], [run_sat], [run_aquarium]) 44