tpm2-software/tpm2-tss-engine

Make integration tests use TPM simulator out of the box

Closed this issue · 0 comments

It would be nice if the integration tests automatically started and used the TPM simulator.

  • Starting the TPM simulator can be done e.g. as in tpm2-totp.
  • In order to force the tests to only use the simulator, we need to compile with --enable-tctienvvar and set the environment variables
    TPM2TSSENGINE_TCTI=libtss2-tcti-mssim.so
    TPM2TOOLS_TCTI=mssim
    

Originally posted by @diabonas in #84 (comment)