Home | History | Annotate | Download | only in sequences
      1 # Copyright (c) 2014 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 = "puthik"
      6 NAME = "MemoryQual.quick"
      7 ATTRIBUTES = "suite:memory_qual_quick"
      8 TIME = "MEDIUM"
      9 TEST_CATEGORY = "Stress"
     10 TEST_CLASS = "suite"
     11 TEST_TYPE = "server"
     12 
     13 DOC = """
     14 Sequence for testing the Memory Qual running from the fixed devices.
     15 """
     16 
     17 CLIENT_TESTS= [
     18     ('platform_MemCheck', {}),
     19     ('hardware_RamFio', {
     20         'requirements': [('ram_suite', [])]}),
     21     ('hardware_MemoryThroughput', {
     22         'tag': 'quick', 'test': 'bcopy', 'warmup': 10, 'num_iterations': 5,
     23         'parallel': 1, 'sizes' : [ 16 * 1024 * 1024]}),
     24     ('hardware_MemoryLatency', {
     25         'sample_size_kb': [ int(2), int(192), int(1024)]}),
     26     ('hardware_Memtester', {
     27         'tag' : 'quick', 'size' : 10 * 1024, 'loop' : 1}),
     28     ('hardware_SAT', {
     29         'tag' : 'quick', 'seconds' : 10}),
     30     ('power_MemorySuspend', {
     31         'tag' : 'quick', 'num_suspends' : 2}),
     32 ]
     33 
     34 SERVER_TESTS= [
     35     ('hardware_MemoryIntegrity', {
     36         'tag' : 'quick', 'seconds' : 30, 'suspend': False}),
     37 ]
     38 
     39 def run_client_test(machine):
     40     client = hosts.create_host(machine)
     41     client_at = autotest.Autotest(client)
     42     for test, argv in CLIENT_TESTS:
     43         client.reboot()
     44         client_at.run_test(test, **argv)
     45 
     46 def run_server_test(machine):
     47     client = hosts.create_host(machine)
     48     for test, argv in SERVER_TESTS:
     49         client.reboot()
     50         job.run_test(test, client_ip=machine, **argv)
     51 
     52 
     53 job.parallel_on_machines(run_client_test, machines)
     54 parallel_simple(run_server_test, machines)
     55