]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Kernel selftests: tpm2: check for tpm support
authorNikita Sobolev <Nikita.Sobolev@synopsys.com>
Fri, 31 Jan 2020 15:25:23 +0000 (18:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 06:18:23 +0000 (07:18 +0100)
commit6c2e18a2b0d8f74700ff6da0236fbd6fd57d3bb8
treea74a1b9a913020940030849c75bdd74e05e880bc
parenta6fc6846ff01922ff351ad060efb17269284a7ef
Kernel selftests: tpm2: check for tpm support

[ Upstream commit b32694cd0724d4ceca2c62cc7c3d3a8d1ffa11fc ]

tpm2 tests set fails if there is no /dev/tpm0 and /dev/tpmrm0
supported. Check if these files exist before run and mark test as
skipped in case of absence.

Signed-off-by: Nikita Sobolev <Nikita.Sobolev@synopsys.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/tpm2/test_smoke.sh
tools/testing/selftests/tpm2/test_space.sh