Home | History | Annotate | Download | only in sequences
      1 # Copyright (c) 2014 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 AUTHOR = "gwendal"
      6 NAME = "StorageQualSuspend"
      7 ATTRIBUTES = "suite:storage_qual"
      8 TIME = "LONG"
      9 TEST_CATEGORY = "Stress"
     10 TEST_CLASS = "suite"
     11 TEST_TYPE = "server"
     12 
     13 DOC = """
     14 Sequence for testing the Storage Qual running from the fixed devices.
     15 This tests check for data corruption when SSD is power cycled.
     16 """
     17 from autotest_lib.server import sequence
     18 
     19 
     20 SERVER_SEQUENCES = [
     21     sequence.SequenceJob(
     22             'hardware_StorageQualBase',
     23             {'tag': 'before', 'client_tag': 'before'}),
     24     sequence.SequenceJob(
     25             'hardware_StorageStress',
     26             {'tag': 'soak', 'power_command': 'wait',
     27              'storage_test_command': 'full_write',
     28              'suspend_duration': 5 * sequence.MINUTE_IN_SECS},
     29             iteration=7 * sequence.DAY_IN_HOURS / 4,
     30             duration=4 * sequence.HOUR_IN_SECS),
     31     sequence.SequenceJob(
     32             'hardware_StorageQualSuspendStress',
     33             {'tag': 'suspend'},
     34             iteration=7 * sequence.DAY_IN_HOURS / 4,
     35             duration=4 * sequence.HOUR_IN_SECS),
     36     sequence.SequenceJob(
     37             'hardware_StorageQualBase',
     38             {'tag': 'after', 'client_tag': 'after'}),
     39 ]
     40 
     41 sequence.sequence_schedule(job, machines, SERVER_SEQUENCES)
     42 
     43