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 5AUTHOR = "puthik" 6NAME = "MemoryQual.quick" 7ATTRIBUTES = "suite:memory_qual_quick" 8SUITE = "memory_qual_quick" 9TIME = "MEDIUM" 10TEST_CATEGORY = "Stress" 11TEST_CLASS = "suite" 12TEST_TYPE = "server" 13 14DOC = """ 15Sequence for testing the Memory Qual running from the fixed devices. 16""" 17 18CLIENT_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 35SERVER_TESTS= [ 36 ('hardware_MemoryIntegrity', { 37 'tag' : 'quick', 'seconds' : 30, 'suspend': False}), 38] 39 40def 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 47def 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 54job.parallel_on_machines(run_client_test, machines) 55parallel_simple(run_server_test, machines) 56