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" 7TIME = "LENGTHY" 8TEST_CATEGORY = "Stress" 9TEST_CLASS = "suite" 10TEST_TYPE = "server" 11EXTENDED_TIMEOUT = 1209600 # 2 weeks 12PY_VERSION = 3 13 14DOC = """ 15Sequence for qualification new memory part to AVL. 16""" 17 18HOUR_IN_SECS=60*60 19 20CLIENT_TESTS= [ 21 ('platform_MemCheck', {}), 22 ('hardware_RamFio', { 23 'requirements': [('ram_suite', [])]}), 24 ('hardware_MemoryThroughput', { 25 'tag': 'memory_qual', 'test': 'bcopy', 'warmup': 100, 26 'num_iterations': 100, 'parallel': 2, 27 'sizes' : [ 1024, 2048, 4096, 8192, 28 15360, 16384, 24576, 29 30720, 32768, 33792, 30 49152, 65536, 98304, 31 130048, 131072, 256000, 32 262144, 393216, 524288, 33 1048576, 1468006, 1572864, 34 1966080, 2097152, 2228224, 35 2621440, 3072000, 3145728, 36 3276800, 4194304, 8388608, 37 16777216, 33554432, 67108864]}), 38 ('hardware_MemoryLatency', { 39 'sample_size_kb': [ int(2), int(192), int(1024)]}), 40 ('hardware_Memtester', { 41 'tag' : 'memory_qual', 'loop' : 100}), 42 ('hardware_SAT', { 43 'tag' : 'memory_qual', 'seconds' : 8 * HOUR_IN_SECS}), 44 ('power_MemorySuspend', { 45 'tag' : 'memory_qual', 'num_suspends' : 10000}), 46] 47 48CLIENT_X86_TESTS= [ 49 ('hardware_UnsafeMemory', { 50 'sec' : 5 * HOUR_IN_SECS}), 51] 52 53SERVER_TESTS= [ 54 ('hardware_MemoryIntegrity', { 55 'tag' : 'idle', 'seconds' : HOUR_IN_SECS, 'suspend': False}), 56 ('hardware_MemoryIntegrity', { 57 'tag' : 'suspend', 'seconds' : HOUR_IN_SECS, 'suspend': True}), 58] 59 60def run_client_test(machine): 61 client = hosts.create_host(machine) 62 client_at = autotest.Autotest(client) 63 client_tests = (CLIENT_TESTS + CLIENT_X86_TESTS if client.get_arch() in 64 ('i386', 'i686', 'x86_64') else CLIENT_TESTS) 65 for test, argv in client_tests: 66 client.reboot() 67 client_at.run_test(test, timeout=EXTENDED_TIMEOUT, **argv) 68 69def run_server_test(machine): 70 client = hosts.create_host(machine) 71 for test, argv in SERVER_TESTS: 72 client.reboot() 73 job.run_test(test, client_ip=machine, timeout=EXTENDED_TIMEOUT, **argv) 74 75 76job.parallel_on_machines(run_client_test, machines) 77parallel_simple(run_server_test, machines) 78