| 1 | #!/bin/bash |
| 2 | |
| 3 | # Run the test_save_load_encrypted_state with swtpm_ioctl using the |
| 4 | # read/write interface rather than ioctl |
| 5 | export VTPM_NAME="vtpm-test2-migration-key" |
| 6 | cd "$(dirname "$0")" || exit 1 |
| 7 | |
| 8 | export SWTPM_IOCTL_BUFFERSIZE=100 |
| 9 | bash test_migration_key |
| 10 | ret=$? |
| 11 | [ $ret -ne 0 ] && exit $ret |
| 12 | |
| 13 | export SWTPM_IOCTL_BUFFERSIZE=4096 |
| 14 | bash test_migration_key |
| 15 | ret=$? |
| 16 | [ $ret -ne 0 ] && exit $ret |
| 17 | exit 0 |