mbox series

[0/4] Refactor code and implement another TPM TIS test

Message ID 20180530193548.3846786-1-stefanb@linux.vnet.ibm.com
Headers show
Series Refactor code and implement another TPM TIS test | expand

Message

Stefan Berger May 30, 2018, 7:35 p.m. UTC
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