blob: e17eb91dc4e844784ffdf8e9609cb99eb3a3f85d [file] [log] [blame]
# Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# TEST IS DISABLED UNTIL MIGRATED TO PYTHON 3.
# For instructions on how to: go/tauto-py3-migration
# To re-enable migrate to Python 3.
# If the test is not migrated by 1/14/22 it will be deleted.
NAME = 'hardware_MemoryIntegrity.memory_qual'
AUTHOR = 'puthik'
PURPOSE = 'Check memory integrity after long idle/suspend'
TIME = 'LENGTHY'
TEST_CLASS = 'hardware'
TEST_TYPE = 'server'
ATTRIBUTES = "suite:memory_qual2"
EXTENDED_TIMEOUT = 9000 # 2.5 hours
DOC = """
This test call hardware_StorageFio to write data once to the ramfs and
then after idle for an hour, verify the integrity of that data.
"""
HOUR_IN_SECS=60*60
SERVER_TESTS= [
('hardware_MemoryIntegrity', {
'tag' : 'idle', 'seconds' : HOUR_IN_SECS, 'suspend': False}),
('hardware_MemoryIntegrity', {
'tag' : 'suspend', 'seconds' : HOUR_IN_SECS, 'suspend': True}),
]
def run_hardware_MemoryIntegrity_test(machine):
client = hosts.create_host(machine)
for test, argv in SERVER_TESTS:
client.reboot()
job.run_test(test, client_ip=machine, **argv)
parallel_simple(run_hardware_MemoryIntegrity_test, machines)