U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] tpm: Start to tidy up TPM tests
@ 2023-10-29  4:28 Simon Glass
  2023-10-29  4:28 ` [PATCH 1/3] tpm: sandbox: Support self-test continue in emulator Simon Glass
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Simon Glass @ 2023-10-29  4:28 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Ilias Apalodimas, Tom Rini, Simon Glass, Michal Simek

This series is a starting point only. It tries to provide some direction
for how the TPM tests should be run on real hardware and on sandbox.

For sandbox, things are relatively easy since the TPM is reset before
each test. Tests should start up the TPM before doing anything. Tests
can be run in parallel, which is fine because tests are independent.

For real hardware, tests cannot be made independent, other than by
resetting the board, which if the hardware is correct, resets the TPM.
So there may be more work to do to figure that out. The approach taken
in this series for real hardware is to have a few tests which do init,
then have the rest of the tests assume that the init is done. Tests
that depend on the TPM already being inited can use 'tpm autostart'
which works OK on sandbox and real hardware.


Simon Glass (3):
  tpm: sandbox: Support self-test continue in emulator
  tpm: Convert sandbox-focussed tests to C
  tpm: Drop unwanted special cases for sandbox

 drivers/tpm/tpm_tis_sandbox.c |  1 +
 test/dm/tpm.c                 | 77 ++++++++++++++++++++++++++-
 test/py/tests/test_tpm2.py    | 99 ++++-------------------------------
 3 files changed, 87 insertions(+), 90 deletions(-)

-- 
2.42.0.820.g83a721a137-goog


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-10-30 11:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-29  4:28 [PATCH 0/3] tpm: Start to tidy up TPM tests Simon Glass
2023-10-29  4:28 ` [PATCH 1/3] tpm: sandbox: Support self-test continue in emulator Simon Glass
2023-10-30  8:53   ` Ilias Apalodimas
2023-10-29  4:28 ` [PATCH 2/3] tpm: Convert sandbox-focussed tests to C Simon Glass
2023-10-29 14:33   ` Tom Rini
2023-10-30 11:40     ` Ilias Apalodimas
2023-10-30 11:41   ` Ilias Apalodimas
2023-10-29  4:28 ` [PATCH 3/3] tpm: Drop unwanted special cases for sandbox Simon Glass
2023-10-30 11:42   ` Ilias Apalodimas
2023-10-30 11:43 ` [PATCH 0/3] tpm: Start to tidy up TPM tests Ilias Apalodimas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox