mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-08-09 15:31:37 +00:00
tests: Create orderly NVRAM indices and then clear TPM 2 (for coverage)
Create orderly NVRAM indices and then clear the TPM 2 so that NvDeleteRam() gets executed and we get better code coverage. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
39b49a4e71
commit
ecdee41147
@ -1336,6 +1336,15 @@ if [ $? -ne 0 ]; then
|
||||
fi
|
||||
|
||||
test_primary_volatile_load 0 1 1
|
||||
# Create the orderly nv indices and have them cleared (for coverage)
|
||||
test_nvram_state 1 1
|
||||
|
||||
${TOOLSPATH}/${PREFIX}clear -hi p
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error: clear failed."
|
||||
cat $LOGFILE
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Send Shutdown
|
||||
act=$($SWTPM_IOCTL --unix $SOCK_PATH -s 2>&1)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user