]> git.proxmox.com Git - swtpm.git/blob - tests/test_tpm2_swtpm_bios
tests: Apply patches to IBM TSS2 test suite
[swtpm.git] / tests / test_tpm2_swtpm_bios
1 #!/usr/bin/env bash
2
3 cd "$(dirname "$0")"
4
5 export SWTPM_IOCTL_BUFFERSIZE=100
6 export SWTPM_INTERFACE=cuse
7 bash _test_tpm2_swtpm_bios
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_tpm2_swtpm_bios
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=65520
20 export SWTPM_CTRL_PORT=65521
21 bash _test_tpm2_swtpm_bios
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=65520
28 bash _test_tpm2_swtpm_bios
29 ret=$?
30 [ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
31
32 export SWTPM_INTERFACE=unix+unix
33 bash _test_tpm2_swtpm_bios
34 ret=$?
35 [ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
36
37 exit 0