diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2019-02-18 10:45:25 +0000 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2019-02-25 15:11:28 +0100 |
commit | 0482098608b83b559bc1802e4c612051b51f6c4c (patch) | |
tree | a6f6e405cfda95bc0c6f68514c460ab8a3677f11 /tests/qemu-iotests/178 | |
parent | 61914f8906fabbae26372a576d9dd988c5e22b75 (diff) |
iotests: add LUKS payload overhead to 178 qemu-img measure test
The previous patch includes the LUKS payload overhead into the qemu-img
measure calculation for qcow2. Update qemu-iotests 178 to exercise this
new code path.
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20190218104525.23674-3-stefanha@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/178')
-rwxr-xr-x | tests/qemu-iotests/178 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/qemu-iotests/178 b/tests/qemu-iotests/178 index 3f4b4a4564..927bf06e4d 100755 --- a/tests/qemu-iotests/178 +++ b/tests/qemu-iotests/178 @@ -142,6 +142,14 @@ for ofmt in human json; do # The backing file doesn't need to exist :) $QEMU_IMG measure --output=$ofmt -o backing_file=x \ -f "$fmt" -O "$IMGFMT" "$TEST_IMG" + + echo + echo "== $fmt input image and LUKS encryption ==" + echo + $QEMU_IMG measure --output=$ofmt \ + --object secret,id=sec0,data=base \ + -o encrypt.format=luks,encrypt.key-secret=sec0,encrypt.iter-time=10 \ + -f "$fmt" -O "$IMGFMT" "$TEST_IMG" fi echo |