Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Exit IBM TSS2 test early if it does not support swtpm #940

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/test_tpm2_ibmtss2
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ export TPM_PLATFORM_PORT=${SWTPM_CTRL_PORT}
export SWTPM_IOCTL

if [ -d "$SWTPM_TEST_IBMTSS" ]; then
for opt in swtpm without-ecc without-nuvoton without-events; do
if ! "$SWTPM_TEST_IBMTSS"/tssreg.sh -h | grep -q "${opt}"; then
echo "Cannot run test with installed IBM TSS2 test suite since it does not support the --${opt} option."
exit 1
fi
done

# assume tss is installed with the default prefix
if ! tssstartup; then
echo "Startup of TPM2 failed"
Expand Down