Debian Codegraph @

tests/test_tpm2_print_states

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 TESTDIR=${abs_top_testdir:-$(dirnamescip-shell system . . dirname. "$0")}
4 ROOT=${abs_top_builddir:-$(dirnamescip-shell system . . dirname. "$0")/..}
5 source "${TESTDIR}/common"
6 skip_test_no_tpm20 "${SWTPM_EXE}"
7
8 cd "$(dirnamescip-shell system . . dirname. "$0")" || exit 1
9
10 export SWTPM_IFACE=cuse
11 bashscip-shell system . . bash. _test_tpm2_print_states
12 ret=$?
13 [scip-shell system . . `[`. $ret -ne 0 ] && [scip-shell system . . `[`. $ret -ne 77 ] && exit $ret
14
15 export SWTPM_IFACE=socket
16 export SWTPM_INTERFACE=socket+socket
17 export SWTPM_SERVER_NAME=localhost
18 export SWTPM_SERVER_PORT=65470
19 export SWTPM_CTRL_PORT=65471
20 bashscip-shell system . . bash. _test_tpm2_print_states
21 ret=$?
22 [scip-shell system . . `[`. $ret -ne 0 ] && [scip-shell system . . `[`. $ret -ne 77 ] && exit $ret
23
24 if test_swtpm_has_chardev "${SWTPM_EXE}"; then
25 export SWTPM_IFACE=chardev
26 bashscip-shell system . . bash. _test_tpm2_print_states
27 ret=$?
28 [scip-shell system . . `[`. $ret -ne 0 ] && [scip-shell system . . `[`. $ret -ne 77 ] && exit $ret
29 else
30 echoscip-shell system . . echo. "Skip: No chardev available"
31 fi
32
33 exit 0