OSDN Git Service

tests/avocado/aspeed: Add TPM TIS I2C test
authorJoel Stanley <joel@jms.id.au>
Tue, 28 Mar 2023 12:08:44 +0000 (22:38 +1030)
committerStefan Berger <stefanb@linux.ibm.com>
Thu, 20 Apr 2023 12:17:15 +0000 (08:17 -0400)
commitc3d58a7a26ffbf2ac54ed6d7a3a83f2a7af7159b
tree8e44bf37452d4764cf58d6d2107227a599ae19ab
parent139fdb3ed8f593b03f78ec9984467562331ef98c
tests/avocado/aspeed: Add TPM TIS I2C test

Add a new buildroot image based test that attaches a TPM emulator to the
I2C bus and checks for a known PCR0 value for the image that was booted.

Note that this does not tear down swtpm process when qemu execution fails.
The swtpm process will exit when qemu exits if a connection has been
made, but if the test errors before connection then the swtpm process
will still be around.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Ninad Palsule <ninad@linux.ibm.com>
Message-id: 20230328120844.190914-1-joel@jms.id.au
tests/avocado/machine_aspeed.py