]> git.proxmox.com Git - swtpm.git/blame - tests/test_tpm_probe
tests: Apply patches to IBM TSS2 test suite
[swtpm.git] / tests / test_tpm_probe
CommitLineData
8f0f381f 1#!/usr/bin/env bash
3008874c
SB
2
3cd "$(dirname "$0")"
4
5export SWTPM_IOCTL_BUFFERSIZE=100
6export SWTPM_INTERFACE=cuse
7bash _test_tpm_probe
8ret=$?
9[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
10
11export SWTPM_IOCTL_BUFFERSIZE=4096
12export SWTPM_INTERFACE=cuse
13bash _test_tpm_probe
14ret=$?
15[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
16
17export SWTPM_INTERFACE=socket+socket
18export SWTPM_SERVER_NAME=localhost
19export SWTPM_SERVER_PORT=65526
20export SWTPM_CTRL_PORT=65527
21bash _test_tpm_probe
22ret=$?
23[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
24
25export SWTPM_INTERFACE=socket+unix
26export SWTPM_SERVER_NAME=localhost
27export SWTPM_SERVER_PORT=65526
28bash _test_tpm_probe
29ret=$?
30[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
31
32export SWTPM_INTERFACE=unix+unix
33bash _test_tpm_probe
34ret=$?
35[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
36
37exit 0