]> git.proxmox.com Git - swtpm.git/commit
tests: Fix tests using tpm2-abrmd by preventing concurrency
authorStefan Berger <stefanb@linux.ibm.com>
Mon, 27 Sep 2021 02:38:50 +0000 (22:38 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Mon, 27 Sep 2021 13:17:54 +0000 (09:17 -0400)
commit3c10960c25df596c38f4d9a7dc500952f0d79fe6
tree40fa9559ece5fa0e05513ffb4b7aa3185904810e
parentf2aa3274b2cc667f57fb0e5b91f5d535ac551cee
tests: Fix tests using tpm2-abrmd by preventing concurrency

The two tests test_tpm2_samples_create_tpmca and
test_tpm2_swtpm_localca_pkcs11 cannot complete successfully if run in
parallel. To solve this issue, introduce a dependency via the log files
to prevent parallel execution of the two test. We have to append the
.test suffix to their names to be able to do this.

docs:
https://www.gnu.org/software/automake/manual/html_node/Parallel-Test-Harness.html

Resolves issue #501, though the problem with stability of the tpm2 pkcs11
module is not resolved.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
tests/Makefile.am
tests/test_tpm2_samples_create_tpmca [deleted file]
tests/test_tpm2_samples_create_tpmca.test [new file with mode: 0755]
tests/test_tpm2_swtpm_localca_pkcs11 [deleted file]
tests/test_tpm2_swtpm_localca_pkcs11.test [new file with mode: 0755]