]>
Commit | Line | Data |
---|---|---|
8f0f381f | 1 | #!/usr/bin/env bash |
3008874c SB |
2 | |
3 | cd "$(dirname "$0")" | |
4 | ||
5 | export SWTPM_IOCTL_BUFFERSIZE=100 | |
6 | export SWTPM_INTERFACE=cuse | |
7 | bash _test_tpm_probe | |
8 | ret=$? | |
9 | [ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret | |
10 | ||
11 | export SWTPM_IOCTL_BUFFERSIZE=4096 | |
12 | export SWTPM_INTERFACE=cuse | |
13 | bash _test_tpm_probe | |
14 | ret=$? | |
15 | [ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret | |
16 | ||
17 | export SWTPM_INTERFACE=socket+socket | |
18 | export SWTPM_SERVER_NAME=localhost | |
19 | export SWTPM_SERVER_PORT=65526 | |
20 | export SWTPM_CTRL_PORT=65527 | |
21 | bash _test_tpm_probe | |
22 | ret=$? | |
23 | [ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret | |
24 | ||
25 | export SWTPM_INTERFACE=socket+unix | |
26 | export SWTPM_SERVER_NAME=localhost | |
27 | export SWTPM_SERVER_PORT=65526 | |
28 | bash _test_tpm_probe | |
29 | ret=$? | |
30 | [ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret | |
31 | ||
32 | export SWTPM_INTERFACE=unix+unix | |
33 | bash _test_tpm_probe | |
34 | ret=$? | |
35 | [ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret | |
36 | ||
37 | exit 0 |