1 # Copyright (c) 2015 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 NAME = 'hardware_MemoryIntegrity.memory_qual' 6 AUTHOR = 'puthik' 7 PURPOSE = 'Check memory integrity after long idle/suspend' 8 TIME = 'LENGTHY' 9 TEST_CLASS = 'hardware' 10 TEST_TYPE = 'server' 11 12 DOC = """ 13 This test call hardware_StorageFio to write data once to the ramfs and 14 then after idle for an hour, verify the integrity of that data. 15 """ 16 17 HOUR_IN_SECS=60*60 18 19 SERVER_TESTS= [ 20 ('hardware_MemoryIntegrity', { 21 'tag' : 'idle', 'seconds' : HOUR_IN_SECS, 'suspend': False}), 22 ('hardware_MemoryIntegrity', { 23 'tag' : 'suspend', 'seconds' : HOUR_IN_SECS, 'suspend': True}), 24 ] 25 26 def run_hardware_MemoryIntegrity_test(machine): 27 client = hosts.create_host(machine) 28 for test, argv in SERVER_TESTS: 29 client.reboot() 30 job.run_test(test, client_ip=machine, **argv) 31 32 parallel_simple(run_hardware_MemoryIntegrity_test, machines) 33