tpm2-software / tpm2-tss-engine

OpenSSL Engine for TPM2 devices
https://tpm2-software.github.io
BSD 3-Clause "New" or "Revised" License
150 stars 100 forks source link

Use a TPM simulator for the integration tests #107

Closed diabonas closed 5 years ago

diabonas commented 5 years ago

Add a simple test harness to automatically start and use a TPM simulator for the integration tests. This is possible by using the TCTI environment variable introduced in #62, which is now enabled by default for this reason.

This has the following advantages:

Additionally this PR fixes #106 (upstream renaming of tpm2-tools options).

Closes #86

codecov[bot] commented 5 years ago

Codecov Report

Merging #107 into master will increase coverage by 4.69%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #107      +/-   ##
==========================================
+ Coverage   62.73%   67.43%   +4.69%     
==========================================
  Files           9        9              
  Lines        1170     1176       +6     
==========================================
+ Hits          734      793      +59     
+ Misses        436      383      -53
Impacted Files Coverage Δ
src/tpm2-tss-engine.c 58.73% <0%> (+0.39%) :arrow_up:
src/tpm2-tss-engine-tcti.c 58.67% <0%> (+45.45%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a063e24...ffc049b. Read the comment docs.