xref: /openbmc/linux/tools/testing/selftests/tpm2/test_smoke.sh (revision 15a1fbdcfb519c2bd291ed01c6c94e0b89537a77)
1#!/bin/bash
2# SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
3
4python -m unittest -v tpm2_tests.SmokeTest
5python -m unittest -v tpm2_tests.AsyncTest
6
7CLEAR_CMD=$(which tpm2_clear)
8if [ -n $CLEAR_CMD ]; then
9	tpm2_clear -T device
10fi
11