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