swtpm/tests/test_tpm2_print_capabilities
Stefan Berger ea7f80176e tests: Add test case for 'swtpm <iface> --tpm2 --print-capabilities'
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>
2020-04-23 16:02:47 -04:00

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