Skip to content

Instantly share code, notes, and snippets.

@moritzbuhl
Created August 10, 2026 13:27
Show Gist options
  • Select an option

  • Save moritzbuhl/9ef2d0e89c15e4f73532ff90449f1003 to your computer and use it in GitHub Desktop.

Select an option

Save moritzbuhl/9ef2d0e89c15e4f73532ff90449f1003 to your computer and use it in GitHub Desktop.
swtpm OpenBSD port test.log
Making check in include
Making check in swtpm
Making check in man
Making check in man3
Making check in man5
Making check in man8
Making check in samples
Making check in src
Making check in utils
Making check in swtpm
Making check in swtpm_bios
Making check in swtpm_cert
Making check in swtpm_ioctl
Making check in swtpm_localca
Making check in swtpm_setup
Making check in tests
make
make check-TESTS
Need to be root to run this test.
SKIP: test_vtpm_proxy
Need to be root to run this test.
SKIP: test_tpm2_vtpm_proxy
This test only runs only Linux.
SKIP: test_commandline
'^ [[:print:]]+$' occurrences: 2282 (OK)
'^ [[:print:]]+$' occurrences: 2254 (OK)
'^ [[:print:]]+$' occurrences: 2254 (OK)
'^ [[:print:]]+$' occurrences: 2254 (OK)
'^ [[:print:]]+$' occurrences: 2235 (OK)
'^ [[:print:]]+$' occurrences: 918 (OK)
'^ [[:print:]]+$' occurrences: 33 (OK)
OK
==== Starting swtpm with interfaces socket+unix ====
'^[[:print:]]+$' occurrences: 1 (OK)
OK
==== Starting swtpm with interfaces socket+unix ====
'^ [[:print:]]+$' occurrences: 2440 (OK)
'^ [[:print:]]+$' occurrences: 2362 (OK)
'^ [[:print:]]+$' occurrences: 2362 (OK)
'^ [[:print:]]+$' occurrences: 2362 (OK)
'^ [[:print:]]+$' occurrences: 2330 (OK)
'^ [[:print:]]+$' occurrences: 996 (OK)
'^ [[:print:]]+$' occurrences: 39 (OK)
OK
==== Starting swtpm with interfaces socket+unix ====
'^[[:print:]]+$' occurrences: 0 (OK)
OK
PASS: test_ctrlchannel
/usr/ports/pobj/swtpm-0.10.2pre20260611/build-aarch64/src/swtpm/swtpm does not support chardev interface
SKIP: test_ctrlchannel2
Need Linux to run UnixIO test for CMD_SET_DATAFD.
Test 1: Skipped
Test 2: OK
Test 3: OK
PASS: test_ctrlchannel3
/usr/ports/pobj/swtpm-0.10.2pre20260611/build-aarch64/src/swtpm/swtpm does not support chardev interface
SKIP: test_ctrlchannel4
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_encrypted_state
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_getcap
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_hashing
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_hashing2
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
swtpm: SWTPM_NVRAM_LoadData_Dir: Error (fatal) reading /tmp/tmp.BcpDbnJBrx/tpm-00.permall: Permission denied
swtpm: Error: Could not initialize libtpms.
swtpm: Error: Could not initialize the TPM
TPM result from PTM_INIT: 0x9
OK
==== Starting swtpm with interfaces socket+unix ====
swtpm: SWTPM_NVRAM_LoadData_Dir: Error (fatal) reading /tmp/tmp.01HKjiISfR/tpm-00.permall: Permission denied
swtpm: Error: Could not initialize libtpms.
swtpm: Error: Could not initialize the TPM
TPM result from PTM_INIT: 0x9
OK
==== Starting swtpm with interfaces unix+unix ====
swtpm: SWTPM_NVRAM_LoadData_Dir: Error (fatal) reading /tmp/tmp.uGrt5oyHBo/tpm-00.permall: Permission denied
swtpm: Error: Could not initialize libtpms.
swtpm: Error: Could not initialize the TPM
TPM result from PTM_INIT: 0x9
OK
PASS: test_init
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
Locality outside valid range of [0..4].
OK
==== Starting swtpm with interfaces socket+unix ====
Locality outside valid range of [0..4].
OK
==== Starting swtpm with interfaces unix+unix ====
Locality outside valid range of [0..4].
OK
PASS: test_locality
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
Test 1: Ok
==== Starting swtpm with interfaces socket+socket ====
Test 2: Ok
==== Starting swtpm with interfaces socket+socket ====
swtpm: Missing migration key to decrypt volatilestate
Test 3: Ok
==== Starting swtpm with interfaces socket+socket ====
Test 4: Ok
==== Starting swtpm with interfaces socket+unix ====
Test 1: Ok
==== Starting swtpm with interfaces socket+unix ====
Test 2: Ok
==== Starting swtpm with interfaces socket+unix ====
swtpm: Missing migration key to decrypt volatilestate
Test 3: Ok
==== Starting swtpm with interfaces socket+unix ====
Test 4: Ok
==== Starting swtpm with interfaces unix+unix ====
Test 1: Ok
==== Starting swtpm with interfaces unix+unix ====
Test 2: Ok
==== Starting swtpm with interfaces unix+unix ====
swtpm: Missing migration key to decrypt volatilestate
Test 3: Ok
==== Starting swtpm with interfaces unix+unix ====
Test 4: Ok
PASS: test_migration_key
Test 0: SUCCESS with parameters ''.
Test 1: SUCCESS with parameters '--createek'.
Test 2: SUCCESS with parameters '--take-ownership'.
Test 3: SUCCESS with parameters '--createek --lock-nvram'.
Test 4: SUCCESS with parameters '--take-ownership --lock-nvram'.
Test 5: SUCCESS with parameters '--lock-nvram'.
Test 6: SUCCESS with parameters '--take-ownership --ownerpass OOO'.
Test 7: SUCCESS with parameters '--take-ownership --srkpass SSS'.
Test 8: SUCCESS with parameters '--take-ownership --ownerpass OO --srkpass SS'.
Test 9: SUCCESS with parameters '--take-ownership --lock-nvram --display'.
Test 10: SUCCESS with parameters '--display'.
Test 11: SUCCESS with parameters '--lock-nvram --display'.
Test 12: SUCCESS with parameters '--take-ownership --srk-well-known'.
Test 13: SUCCESS with parameters '--take-ownership --owner-well-known'.
Test 14: SUCCESS with parameters '--take-ownership --srk-well-known --owner-well-known'.
Test 15: SUCCESS with parameters '--createek --create-ek-cert --create-platform-cert --lock-nvram --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display'.
Test 16: SUCCESS with parameters '--createek --create-ek-cert --create-platform-cert --lock-nvram --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --keyfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/keyfile.txt'.
Test 17: SUCCESS with parameters '--createek --create-ek-cert --create-platform-cert --lock-nvram --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --pwdfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/pwdfile.txt'.
Test 18: SUCCESS with parameters '--createek --create-ek-cert --create-platform-cert --lock-nvram --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --keyfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/keyfile256bit.txt --cipher aes-256-cbc'.
Test 19: SUCCESS with parameters '--createek --create-ek-cert --create-platform-cert --lock-nvram --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --pwdfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/pwdfile.txt --cipher aes-256-cbc'.
Test 20: SUCCESS with parameters '--createek --create-ek-cert --create-platform-cert --lock-nvram --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --keyfile-fd 100 --cipher aes-256-cbc'.
Test 21: SUCCESS with parameters '--createek --create-ek-cert --create-platform-cert --lock-nvram --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --pwdfile-fd 101 --cipher aes-256-cbc'.
PASS: test_parameters
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
Test 1: Ok
==== Starting swtpm with interfaces socket+socket ====
Test 2: Ok
==== Starting swtpm with interfaces socket+socket ====
Test 3: Ok
==== Starting swtpm with interfaces socket+unix ====
Test 1: Ok
==== Starting swtpm with interfaces socket+unix ====
Test 2: Ok
==== Starting swtpm with interfaces socket+unix ====
Test 3: Ok
==== Starting swtpm with interfaces unix+unix ====
Test 1: Ok
==== Starting swtpm with interfaces unix+unix ====
Test 2: Ok
==== Starting swtpm with interfaces unix+unix ====
Test 3: Ok
PASS: test_resume_volatile
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
Saved permanent state.
Saved volatile state.
Loaded permanent state.
Loaded volatile state.
Test 1: Ok
sha1(volatile) : [file /tmp/tmp.aT6l0CwL5L/tpm-00.volatilestate does not exist]
sha1(permanent): 62874b46ea69db3b3a6f95f132fc701c64a0fa50
==== Starting swtpm with interfaces socket+socket ====
Test 2: Ok
sha1(volatile) : [file /tmp/tmp.aT6l0CwL5L/tpm-00.volatilestate does not exist]
sha1(permanent): 62874b46ea69db3b3a6f95f132fc701c64a0fa50
==== Starting swtpm with interfaces socket+socket ====
Test 3: Ok
OK
==== Starting swtpm with interfaces socket+unix ====
Saved permanent state.
Saved volatile state.
Loaded permanent state.
Loaded volatile state.
Test 1: Ok
sha1(volatile) : [file /tmp/tmp.xivyWmPCxO/tpm-00.volatilestate does not exist]
sha1(permanent): e34904659f6e6194df99f7bbb0f57abaf7ef1e46
==== Starting swtpm with interfaces socket+unix ====
Test 2: Ok
sha1(volatile) : [file /tmp/tmp.xivyWmPCxO/tpm-00.volatilestate does not exist]
sha1(permanent): e34904659f6e6194df99f7bbb0f57abaf7ef1e46
==== Starting swtpm with interfaces socket+unix ====
Test 3: Ok
OK
==== Starting swtpm with interfaces unix+unix ====
Saved permanent state.
Saved volatile state.
Loaded permanent state.
Loaded volatile state.
Test 1: Ok
sha1(volatile) : [file /tmp/tmp.39HrmRC9NP/tpm-00.volatilestate does not exist]
sha1(permanent): 92c26cf6412c6f89d1637922a85e76660cbe753c
==== Starting swtpm with interfaces unix+unix ====
Test 2: Ok
sha1(volatile) : [file /tmp/tmp.39HrmRC9NP/tpm-00.volatilestate does not exist]
sha1(permanent): 92c26cf6412c6f89d1637922a85e76660cbe753c
==== Starting swtpm with interfaces unix+unix ====
Test 3: Ok
OK
PASS: test_save_load_encrypted_state
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
Saved permanent state.
Saved volatile state.
Saved savestate state.
Loaded permanent state.
Loaded volatile state.
Loaded savestate state.
OK
==== Starting swtpm with interfaces socket+unix ====
Saved permanent state.
Saved volatile state.
Saved savestate state.
Loaded permanent state.
Loaded volatile state.
Loaded savestate state.
OK
==== Starting swtpm with interfaces unix+unix ====
Saved permanent state.
Saved volatile state.
Saved savestate state.
Loaded permanent state.
Loaded volatile state.
Loaded savestate state.
OK
=== Testing with linear file backend ===
==== Starting swtpm with interfaces socket+socket ====
Saved permanent state.
Saved volatile state.
Saved savestate state.
Loaded permanent state.
Loaded volatile state.
Loaded savestate state.
OK
PASS: test_save_load_state
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
TPM buffersize: 4096
minimum size : 3072
maximum size : 4096
TPM buffersize: 4000
minimum size : 3072
maximum size : 4096
OK
==== Starting swtpm with interfaces socket+unix ====
TPM buffersize: 4096
minimum size : 3072
maximum size : 4096
TPM buffersize: 4000
minimum size : 3072
maximum size : 4096
OK
==== Starting swtpm with interfaces unix+unix ====
TPM buffersize: 4096
minimum size : 3072
maximum size : 4096
TPM buffersize: 4000
minimum size : 3072
maximum size : 4096
OK
PASS: test_setbuffersize
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_volatilestate
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
OK
PASS: test_swtpm_bios
Warning: Certificate file has unexpected size.
Expected: 1395; found: 1363
Test 1: OK
Warning: Certificate file has unexpected size.
Expected: 1395; found: 1363
Test 2: OK
Warning: Certificate file has unexpected size.
Expected: 1460; found: 1428
Test 3: OK
Warning: Certificate file has unexpected size.
Expected: 1489; found: 1456
Test 4: OK
PASS: test_swtpm_cert
TPM is listening on Unix socket.
OK
PASS: test_swtpm_setup_create_cert
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_tpm_probe
SKIP: test_tpm12
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
TPM result from PTM_GET_TPMESTABLISHED: 0xa
'^ [[:print:]]+$' occurrences: 2195 (OK)
'^ [[:print:]]+$' occurrences: 2175 (OK)
'^ [[:print:]]+$' occurrences: 2175 (OK)
'^ [[:print:]]+$' occurrences: 2175 (OK)
'^ [[:print:]]+$' occurrences: 2156 (OK)
'^ [[:print:]]+$' occurrences: 870 (OK)
'^ [[:print:]]+$' occurrences: 26 (OK)
OK
==== Starting swtpm with interfaces socket+unix ====
TPM result from PTM_GET_TPMESTABLISHED: 0xa
'^ [[:print:]]+$' occurrences: 2195 (OK)
'^ [[:print:]]+$' occurrences: 2175 (OK)
'^ [[:print:]]+$' occurrences: 2175 (OK)
'^ [[:print:]]+$' occurrences: 2175 (OK)
'^ [[:print:]]+$' occurrences: 2156 (OK)
'^ [[:print:]]+$' occurrences: 870 (OK)
'^ [[:print:]]+$' occurrences: 26 (OK)
OK
==== Starting swtpm with interfaces unix+unix ====
TPM result from PTM_GET_TPMESTABLISHED: 0xa
'^ [[:print:]]+$' occurrences: 2195 (OK)
'^ [[:print:]]+$' occurrences: 2175 (OK)
'^ [[:print:]]+$' occurrences: 2175 (OK)
'^ [[:print:]]+$' occurrences: 2175 (OK)
'^ [[:print:]]+$' occurrences: 2156 (OK)
'^ [[:print:]]+$' occurrences: 870 (OK)
'^ [[:print:]]+$' occurrences: 26 (OK)
OK
PASS: test_wrongorder
Need Linux to run test with CUSE interface.
Test 1: OK
Test 2: OK
Test 3: OK
PASS: test_print_capabilities
Need Linux to run test with CUSE interface.
Test 1: OK
Test 2: OK
==== Starting swtpm with interfaces socket+socket ====
Test 3: OK
_test_print_states: line 118: 10084 Killed ${SWTPM_EXE} socket "$@" ${SWTPM_TEST_SECCOMP_OPT:+${SWTPM_TEST_SECCOMP_OPT}} --server "type=tcp,port=${SWTPM_SERVER_PORT}${swtpm_server_disconnect}" --ctrl "type=tcp,port=${SWTPM_CTRL_PORT}"
PASS: test_print_states
Test 1 passed
TPM is listening on Unix socket.
Test 2 passed
Test 3 passed
PASS: test_swtpm_setup_overwrite
TPM is listening on Unix socket.
Test 1 passed
TPM is listening on Unix socket.
Test 2 passed
Test 3 passed
PASS: test_swtpm_setup_file_backend
Test 1: Ok
Test 2: Ok
Test 3: Ok
PASS: test_swtpm_setup_misc
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_tpm2_avoid_da_lockout
Need to be root to run this test.
SKIP: test_tpm2_chroot_socket
Need to be root to run this test.
SKIP: test_tpm2_chroot_chardev
Need to be root to run this test.
SKIP: test_tpm2_chroot_cuse
/usr/ports/pobj/swtpm-0.10.2pre20260611/build-aarch64/src/swtpm/swtpm does not support chardev interface
SKIP: test_tpm2_ctrlchannel2
Need Linux to run UnixIO test for CMD_SET_DATAFD.
Test 1: Skipped
Test 2: OK
Test 3: OK
PASS: test_tpm2_ctrlchannel3
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
This test currently only runs on Linux
Testing new CryptAdjustPrimeCandidate implementation
==== Starting swtpm with interfaces socket+socket ====
Test 1: OK
Test 2: OK
Test 3: OK
Test 4: OK
Test 5: OK
==== Starting swtpm with interfaces unix+socket ====
This test currently only runs on Linux
Testing new CryptAdjustPrimeCandidate implementation
==== Starting swtpm with interfaces unix+socket ====
Test 1: OK
Test 2: OK
Test 3: OK
Test 4: OK
Test 5: OK
==== Starting swtpm with interfaces unix+unix ====
This test currently only runs on Linux
Testing new CryptAdjustPrimeCandidate implementation
==== Starting swtpm with interfaces unix+unix ====
Test 1: OK
Test 2: OK
Test 3: OK
Test 4: OK
Test 5: OK
PASS: test_tpm2_derived_keys
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
==== Starting swtpm with interfaces socket+socket ====
==== Starting swtpm with interfaces socket+socket ====
INFO: socket+socket interface passed backup option test
OK
==== Starting swtpm with interfaces socket+unix ====
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_tpm2_encrypted_state
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
swtpm: SWTPM_NVRAM_LoadData_Dir: Error (fatal) reading /tmp/tmp.EmifprCy7k/tpm2-00.permall: Permission denied
swtpm: SWTPM_NVRAM_LoadData_Dir: Error (fatal) reading /tmp/tmp.EmifprCy7k/tpm2-00.permall: Permission denied
libtpms/tpm2: Entering failure mode; code: 8, location: NvPowerOn line 117
swtpm: Error: Could not initialize libtpms.
swtpm: Error: Could not initialize the TPM
TPM result from PTM_INIT: 0x101
OK
==== Starting swtpm with interfaces socket+unix ====
swtpm: SWTPM_NVRAM_LoadData_Dir: Error (fatal) reading /tmp/tmp.rU3AHcEbvI/tpm2-00.permall: Permission denied
swtpm: SWTPM_NVRAM_LoadData_Dir: Error (fatal) reading /tmp/tmp.rU3AHcEbvI/tpm2-00.permall: Permission denied
libtpms/tpm2: Entering failure mode; code: 8, location: NvPowerOn line 117
swtpm: Error: Could not initialize libtpms.
swtpm: Error: Could not initialize the TPM
TPM result from PTM_INIT: 0x101
OK
==== Starting swtpm with interfaces unix+unix ====
swtpm: SWTPM_NVRAM_LoadData_Dir: Error (fatal) reading /tmp/tmp.5V7tJ6nUiM/tpm2-00.permall: Permission denied
swtpm: SWTPM_NVRAM_LoadData_Dir: Error (fatal) reading /tmp/tmp.5V7tJ6nUiM/tpm2-00.permall: Permission denied
libtpms/tpm2: Entering failure mode; code: 8, location: NvPowerOn line 117
swtpm: Error: Could not initialize libtpms.
swtpm: Error: Could not initialize the TPM
TPM result from PTM_INIT: 0x101
OK
PASS: test_tpm2_init
Need to be root to run this test.
SKIP: test_tpm2_file_permissions
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_tpm2_getcap
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
Locality outside valid range of [0..4].
OK
==== Starting swtpm with interfaces socket+unix ====
Locality outside valid range of [0..4].
OK
==== Starting swtpm with interfaces unix+unix ====
Locality outside valid range of [0..4].
OK
PASS: test_tpm2_locality
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_tpm2_hashing
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_tpm2_hashing2
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_tpm2_hashing3
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
Test 1: Ok
==== Starting swtpm with interfaces socket+socket ====
Test 2: Ok
==== Starting swtpm with interfaces socket+socket ====
Test 3: Ok
==== Starting swtpm with interfaces socket+socket ====
Test 4: Ok
==== Starting swtpm with interfaces socket+unix ====
Test 1: Ok
==== Starting swtpm with interfaces socket+unix ====
Test 2: Ok
==== Starting swtpm with interfaces socket+unix ====
Test 3: Ok
==== Starting swtpm with interfaces socket+unix ====
Test 4: Ok
==== Starting swtpm with interfaces unix+unix ====
Test 1: Ok
==== Starting swtpm with interfaces unix+unix ====
Test 2: Ok
==== Starting swtpm with interfaces unix+unix ====
Test 3: Ok
==== Starting swtpm with interfaces unix+unix ====
Test 4: Ok
PASS: test_tpm2_migration_key
Test 0: SUCCESS with parameters ''.
Test 1: SUCCESS with parameters '--createek'.
Test 2: SUCCESS with parameters '--createek --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display'.
Test 3: SUCCESS with parameters '--createek --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --keyfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/keyfile.txt'.
Test 4: SUCCESS with parameters '--createek --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --pwdfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/pwdfile.txt'.
Test 5: SUCCESS with parameters '--createek --allow-signing'.
Test 6: SUCCESS with parameters '--createek --allow-signing --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display'.
Test 7: SUCCESS with parameters '--createek --allow-signing --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --keyfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/keyfile.txt'.
Test 8: SUCCESS with parameters '--createek --allow-signing --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --pwdfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/pwdfile.txt'.
Test 9: SUCCESS with parameters '--createek --allow-signing --decryption --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --keyfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/keyfile256bit.txt --cipher aes-256-cbc'.
Test 10: SUCCESS with parameters '--createek --allow-signing --decryption --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --pwdfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/pwdfile.txt --cipher aes-256-cbc'.
Test 11: SUCCESS with parameters '--createek --create-spk --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --lock-nvram'.
Test 12: SUCCESS with parameters '--ecc --createek'.
Test 13: SUCCESS with parameters '--ecc --createek --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display'.
Test 14: SUCCESS with parameters '--ecc --createek --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --keyfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/keyfile.txt'.
Test 15: SUCCESS with parameters '--ecc --createek --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --pwdfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/pwdfile.txt'.
Test 16: SUCCESS with parameters '--ecc --createek --allow-signing'.
Test 17: SUCCESS with parameters '--ecc --createek --allow-signing --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display'.
Test 18: SUCCESS with parameters '--ecc --createek --allow-signing --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --keyfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/keyfile.txt'.
Test 19: SUCCESS with parameters '--ecc --createek --allow-signing --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --pwdfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/pwdfile.txt'.
Test 20: SUCCESS with parameters '--ecc --createek --allow-signing --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --keyfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/keyfile256bit.txt --cipher aes-256-cbc'.
Test 21: SUCCESS with parameters '--ecc --createek --allow-signing --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --pwdfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/pwdfile.txt --cipher aes-256-cbc'.
Test 22: SUCCESS with parameters '--ecc --createek --allow-signing --decryption --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --keyfile-fd 100 --cipher aes-256-cbc'.
Test 23: SUCCESS with parameters '--ecc --createek --allow-signing --decryption --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --pwdfile-fd 101 --cipher aes-256-cbc'.
Test 24: SUCCESS with parameters '--ecc --createek --create-spk --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --lock-nvram'.
Test 25: SUCCESS with parameters '--profile-name null --create-spk --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --ek1keyalgo ecc_nist_p384 --ek2keyalgo ecc_nist_p384'.
Test 26: SUCCESS with parameters '--profile-name null --create-spk --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --ek1keyalgo ecc_nist_p521 --ek2keyalgo secp256r1'.
Test 27: SUCCESS with parameters '--profile-name null --create-spk --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --ek1keyalgo ecc_nist_p256 --ek2keyalgo secp256r1'.
Test 28: SUCCESS with parameters '--profile-name null --create-spk --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --ek1keyalgo rsa2048 --ek2keyalgo secp521r1 --ecc'.
Test 29: SUCCESS with parameters '--profile-name null --create-spk --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --ek1keyalgo ecc_nist_p256 --ek2keyalgo secp256r1 --iakkeyalgo ecc_nist_p256 --idevidkeyalgo rsa2048'.
Test 30: SUCCESS with parameters '--profile-name null --create-spk --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --ek1keyalgo rsa2048 --ek2keyalgo rsa3072 --iakkeyalgo rsa3072 --idevidkeyalgo secp521r1 --ecc'.
Test 31: SUCCESS with parameters '--profile-name default-v1 --create-spk --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --ek1keyalgo rsa2048 --ek2keyalgo ecc_nist_p384'.
Test 32: SUCCESS with parameters '--createek --rsa-keysize 3072'.
Test 33: SUCCESS with parameters '--createek --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --rsa-keysize 3072'.
Test 34: SUCCESS with parameters '--createek --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --keyfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/keyfile.txt --rsa-keysize 3072'.
Test 35: SUCCESS with parameters '--createek --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --pwdfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/pwdfile.txt --rsa-keysize 3072'.
Test 36: SUCCESS with parameters '--createek --allow-signing --rsa-keysize 3072'.
Test 37: SUCCESS with parameters '--createek --allow-signing --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --rsa-keysize 3072'.
Test 38: SUCCESS with parameters '--createek --allow-signing --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --keyfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/keyfile.txt --rsa-keysize 3072'.
Test 39: SUCCESS with parameters '--createek --allow-signing --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --pwdfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/pwdfile.txt --rsa-keysize 3072'.
Test 40: SUCCESS with parameters '--createek --allow-signing --decryption --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --keyfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/keyfile256bit.txt --cipher aes-256-cbc --rsa-keysize 3072'.
Test 41: SUCCESS with parameters '--createek --allow-signing --decryption --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --display --pwdfile /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/data/pwdfile.txt --cipher aes-256-cbc --rsa-keysize 3072'.
Test 42: SUCCESS with parameters '--createek --create-spk --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --vmid test --lock-nvram --rsa-keysize 3072'.
Test 43: SUCCESS with parameters '--profile-name null --create-spk --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --ek1keyalgo rsa2048 --ek2keyalgo rsa3072 --iakkeyalgo rsa3072 --idevidkeyalgo secp521r1 --ecc'.
Test 44: SUCCESS with parameters '--profile-name default-v1 --create-spk --create-ek-cert --create-platform-cert --config /usr/ports/pobj/swtpm-0.10.2pre20260611/swtpm-a1d85c9ee73af2d4ebc91fa8a5d06858ebf1b5f2/tests/swtpm_setup.conf --ek1keyalgo rsa2048 --ek2keyalgo rsa3072'.
PASS: test_tpm2_parameters
Need Linux to run test with CUSE interface.
SKIP: test_tpm2_partial_reads
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_tpm2_pcap
Need Linux to run test with CUSE interface.
Test 1: OK
Test 2: OK
Test 3: OK
PASS: test_tpm2_print_capabilities
Need Linux to run test with CUSE interface.
Test 1: OK
Test 2: OK
==== Starting swtpm with interfaces socket+socket ====
Test 3: OK
_test_tpm2_print_states: line 118: 64773 Killed ${SWTPM_EXE} socket "$@" ${SWTPM_TEST_SECCOMP_OPT:+${SWTPM_TEST_SECCOMP_OPT}} --server "type=tcp,port=${SWTPM_SERVER_PORT}${swtpm_server_disconnect}" --ctrl "type=tcp,port=${SWTPM_CTRL_PORT}"
Skip: No chardev available
PASS: test_tpm2_print_states
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
Test 1: Ok
==== Starting swtpm with interfaces socket+socket ====
Test 2: Ok
==== Starting swtpm with interfaces socket+socket ====
Test 3: Ok
==== Starting swtpm with interfaces unix+socket ====
Test 1: Ok
==== Starting swtpm with interfaces unix+socket ====
Test 2: Ok
==== Starting swtpm with interfaces unix+socket ====
Test 3: Ok
==== Starting swtpm with interfaces unix+unix ====
Test 1: Ok
==== Starting swtpm with interfaces unix+unix ====
Test 2: Ok
==== Starting swtpm with interfaces unix+unix ====
Test 3: Ok
PASS: test_tpm2_resume_volatile
Need to be root to run this test.
SKIP: test_tpm2_samples_create_tpmca.test
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_tpm2_savestate
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
Saved permanent state.
Saved volatile state.
Loaded permanent state.
Loaded volatile state.
Test 1: Ok
sha1(volatile) : [file /tmp/tmp.QUdMxVJGDi/tpm2-00.volatilestate does not exist]
sha1(permanent): b8fd8494438371fd65d99569648a4f11b646de51
==== Starting swtpm with interfaces socket+socket ====
Test 2: Ok
sha1(volatile) : [file /tmp/tmp.QUdMxVJGDi/tpm2-00.volatilestate does not exist]
sha1(permanent): b8fd8494438371fd65d99569648a4f11b646de51
==== Starting swtpm with interfaces socket+socket ====
TPM result from PTM_INIT: 0x101
Test 3: Ok
OK
==== Starting swtpm with interfaces socket+unix ====
Saved permanent state.
Saved volatile state.
Loaded permanent state.
Loaded volatile state.
Test 1: Ok
sha1(volatile) : [file /tmp/tmp.jbKrcgaj5L/tpm2-00.volatilestate does not exist]
sha1(permanent): 9a183313501a8e0e8eab66f2bbfb490f1fee3363
==== Starting swtpm with interfaces socket+unix ====
Test 2: Ok
sha1(volatile) : [file /tmp/tmp.jbKrcgaj5L/tpm2-00.volatilestate does not exist]
sha1(permanent): 9a183313501a8e0e8eab66f2bbfb490f1fee3363
==== Starting swtpm with interfaces socket+unix ====
TPM result from PTM_INIT: 0x101
Test 3: Ok
OK
==== Starting swtpm with interfaces unix+unix ====
Saved permanent state.
Saved volatile state.
Loaded permanent state.
Loaded volatile state.
Test 1: Ok
sha1(volatile) : [file /tmp/tmp.drJ7vF65te/tpm2-00.volatilestate does not exist]
sha1(permanent): 4b621d1905056c31de1cef373f4028100fb31b38
==== Starting swtpm with interfaces unix+unix ====
Test 2: Ok
sha1(volatile) : [file /tmp/tmp.drJ7vF65te/tpm2-00.volatilestate does not exist]
sha1(permanent): 4b621d1905056c31de1cef373f4028100fb31b38
==== Starting swtpm with interfaces unix+unix ====
TPM result from PTM_INIT: 0x101
Test 3: Ok
OK
PASS: test_tpm2_save_load_encrypted_state
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
Saved permanent state.
Saved volatile state.
Loaded permanent state.
Loaded volatile state.
OK
==== Starting swtpm with interfaces socket+unix ====
Saved permanent state.
Saved volatile state.
Loaded permanent state.
Loaded volatile state.
OK
==== Starting swtpm with interfaces unix+unix ====
Saved permanent state.
Saved volatile state.
Loaded permanent state.
Loaded volatile state.
OK
PASS: test_tpm2_save_load_state
SWTPM_TEST_IBMTSS2 must be set to run this test.
SKIP: test_tpm2_save_load_state_2
SWTPM_TEST_IBMTSS2 must be set to run this test.
SKIP: test_tpm2_save_load_state_2_linear
This test currently only runs on Linux.
SKIP: test_tpm2_save_load_state_2_block
SWTPM_TEST_IBMTSS2 must be set to run this test.
SKIP: test_tpm2_save_load_state_3
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
Writing with good password failed due to lockout until 1786364822 - now is 1786364816.
Writing with good password failed due to lockout until 1786364822 - now is 1786364817.
Writing with good password failed due to lockout until 1786364822 - now is 1786364818.
Writing with good password failed due to lockout until 1786364822 - now is 1786364819.
Writing with good password failed due to lockout until 1786364822 - now is 1786364820.
Writing with good password failed due to lockout until 1786364822 - now is 1786364821.
Time is now 1786364823 -- trying with good password should work now.
Saved permanent state.
Saved volatile state.
Loaded permanent state.
Loaded volatile state.
Writing with good password failed due to lockout until 1786364829 - now is 1786364823.
Writing with good password failed due to lockout until 1786364829 - now is 1786364824.
Writing with good password failed due to lockout until 1786364829 - now is 1786364825.
Writing with good password failed due to lockout until 1786364829 - now is 1786364826.
Writing with good password failed due to lockout until 1786364829 - now is 1786364827.
Writing with good password failed due to lockout until 1786364829 - now is 1786364828.
Writing with good password failed due to lockout until 1786364829 - now is 1786364829.
Time is now 1786364830 -- trying with good password should work now.
OK
==== Starting swtpm with interfaces socket+unix ====
Writing with good password failed due to lockout until 1786364837 - now is 1786364831.
Writing with good password failed due to lockout until 1786364837 - now is 1786364832.
Writing with good password failed due to lockout until 1786364837 - now is 1786364833.
Writing with good password failed due to lockout until 1786364837 - now is 1786364834.
Writing with good password failed due to lockout until 1786364837 - now is 1786364835.
Writing with good password failed due to lockout until 1786364837 - now is 1786364837.
Time is now 1786364838 -- trying with good password should work now.
Saved permanent state.
Saved volatile state.
Loaded permanent state.
Loaded volatile state.
Writing with good password failed due to lockout until 1786364844 - now is 1786364838.
Writing with good password failed due to lockout until 1786364844 - now is 1786364839.
Writing with good password failed due to lockout until 1786364844 - now is 1786364840.
Writing with good password failed due to lockout until 1786364844 - now is 1786364841.
Writing with good password failed due to lockout until 1786364844 - now is 1786364842.
Writing with good password failed due to lockout until 1786364844 - now is 1786364843.
Writing with good password failed due to lockout until 1786364844 - now is 1786364844.
Time is now 1786364845 -- trying with good password should work now.
OK
==== Starting swtpm with interfaces unix+unix ====
Writing with good password failed due to lockout until 1786364852 - now is 1786364846.
Writing with good password failed due to lockout until 1786364852 - now is 1786364847.
Writing with good password failed due to lockout until 1786364852 - now is 1786364848.
Writing with good password failed due to lockout until 1786364852 - now is 1786364849.
Writing with good password failed due to lockout until 1786364852 - now is 1786364850.
Writing with good password failed due to lockout until 1786364852 - now is 1786364851.
Writing with good password failed due to lockout until 1786364852 - now is 1786364852.
Time is now 1786364853 -- trying with good password should work now.
Saved permanent state.
Saved volatile state.
Loaded permanent state.
Loaded volatile state.
Writing with good password failed due to lockout until 1786364860 - now is 1786364854.
Writing with good password failed due to lockout until 1786364860 - now is 1786364855.
Writing with good password failed due to lockout until 1786364860 - now is 1786364856.
Writing with good password failed due to lockout until 1786364860 - now is 1786364857.
Writing with good password failed due to lockout until 1786364860 - now is 1786364858.
Writing with good password failed due to lockout until 1786364860 - now is 1786364859.
Writing with good password failed due to lockout until 1786364860 - now is 1786364860.
Time is now 1786364861 -- trying with good password should work now.
OK
PASS: test_tpm2_save_load_state_da_timeout
This test needs procfs process file descriptor support or 'lsof'
SKIP: test_tpm2_save_load_state_locking
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
TPM buffersize: 4096
minimum size : 2896
maximum size : 4096
TPM buffersize: 4000
minimum size : 2896
maximum size : 4096
OK
==== Starting swtpm with interfaces socket+unix ====
TPM buffersize: 4096
minimum size : 2896
maximum size : 4096
TPM buffersize: 4000
minimum size : 2896
maximum size : 4096
OK
==== Starting swtpm with interfaces unix+unix ====
TPM buffersize: 4096
minimum size : 2896
maximum size : 4096
TPM buffersize: 4000
minimum size : 2896
maximum size : 4096
OK
PASS: test_tpm2_setbuffersize
Testing with RSA certificate signing key
Test 1: OK (modulus)
Test 2: OK (ecc; coordinates)
Test 3: OK (allow signing)
Test 4: OK (ecc)
Test 4: SKIP unsupported (ML-KEM-1024 key)
Test 4: SKIP unsupported (ML-KEM-512 key)
Test 4: SKIP unsupported (ML-DSA-87 key)
Warning: DER Certificate has unexpected size.
Expected: 2340; found: 1057
Test 5: OK (platform cert)
Warning: DER Certificate has unexpected size.
Expected: 1572; found: 806
Test 6: OK (platform cert; ec key)
Warning: DER Certificate has unexpected size.
Expected: 3364; found: 973
Test 7: OK (IAK)
Test 7: SKIP unsupported (ML-DSA-87 IAK)
Warning: DER Certificate has unexpected size.
Expected: 1057; found: 973
Test 8: OK (IDevID)
Warning: DER Certificate has unexpected size.
Expected: 806; found: 1112
Serial number is too large.
Test 9: OK (failed as expected)
Testing with secp521r1 certificate signing key
Test 1: OK (modulus)
Test 2: OK (ecc; coordinates)
Test 3: OK (allow signing)
Test 4: OK (ecc)
Test 4: SKIP unsupported (ML-KEM-1024 key)
Test 4: SKIP unsupported (ML-KEM-512 key)
Test 4: SKIP unsupported (ML-DSA-87 key)
Warning: DER Certificate has unexpected size.
Expected: 2086-2088; found: 805
Test 5: OK (platform cert)
Warning: DER Certificate has unexpected size.
Expected: 1318-1320; found: 554
Test 6: OK (platform cert; ec key)
Warning: DER Certificate has unexpected size.
Expected: 3110-3112; found: 720
Test 7: OK (IAK)
Test 7: SKIP unsupported (ML-DSA-87 IAK)
Warning: DER Certificate has unexpected size.
Expected: 804-805; found: 721
Test 8: OK (IDevID)
Warning: DER Certificate has unexpected size.
Expected: 552-554; found: 860
Serial number is too large.
Test 9: OK (failed as expected)
Warning: ml-dsa-87 and Ed448 are not yet supported with LibreSSL
PASS: test_tpm2_swtpm_cert
Creating root CA and a local CA's signing key and issuer cert.
Successfully created EK certificate locally.
Digital Signature
Found 'Digital Signature'
/tmp/path with spaces.G9sgFC/ek.cert.pem: OK
Creating root CA and a local CA's signing key and issuer cert.
Successfully created EK certificate locally.
Digital Signature
Found 'Digital Signature'
Key Encipherment
Found ' Key Encipherment'
/tmp/path with spaces.G9sgFC/ek.cert.pem: OK
Creating root CA and a local CA's signing key and issuer cert.
Successfully created EK certificate locally.
Key Encipherment
Found 'Key Encipherment'
/tmp/path with spaces.G9sgFC/ek.cert.pem: OK
Creating root CA and a local CA's signing key and issuer cert.
Successfully created EK certificate locally.
Key Encipherment
Found 'Key Encipherment'
/tmp/path with spaces.G9sgFC/ek.cert.pem: OK
Test 1: OK
PASS: test_tpm2_swtpm_localca
Could not setup softhsm:
Need softhsm2-util from softhsm2 package
softhsm needs to be v2.3.0 or greater and pkcs11 correctly configured
Need softhsm2-util from softhsm2 package
SKIP: test_tpm2_swtpm_localca_pkcs11.test
{ "type": "swtpm_setup", "features": [ "tpm-1.2", "tpm-2.0", "cmdarg-keyfile-fd", "cmdarg-pwdfile-fd", "tpm12-not-need-root", "cmdarg-write-ek-cert-files", "cmdarg-create-config-files", "cmdarg-reconfigure-pcr-banks", "tpm2-rsa-keysize-2048", "tpm2-rsa-keysize-3072", "tpm2-rsa-keysize-4096", "cmdarg-profile", "cmdarg-profile-remove-disabled", "cmdarg-ek1keyalgo", "cmdarg-ek2keyalgo", "cmdarg-iakkeyalgo", "cmdarg-idevidkeyalgo" ], "profiles": [ "default-v2", "default-v1", "null", "custom" ], "version": "0.11.0" }
Testing with RSA keysize 2048
TPM is listening on Unix socket.
Testing with RSA keysize 3072
TPM is listening on Unix socket.
Test 1: OK
TPM is listening on Unix socket.
TPM is listening on Unix socket.
Filesize: 9190; hash: 6ffda53d778037a6abbd3da05a8bb6fed834df56; pwdfile:
TPM is listening on Unix socket.
Filesize: 9190; hash: 409ffff58875a3e6f0dfb6d1db22935e4d01a60a; pwdfile:
TPM is listening on Unix socket.
Filesize: 9190; hash: db5bf3533a20b8c1827649f9b030186bd5b9c916; pwdfile:
TPM is listening on Unix socket.
TPM is listening on Unix socket.
Filesize: 9260; hash: b1cd200962b370320b330334e89dba435cf38d34; pwdfile: /tmp/path with spaces.oN25zy/pwd
TPM is listening on Unix socket.
Filesize: 9260; hash: 75d2f3a31611d9793c77e7a2416a871417752a15; pwdfile: /tmp/path with spaces.oN25zy/pwd
TPM is listening on Unix socket.
Filesize: 9260; hash: 0b126e82df64273d517081eef374f3baef8988e7; pwdfile: /tmp/path with spaces.oN25zy/pwd
Test 2: OK
PASS: test_tpm2_swtpm_setup_create_cert
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_tpm2_volatilestate
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_tpm2_wrongorder
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
OK
PASS: test_tpm2_probe
SWTPM_TEST_IBMTSS2 must be set to run this test.
SKIP: test_tpm2_profile_disabled_features
Need Linux to run test with CUSE interface.
Need Linux to run test with CUSE interface.
==== Starting swtpm with interfaces socket+socket ====
OK
==== Starting swtpm with interfaces socket+unix ====
OK
==== Starting swtpm with interfaces unix+unix ====
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
swtpm: Data client disconnected
OK
PASS: test_tpm2_swtpm_bios
SWTPM_TEST_EXPENSIVE must be set to run this test.
SKIP: test_tpm2_ibmtss2
INFO: Testing with rsa2048 and ecc_nist_p256
TPM is listening on Unix socket.
Test 1: OK
INFO: Testing with ecc_nist_p384 and ecc_nist_p521
TPM is listening on Unix socket.
Test 2: OK
INFO: Testing with rsa3072 and rsa2048
TPM is listening on Unix socket.
Test 3: OK
PASS: test_tpm2_swtpm_setup_check_certs
Test 1 passed
TPM is listening on Unix socket.
Test 2 passed
Test 3 passed
PASS: test_tpm2_swtpm_setup_overwrite
==== Starting swtpm with interfaces socket+socket ====
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test without profile passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with profile 'default-v2' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with profile 'default-v1' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with profile 'null' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with profile 'custom' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv,ecc-nist' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv,ecc-nist,ecc-bn' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv,ecc-nist,ecc-bn,ecc-nist-p192' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv,ecc-nist,ecc-bn,ecc-nist-p192,ecc-nist-p224' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv,ecc-nist,ecc-bn,ecc-nist-p192,ecc-nist-p224,ecc-nist-p521' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv,ecc-nist,ecc-bn,ecc-nist-p192,ecc-nist-p224,ecc-nist-p521,ecc-bn-p256' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv,ecc-nist,ecc-bn,ecc-nist-p192,ecc-nist-p224,ecc-nist-p521,ecc-bn-p256,ecc-bn-p638' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv,ecc-nist,ecc-bn,ecc-nist-p192,ecc-nist-p224,ecc-nist-p521,ecc-bn-p256,ecc-bn-p638,ecc-sm2-p256' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv,ecc-nist,ecc-bn,ecc-nist-p192,ecc-nist-p224,ecc-nist-p521,ecc-bn-p256,ecc-bn-p638,ecc-sm2-p256,camellia' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv,ecc-nist,ecc-bn,ecc-nist-p192,ecc-nist-p224,ecc-nist-p521,ecc-bn-p256,ecc-bn-p638,ecc-sm2-p256,camellia,cmac' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv,ecc-nist,ecc-bn,ecc-nist-p192,ecc-nist-p224,ecc-nist-p521,ecc-bn-p256,ecc-bn-p638,ecc-sm2-p256,camellia,cmac,ctr' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv,ecc-nist,ecc-bn,ecc-nist-p192,ecc-nist-p224,ecc-nist-p521,ecc-bn-p256,ecc-bn-p638,ecc-sm2-p256,camellia,cmac,ctr,ofb' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv,ecc-nist,ecc-bn,ecc-nist-p192,ecc-nist-p224,ecc-nist-p521,ecc-bn-p256,ecc-bn-p638,ecc-sm2-p256,camellia,cmac,ctr,ofb,cbc' passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and disabled algorithms 'tdes,sha1,sha512,rsassa,rsaes,rsapss,ecdaa,sm2,ecschnorr,ecmqv,ecc-nist,ecc-bn,ecc-nist-p192,ecc-nist-p224,ecc-nist-p521,ecc-bn-p256,ecc-bn-p638,ecc-sm2-p256,camellia,cmac,ctr,ofb,cbc,ecb' passed
Test with custom profile and commands (with 0x199-0x19a) passed with StateFormatLevel 1.
Test with custom profile and commands (with 0x199-0x19a) passed with StateFormatLevel 2.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands (with 0x199-0x19a) passed with StateFormatLevel 3.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands (with 0x199-0x19a) passed with StateFormatLevel 4.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands (with 0x199-0x19a) passed with StateFormatLevel 5.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands (with 0x199-0x19a) passed with StateFormatLevel 6.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands (with 0x199-0x19a) passed with StateFormatLevel 7.
Test with custom profile and commands (with 0x199-0x19b) passed with StateFormatLevel 1.
TPM is listening on Unix socket.
Test with custom profile and commands (with 0x199-0x19b) passed with StateFormatLevel 2.
Test with custom profile and commands (with 0x199-0x19b) passed with StateFormatLevel 3.
TPM is listening on Unix socket.
Test with custom profile and commands (with 0x199-0x19b) passed with StateFormatLevel 4.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands (with 0x199-0x19b) passed with StateFormatLevel 5.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands (with 0x199-0x19b) passed with StateFormatLevel 6.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands (with 0x199-0x19b) passed with StateFormatLevel 7.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands passed with StateFormatLevel 1.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands passed with StateFormatLevel 2.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands passed with StateFormatLevel 3.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands passed with StateFormatLevel 4.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands passed with StateFormatLevel 5.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands passed with StateFormatLevel 6.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and commands passed with StateFormatLevel 7.
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Test with custom profile and 'sha1' disabled algorithms passed
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
Tests with custom profile and --profile-remove-disabled option passed
==== Starting swtpm with interfaces socket+socket ====
Test with state written by libtpms v0.9 passed
TPM is listening on Unix socket.
Test of writing state at the level of libtpms v0.9 passed
TPM is listening on Unix socket.
TPM is listening on Unix socket.
Test of activation of sha256 bank when only sha256 & sha384 banks are available passed
PASS: test_tpm2_swtpm_setup_profile
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
{ "type": "swtpm_setup", "features": [ "tpm-1.2", "tpm-2.0", "cmdarg-keyfile-fd", "cmdarg-pwdfile-fd", "tpm12-not-need-root", "cmdarg-write-ek-cert-files", "cmdarg-create-config-files", "cmdarg-reconfigure-pcr-banks", "tpm2-rsa-keysize-2048", "tpm2-rsa-keysize-3072", "tpm2-rsa-keysize-4096", "cmdarg-profile", "cmdarg-profile-remove-disabled", "cmdarg-ek1keyalgo", "cmdarg-ek2keyalgo", "cmdarg-iakkeyalgo", "cmdarg-idevidkeyalgo" ], "profiles": [ "default-v2", "default-v1", "null", "custom" ], "version": "0.11.0" }
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
TPM is listening on Unix socket.
==== Starting swtpm with interfaces socket+socket ====
PASS: test_tpm2_swtpm_setup_profile_name
SWTPM_TEST_EXPENSIVE must be set to run this test.
SKIP: test_tpm2_libtpms_versions_profiles
=======================
All 57 tests passed
(22 tests were not run)
=======================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment