• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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'
11ATTRIBUTES = "suite:memory_qual2"
12EXTENDED_TIMEOUT = 9000 # 2.5 hours
13PY_VERSION = 3
14
15DOC = """
16This test call hardware_StorageFio to write data once to the ramfs and
17then after idle for an hour, verify the integrity of that data.
18"""
19
20HOUR_IN_SECS=60*60
21
22SERVER_TESTS= [
23    ('hardware_MemoryIntegrity', {
24        'tag' : 'idle', 'seconds' : HOUR_IN_SECS, 'suspend': False}),
25    ('hardware_MemoryIntegrity', {
26        'tag' : 'suspend', 'seconds' : HOUR_IN_SECS, 'suspend': True}),
27]
28
29def run_hardware_MemoryIntegrity_test(machine):
30    client = hosts.create_host(machine)
31    for test, argv in SERVER_TESTS:
32        client.reboot()
33        job.run_test(test, client_ip=machine, **argv)
34
35parallel_simple(run_hardware_MemoryIntegrity_test, machines)
36