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