linux/tools/testing/selftests/tpm2
Nícolas F. R. A. Prado 8008d88e6d selftests/tpm2: Split async tests call to separate shell script runner
When the async test case was introduced, despite being a completely
independent test case, the command to run it was added to the same shell
script as the smoke test case. Since a shell script implicitly returns
the error code from the last run command, this effectively caused the
script to only return as error code the result from the async test case,
hiding the smoke test result (which could then only be seen from the
python unittest logs).

Move the async test case call to its own shell script runner to avoid
the aforementioned issue. This also makes the output clearer to read,
since each kselftest KTAP result now matches with one python unittest
report.

While at it, also make it so the async test case is skipped if
/dev/tpmrm0 doesn't exist, since commit 8335adb8f9 ("selftests: tpm:
add async space test with noneexisting handle") added a test that relies
on it.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-11-29 17:28:31 -07:00
..
Makefile selftests/tpm2: Split async tests call to separate shell script runner 2022-11-29 17:28:31 -07:00
settings selftests/tpm2: increase timeout for kselftests 2022-06-28 13:31:10 -06:00
test_async.sh selftests/tpm2: Split async tests call to separate shell script runner 2022-11-29 17:28:31 -07:00
test_smoke.sh selftests/tpm2: Split async tests call to separate shell script runner 2022-11-29 17:28:31 -07:00
test_space.sh selftests: tpm: upgrade TPM2 tests from Python 2 to Python 3 2020-07-06 14:20:35 -06:00
tpm2_tests.py selftests: tpm: add async space test with noneexisting handle 2022-03-08 10:33:17 +02:00
tpm2.py selftest: tpm2: Add Client.__del__() to close /dev/tpm* handle 2022-10-05 00:25:56 +03:00