swtpm/tests/_test_migration_key_2
Stefan Berger 01aa2ed3af tests: Run tests also on socket interfaces
Refactor the tests so that they all run on socket interfaces as well.

Use socket ports in the range of 65400-65499 for TPM 1.2 tests.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2017-07-11 14:04:40 -04:00

18 lines
383 B
Bash
Executable File

#!/bin/bash
# Run the test_save_load_encrypted_state with swtpm_ioctl using the
# read/write interface rather than ioctl
export VTPM_NAME="vtpm-test2-migration-key"
cd "$(dirname "$0")"
export SWTPM_IOCTL_BUFFERSIZE=100
bash test_migration_key
ret=$?
[ $ret -ne 0 ] && exit $ret
export SWTPM_IOCTL_BUFFERSIZE=4096
bash test_migration_key
ret=$?
[ $ret -ne 0 ] && exit $ret
exit 0