Home | History | Annotate | Download | only in power_Draw
      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.Aquarium"
      7 PURPOSE = "Stress system similar to Factory Run-in."
      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 3600 seconds by default.
     16 
     17 This 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 
     21 tag = 'PowerDraw'
     22 seconds = 3600
     23 
     24 
     25 def 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.
     32 def run_sat():
     33     job.run_test('hardware_SAT', seconds=seconds, wait_secs=120,
     34                  free_memory_fraction=0.80, tag=tag)
     35 
     36 
     37 def 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 
     43 job.parallel([run_power_draw], [run_sat], [run_aquarium])
     44