mirror of
https://github.com/stefanberger/swtpm.git
synced 2025-08-22 10:30:52 +00:00
21 lines
441 B
Bash
Executable File
21 lines
441 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
TESTDIR=${abs_top_testdir:-$(dirname "$0")}
|
|
ROOT=${abs_top_builddir:-$(dirname "$0")/..}
|
|
source "${TESTDIR}/common"
|
|
skip_test_no_tpm20 "${SWTPM_EXE}"
|
|
|
|
cd "$(dirname "$0")" || exit 1
|
|
|
|
export SWTPM_IFACE=cuse
|
|
bash _test_tpm2_print_capabilities
|
|
ret=$?
|
|
[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
|
|
|
|
export SWTPM_IFACE=socket
|
|
bash _test_tpm2_print_capabilities
|
|
ret=$?
|
|
[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
|
|
|
|
exit 0
|