3 TESTDIR
=${abs_top_testdir:-$(dirname "$0")}
4 ROOT
=${abs_top_builddir:-$(dirname "$0")/..}
5 source ${TESTDIR}/common
6 skip_test_no_tpm20
"${SWTPM_EXE}"
10 export SWTPM_IOCTL_BUFFERSIZE
=100
11 export SWTPM_INTERFACE
=cuse
12 bash _test_tpm2_migration_key
14 [ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
16 export SWTPM_IOCTL_BUFFERSIZE
=4096
17 export SWTPM_INTERFACE
=cuse
18 bash _test_tpm2_migration_key
20 [ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
22 export SWTPM_INTERFACE
=socket
+socket
23 export SWTPM_SERVER_NAME
=localhost
24 export SWTPM_SERVER_PORT
=65500
25 export SWTPM_CTRL_PORT
=65501
26 bash _test_tpm2_migration_key
28 [ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
30 export SWTPM_INTERFACE
=socket
+unix
31 export SWTPM_SERVER_NAME
=localhost
32 export SWTPM_SERVER_PORT
=65500
33 bash _test_tpm2_migration_key
35 [ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
37 export SWTPM_INTERFACE
=unix
+unix
38 bash _test_tpm2_migration_key
40 [ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret