From: Lennart Poettering Date: Tue, 3 Mar 2026 20:20:13 +0000 (+0100) Subject: test: add superficial testcase for tpm2 identification X-Git-Tag: v260-rc2~7^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c8a2e53d337108a728ea0e54525bfec5db5c05e;p=thirdparty%2Fsystemd.git test: add superficial testcase for tpm2 identification --- diff --git a/test/units/TEST-70-TPM2.nvpcr.sh b/test/units/TEST-70-TPM2.nvpcr.sh index c5a6d1c2136..29319e601ac 100755 --- a/test/units/TEST-70-TPM2.nvpcr.sh +++ b/test/units/TEST-70-TPM2.nvpcr.sh @@ -103,3 +103,6 @@ systemd-dissect --image-policy='root=signed:=absent+unused' --mtree /var/tmp/nvp set +o pipefail diff /tmp/nvpcr/log-before /run/log/systemd/tpm2-measure.log | grep -F '"content":{"nvIndexName":"verity","string":"verity:' + +systemd-analyze identify-tpm2 +udevadm test-builtin 'tpm2_id identify' /dev/tpmrm0