mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-02-05 14:12:54 +00:00
Implement a command for setting and querying the buffer size the TPM implementation (libtpms) is using. The setting of the buffersize allows to reduce the size of the buffer to a size that the interface can support so that these two sizes match and the TPM will not produce larger responses than what the interface can support. Extend swtpm_ioctl with an option to set the buffersize. Adapt the existing tests to reflect the newly supported command. Implement a new test for getting/setting of the buffer size. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
83 lines
1.5 KiB
Makefile
83 lines
1.5 KiB
Makefile
#
|
|
# tests/Makefile.am
|
|
#
|
|
# For the license, see the LICENSE file in the root directory.
|
|
#
|
|
|
|
check_PROGRAMS =
|
|
|
|
TESTS = \
|
|
test_vtpm_proxy
|
|
|
|
if WITH_CHARDEV
|
|
TESTS += \
|
|
test_ctrlchannel2 \
|
|
test_ctrlchannel4
|
|
endif
|
|
|
|
TESTS += \
|
|
test_ctrlchannel \
|
|
test_ctrlchannel3 \
|
|
test_encrypted_state \
|
|
test_getcap \
|
|
test_hashing \
|
|
test_hashing2 \
|
|
test_init \
|
|
test_locality \
|
|
test_migration_key \
|
|
test_resume_volatile \
|
|
test_save_load_encrypted_state \
|
|
test_save_load_state \
|
|
test_setbuffersize \
|
|
test_volatilestate \
|
|
test_swtpm_bios \
|
|
test_wrongorder
|
|
|
|
if WITH_SWTPM_SETUP
|
|
TESTS += \
|
|
test_commandline \
|
|
test_parameters
|
|
endif
|
|
|
|
if WITH_GNUTLS
|
|
TESTS += \
|
|
test_swtpm_cert
|
|
if WITH_SWTPM_SETUP
|
|
TESTS += \
|
|
test_swtpm_setup_create_cert
|
|
endif
|
|
endif
|
|
|
|
EXTRA_DIST=$(TESTS) \
|
|
swtpm_setup.conf \
|
|
create_certs.sh \
|
|
data/issuercert.pem \
|
|
data/pubek.pem \
|
|
data/signkey.pem \
|
|
data/keyfile.txt \
|
|
data/pwdfile.txt \
|
|
data/migkey1/volatilestate.bin \
|
|
data/tpmstate1/tpm-00.permall \
|
|
data/tpmstate1/tpm-00.volatilestate \
|
|
data/tpmstate1/README \
|
|
data/tpmstate2/tpm-00.permall \
|
|
data/tpmstate2/tpm-00.volatilestate \
|
|
data/tpmstate2/pwdfile.txt \
|
|
data/tpmstate2/README \
|
|
test_common \
|
|
test_cuse \
|
|
test_swtpm_cert
|
|
|
|
check-display:
|
|
@if test -n "$$SWTPM_EXE"; then \
|
|
echo "*** Using SWTPM_EXE=$$SWTPM_EXE"; \
|
|
fi
|
|
@if test -n "$$SWTPM_BIOS"; then \
|
|
echo "*** Using SWTPM_BIOS=$$SWTPM_BIOS"; \
|
|
fi
|
|
@if test -n "$$SWTPM_IOCTL"; then \
|
|
echo "*** Using SWTPM_IOCTL=$$SWTPM_IOCTL"; \
|
|
fi
|
|
|
|
check: check-am check-display
|