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