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