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