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