| 1 | #!/bin/bashscip-shell filesystem . . `/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 "$(dirnamescip-shell system . . dirname. "$0")" || exit 1 |
| 7 | |
| 8 | export SWTPM_IOCTL_BUFFERSIZE=100 |
| 9 | bashscip-shell system . . bash. test_migration_key |
| 10 | ret=$? |
| 11 | [scip-shell system . . `[`. $ret -ne 0 ] && exit $ret |
| 12 | |
| 13 | export SWTPM_IOCTL_BUFFERSIZE=4096 |
| 14 | bashscip-shell system . . bash. test_migration_key |
| 15 | ret=$? |
| 16 | [scip-shell system . . `[`. $ret -ne 0 ] && exit $ret |
| 17 | exit 0 |