Showing with 3 additions and 3 deletions.
  1. +0 −1 test/system/test_all.sh
  2. +3 −2 test/system/test_tpm2_pcrevent.sh
1 change: 0 additions & 1 deletion test/system/test_all.sh
Expand Up @@ -74,7 +74,6 @@ test_wrapper test_tpm2_quote.sh
test_wrapper test_tpm2_unseal.sh
test_wrapper test_tpm2_akparse.sh
test_wrapper test_tpm2_certify.sh
test_wrapper test_tpm2_evictcontrol.sh
test_wrapper test_tpm2_getpubek.sh
test_wrapper test_tpm2_getpubak.sh
test_wrapper test_tpm2_makecredential.sh
Expand Down
5 changes: 3 additions & 2 deletions test/system/test_tpm2_pcrevent.sh
Expand Up @@ -71,14 +71,14 @@ for l in `cat $hash_out_file`; do
done;

tpm2_pcrlist -L sha1:9 --format=yaml > $yaml_out_file
old_pcr_value=`yaml_get.py sha1 9 $yaml_out_file`
old_pcr_value=`./yaml_get.py sha1 9 $yaml_out_file`

# Verify that extend works, and test large files
dd if=/dev/urandom of=$hash_in_file count=1 bs=2093 2> /dev/null
tpm2_pcrevent -Q -i 9 $hash_in_file

tpm2_pcrlist -L sha1:9 --format=yaml > $yaml_out_file
new_pcr_value=`yaml_get.py sha1 9 $yaml_out_file`
new_pcr_value=`./yaml_get.py sha1 9 $yaml_out_file`

if [ "$new_pcr_value" == "$old_pcr_value" ]; then
echo "Expected PCR value to change after pcrevent with index 9."
Expand Down Expand Up @@ -110,5 +110,6 @@ if [ $? -eq 0 ]; then
exit 1;
fi

echo "tpm2_pcrevent succeed"

exit 0