Skip to content

Refactor code and implement another TPM TIS test

Stefan Berger qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4test: Move reusable code from tpm-crb-swtpm-test.c to tpm-util.ctests/tpm-crb-swtpm-test.c tests/tpm-util.c tests/tpm-util.h+104 -951 reply
2/4test: Move common TPM test functions to tpm-tests.ctests/Makefile.include tests/tpm-crb-swtpm-test.c tests/tpm-tests.c +1 more+153 -961 reply
3/4test: Pass TPM interface model to functions creating command linetests/tpm-crb-swtpm-test.c tests/tpm-tests.c tests/tpm-tests.h +2 more+22 -151 reply
4/4test: Add swtpm migration test for the TPM TIS interfacetests/Makefile.include tests/tpm-tis-swtpm-test.c tests/tpm-util.c +1 more+120 -01 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMarc-André Lureau
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] Refactor code and implement another TPM TIS test

This series of patches refactors the tpm-crb-swtpm-test.c in the first two patches and moves functions into tpm-util.c and tpm-tests.c for reuse. Patch 3 passes "tpm-crb" to the functions that create the QEMU command line. Patch 4 is more or less a copy of tpm-crb-swtpm-test.c adapted for the TIS interface.

Stefan

Stefan Berger (4):
test: Move reusable code from tpm-crb-swtpm-test.c to tpm-util.c
test: Move common TPM test functions to tpm-tests.c
test: Pass TPM interface model to functions creating command line
test: Add swtpm migration test for the TPM TIS interface

 tests/Makefile.include     |   5 +-
 tests/tpm-crb-swtpm-test.c | 189 +--------------------------------------------
 tests/tpm-tests.c          | 127 ++++++++++++++++++++++++++++++
 tests/tpm-tests.h          |  26 +++++++
 tests/tpm-tis-swtpm-test.c |  66 ++++++++++++++++
 tests/tpm-util.c           | 138 +++++++++++++++++++++++++++++++++
 tests/tpm-util.h           |  14 ++++
 7 files changed, 379 insertions(+), 186 deletions(-)
 create mode 100644 tests/tpm-tests.c
 create mode 100644 tests/tpm-tests.h
 create mode 100644 tests/tpm-tis-swtpm-test.c
Signature · 1 line
2.14.3