1AUTHOR = "Chromium OS Team"
2NAME = "platform_CryptohomeStress.surfing"
3PURPOSE = "Stress test the encrypted file system in Chromium OS."
4TIME = "LONG"
5TEST_CATEGORY = "Security"
6TEST_CLASS = "security"
7TEST_TYPE = "client"
8ATTRIBUTES = "suite:bvt-perbuild"
9
10DOC = """
11This is a stress test of the file system in Chromium OS. While performing the
12test, we will cycle through power states, and interrupt disk activity.
13"""
14
15# The time in seconds to run this stress for, passed to the individual tests.
16RUNTIME = 600
17
18def run_sleeper():
19    job.run_test('power_SuspendStress', duration=RUNTIME, min_suspend=20)
20
21def run_fio():
22    job.run_test('platform_CryptohomeFio', runtime=RUNTIME,
23                 disk_configs=['crypto'], script='surfing')
24
25def run_cryptohomestress():
26    job.run_test('platform_CryptohomeStress', runtime=RUNTIME)
27
28job.parallel([run_sleeper], [run_fio], [run_cryptohomestress])
29