mirror of
https://github.com/stefanberger/swtpm.git
synced 2025-08-22 19:04:35 +00:00

On some systems /bin/bash does not exists but the bash is somewhere else and can be invoked with /usr/bin/env bash. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
38 lines
851 B
Bash
Executable File
38 lines
851 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
export SWTPM_IOCTL_BUFFERSIZE=100
|
|
export SWTPM_INTERFACE=cuse
|
|
bash _test_tpm2_savestate
|
|
ret=$?
|
|
[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
|
|
|
|
export SWTPM_IOCTL_BUFFERSIZE=4096
|
|
export SWTPM_INTERFACE=cuse
|
|
bash _test_tpm2_savestate
|
|
ret=$?
|
|
[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
|
|
|
|
export SWTPM_INTERFACE=socket+socket
|
|
export SWTPM_SERVER_NAME=localhost
|
|
export SWTPM_SERVER_PORT=65524
|
|
export SWTPM_CTRL_PORT=65525
|
|
bash _test_tpm2_savestate
|
|
ret=$?
|
|
[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
|
|
|
|
export SWTPM_INTERFACE=socket+unix
|
|
export SWTPM_SERVER_NAME=localhost
|
|
export SWTPM_SERVER_PORT=65524
|
|
bash _test_tpm2_savestate
|
|
ret=$?
|
|
[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
|
|
|
|
export SWTPM_INTERFACE=unix+unix
|
|
bash _test_tpm2_savestate
|
|
ret=$?
|
|
[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
|
|
|
|
exit 0
|