summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/tpm2/test_smoke.sh
blob: 8155c2ea7ccbb6ed1b9685f3c602105eb2c26173 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)

python -m unittest -v tpm2_tests.SmokeTest
python -m unittest -v tpm2_tests.AsyncTest

CLEAR_CMD=$(which tpm2_clear)
if [ -n $CLEAR_CMD ]; then
	tpm2_clear -T device
fi