xref: /aosp_15_r20/external/autotest/client/site_tests/platform_CryptohomeFio/control.stress (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright (c) 2010 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
5TIME='LONG'
6AUTHOR = 'The Chromium OS Authors'
7PURPOSE = 'Stress test the ecryptfs home directory across power state changes.'
8CRITERIA = 'This test is a stress test. Expected success, no crashes.'
9DOC = """This test uses fio and a basic configuration to test and
10validate writes to the ecryptfs vault. It does not create a login
11session, but mounts a special user dir for the test.
12"""
13NAME = 'platform_CryptohomeFio.stress'
14TEST_CLASS = 'platform'
15TEST_CATEGORY = 'Stress'
16TEST_TYPE = 'client'
17PY_VERSION = 3
18ATTRIBUTES = "suite:bvt-perbuild"
19
20RUNTIME=60  # seconds.
21
22tests = {
23    'surfing': 'iops',
24    'boot': 'bw',
25    'login': 'bw',
26    'seq_read': 'bw',
27    'seq_write': 'bw',
28    '16k_read': 'iops',
29    '16k_write': 'iops',
30    '8k_read': 'iops',
31    '8k_write': 'iops',
32    '4k_read': 'iops',
33    '4k_write': 'iops',
34}
35
36for test in tests.keys():
37    job.run_test('platform_CryptohomeFio',
38        script=test,
39        tag=test,
40        runtime=RUNTIME,
41        disk_configs=['crypto', 'plain'])
42
43