# Copyright (c) 2013 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.

NAME = 'hardware_StorageStress.suspend'
AUTHOR = 'puthik, grundler'
PURPOSE = 'Check storage data integrity after multiple reboot/suspend'
TIME = 'LENGTHY'
TEST_CLASS = 'hardware'
TEST_TYPE = 'server'

DOC = """
This test calls hardware_StorageFio to write data once and repeatedly verifies
data in the storage for 1 hour with machine suspended 5 minutes between
each verify.
"""

def run_hardware_storage_stress(machine):
    job.run_test('hardware_StorageStress', client_ip=machine,
        power_command='suspend', suspend_duration=300, duration=3600)

job.parallel_simple(run_hardware_storage_stress, machines)