• Home
  • 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 = "StorageQualTrim"
7ATTRIBUTES = "suite:storage_qual"
8TIME = "LONG"
9TEST_CATEGORY = "Stress"
10TEST_CLASS = "suite"
11TEST_TYPE = "server"
12
13DOC = """
14Sequence for testing the Storage Qual running from the fixed devices.
15This tests check trim support under stress.
16"""
17from autotest_lib.server import sequence
18
19
20SERVER_SEQUENCES = [
21    sequence.SequenceJob(
22            'hardware_StorageQualBase',
23            {'tag': 'before', 'client_tag': 'before'}),
24    sequence.SequenceJob(
25            'hardware_StorageStress',
26            {'tag': 'soak', 'power_command': 'nothing',
27             'storage_test_command': 'full_write'},
28            iteration=7 * sequence.DAY_IN_HOURS / 4,
29            duration=4 * sequence.HOUR_IN_SECS),
30    sequence.SequenceJob(
31            'hardware_StorageQualTrimStress', None,
32            iteration=7 * sequence.DAY_IN_HOURS / 4,
33            duration=4 * sequence.HOUR_IN_SECS / 4),
34    sequence.SequenceJob(
35            'hardware_StorageQualBase',
36            {'tag': 'after', 'client_tag': 'after'}),
37]
38
39sequence.sequence_schedule(job, machines, SERVER_SEQUENCES)
40