Kernel selftests: tpm2: check for tpm support
authorNikita Sobolev <Nikita.Sobolev@synopsys.com>
Fri, 31 Jan 2020 15:25:23 +0000 (18:25 +0300)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 11 Feb 2020 01:00:40 +0000 (18:00 -0700)
commitb32694cd0724d4ceca2c62cc7c3d3a8d1ffa11fc
treeb8b054c1a0f392efd15ccfb743fa393ecaf005d8
parenta098d9c82a0bb2f91e5cf6c780859bc00c15e1e4
Kernel selftests: tpm2: check for tpm support

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>
tools/testing/selftests/tpm2/test_smoke.sh
tools/testing/selftests/tpm2/test_space.sh