]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuxml2argvtest: Add negative cases for TPM version
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 2 Aug 2022 08:23:42 +0000 (10:23 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 4 Aug 2022 06:14:43 +0000 (08:14 +0200)
commit67b03faaf1042e554cb9d71c5dd76421efe61ddd
tree1732596380404269e29821805a42ae97ff11f924
parentb91dbf4851d57f536e4de4f3e8496e4e119e22bb
qemuxml2argvtest: Add negative cases for TPM version

Now that we have all the machinery needed, we can introduce two
simple test cases:

1) only TPM 1.2 is supported, but TPM 2.0 was requested in domain XML,
2) only TPM 2.0 is supported, but TPM 1.2 was requested in domain XML.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
tests/qemuxml2argvdata/tpm-emulator-tpm2.x86_64-latest.err [new file with mode: 0644]
tests/qemuxml2argvdata/tpm-emulator.x86_64-latest.err [new file with mode: 0644]
tests/qemuxml2argvtest.c