1 #!/bin/sh !! 1 #!/bin/bash 2 # SPDX-License-Identifier: (GPL-2.0 OR BSD-3-C 2 # SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 3 3 4 # Kselftest framework requirement - SKIP code !! 4 python -m unittest -v tpm2_tests.SmokeTest 5 ksft_skip=4 !! 5 python -m unittest -v tpm2_tests.AsyncTest 6 6 7 [ -e /dev/tpm0 ] || exit $ksft_skip !! 7 CLEAR_CMD=$(which tpm2_clear) 8 read tpm_version < /sys/class/tpm/tpm0/tpm_ver !! 8 if [ -n $CLEAR_CMD ]; then 9 [ "$tpm_version" == 2 ] || exit $ksft_skip !! 9 tpm2_clear -T device 10 !! 10 fi 11 python3 -m unittest -v tpm2_tests.SmokeTest 2> <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.