# Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
import os | |
from autotest_lib.client.bin import test, utils | |
from autotest_lib.client.cros import tpm | |
class hardware_TPM(test.test): | |
version = 1 | |
preserve_srcdir = True | |
def setup(self): | |
os.chdir(self.srcdir) | |
utils.make('clean') | |
utils.make('all') | |
def run_once(self, suite): | |
tpm.run_trousers_tests('%s/src/tests/%s' % (self.bindir, suite)) |