xref: /linux/tools/testing/selftests/tpm2/test_smoke.sh (revision 88a16840f462f96d3a1808aff1d6479f87a02147)
16ea3dfe1SJarkko Sakkinen#!/bin/bash
26ea3dfe1SJarkko Sakkinen# SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
36ea3dfe1SJarkko Sakkinen
45627f9cfSNikita Sobolev# Kselftest framework requirement - SKIP code is 4.
55627f9cfSNikita Sobolevksft_skip=4
65627f9cfSNikita Sobolev
7*88a16840SJarkko Sakkinen[ -e /dev/tpm0 ] || exit $ksft_skip
85627f9cfSNikita Sobolev
96ea3dfe1SJarkko Sakkinenpython -m unittest -v tpm2_tests.SmokeTest
108f84bddcSTadeusz Strukpython -m unittest -v tpm2_tests.AsyncTest
11