Skip to content

Commit a9471d1

Browse files
committed
use WOLFCRYPT_ENABLE when testing without WC
1 parent c12aa6b commit a9471d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/run_examples.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ fi
685685

686686
# Seal/Unseal (PCR-only Policy)
687687
echo -e "Seal/Unseal (PCR-only policy)"
688-
if [ $NO_FILESYSTEM -eq 0 ]; then
688+
if [ $WOLFCRYPT_ENABLE -eq 1 ] && [ $NO_FILESYSTEM -eq 0 ]; then
689689
# Reset PCR 16 and extend with known value
690690
./examples/pcr/reset 16 >> $TPMPWD/run.out 2>&1
691691
RESULT=$?
@@ -761,7 +761,7 @@ fi
761761

762762
# NV Seal (PCR Policy)
763763
echo -e "NV Seal (PCR policy)"
764-
if [ $NO_FILESYSTEM -eq 0 ]; then
764+
if [ $WOLFCRYPT_ENABLE -eq 1 ] && [ $NO_FILESYSTEM -eq 0 ]; then
765765
# Reset PCR 16 and extend with known value
766766
./examples/pcr/reset 16 >> $TPMPWD/run.out 2>&1
767767
RESULT=$?

0 commit comments

Comments
 (0)