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 5NAME = 'hardware_MemoryIntegrity.memory_qual' 6AUTHOR = 'puthik' 7PURPOSE = 'Check memory integrity after long idle/suspend' 8TIME = 'LENGTHY' 9TEST_CLASS = 'hardware' 10TEST_TYPE = 'server' 11 12DOC = """ 13This test call hardware_StorageFio to write data once to the ramfs and 14then after idle for an hour, verify the integrity of that data. 15""" 16 17HOUR_IN_SECS=60*60 18 19SERVER_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 26def 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 32parallel_simple(run_hardware_MemoryIntegrity_test, machines) 33