Home | History | Annotate | Download | only in suite_TPM
      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 
      5 AUTHOR = "Chrome OS Team"
      6 NAME = "TPMSmogcheck"
      7 PURPOSE = "Execute automated TPM functionality checks."
      8 TIME = "SHORT"  # <= 15 minutes in execution
      9 TEST_CATEGORY = "Functional"
     10 TEST_CLASS = "suite"
     11 TEST_TYPE = "client"
     12 
     13 DOC = """
     14 This test suite runs automated TPM Smogcheck tests. The purpose of
     15 the 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
     25 job.run_test('hardware_TPMTakeOwnership', loop=10, max_acceptable_delay=50,
     26              constraints=['max_delay_in_sec_actual <= 50'])
     27