]> git.proxmox.com Git - swtpm.git/blame - tests/test_swtpm_bios
packaging: track dbgsym package for swtpm-libs and swtpm-tools
[swtpm.git] / tests / test_swtpm_bios
CommitLineData
8f0f381f 1#!/usr/bin/env bash
ffcb6535 2
f1adde9f
SB
3TESTDIR=${abs_top_testdir:-$(dirname "$0")}
4ROOT=${abs_top_builddir:-$(dirname "$0")/..}
5source ${TESTDIR}/common
6skip_test_no_tpm12 "${SWTPM_EXE}"
7
01aa2ed3 8cd "$(dirname "$0")"
ffcb6535 9
01aa2ed3
SB
10export SWTPM_IOCTL_BUFFERSIZE=100
11export SWTPM_INTERFACE=cuse
12bash _test_swtpm_bios
ffcb6535 13ret=$?
01aa2ed3 14[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
ffcb6535 15
01aa2ed3
SB
16export SWTPM_IOCTL_BUFFERSIZE=4096
17export SWTPM_INTERFACE=cuse
18bash _test_swtpm_bios
ffcb6535 19ret=$?
01aa2ed3 20[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
ffcb6535 21
01aa2ed3
SB
22export SWTPM_INTERFACE=socket+socket
23export SWTPM_SERVER_NAME=localhost
24export SWTPM_SERVER_PORT=65424
25export SWTPM_CTRL_PORT=65425
26bash _test_swtpm_bios
ffcb6535 27ret=$?
01aa2ed3 28[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
ffcb6535 29
01aa2ed3
SB
30export SWTPM_INTERFACE=socket+unix
31export SWTPM_SERVER_NAME=localhost
32export SWTPM_SERVER_PORT=65424
33bash _test_swtpm_bios
34ret=$?
35[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
ffcb6535 36
01aa2ed3
SB
37export SWTPM_INTERFACE=unix+unix
38bash _test_swtpm_bios
39ret=$?
40[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
ffcb6535
SB
41
42exit 0