1# Copyright (c) 2011 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 = "ChromeOS Team" 6NAME = "suite_TPM.TPMSmogcheck" 7PURPOSE = "Execute automated TPM functionality checks." 8TIME = "SHORT" # <= 15 minutes in execution 9TEST_CATEGORY = "Functional" 10TEST_CLASS = "suite" 11TEST_TYPE = "client" 12PY_VERSION = 3 13 14DOC = """ 15This test suite runs automated TPM Smogcheck tests. The purpose of 16the suite is to confidence test basic TPM functionality in less than 10 17minutes. 18""" 19 20# TPM_TakeOwnership 21# 'loop=10' means run this test for 10 consecutive iterations 22# 'max_acceptable_delay=50' sets the upper bound of per-iteration delay in sec 23# 'max_delay_in_sec_actual' is an attribute that will be calculated in the test 24# body after measurements are taken for all iterations 25# 'constraints' means to declare test FAIL if value of 'max_delay_in_sec_actual' 26# exceeds 50 sec 27job.run_test('hardware_TPMTakeOwnership', loop=10, max_acceptable_delay=50, 28 constraints=['max_delay_in_sec_actual <= 50']) 29