mirror of
https://github.com/stefanberger/swtpm.git
synced 2025-08-22 10:30:52 +00:00

Add a test case testing the returned value from swtpm <iface> --tpm2 --print-capabilities along with those return from swtpm_setup. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
16 lines
280 B
Bash
Executable File
16 lines
280 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
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
|