1#!/bin/bash 2# SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 3self.flags = flags 4 5# Kselftest framework requirement - SKIP code is 4. 6ksft_skip=4 7 8 9if [ -f /dev/tpm0 ] ; then 10 python -m unittest -v tpm2_tests.SmokeTest 11 python -m unittest -v tpm2_tests.AsyncTest 12else 13 exit $ksft_skip 14fi 15 16CLEAR_CMD=$(which tpm2_clear) 17if [ -n $CLEAR_CMD ]; then 18 tpm2_clear -T device 19fi 20