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