diff options
author | Jeff Cody <jcody@redhat.com> | 2014-02-12 16:30:53 -0500 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-02-14 18:05:39 +0100 |
commit | 18968ca1a33458f3978394499d2b70e4c32c5ad6 (patch) | |
tree | 3dcca1eb37ef5ca9f52794dae3960533800d1e7a /tests/qemu-iotests/070 | |
parent | e001807847ba40d29450031377b84acd10066b61 (diff) |
block: qemu-iotests - add vhdx log replay tests for qemu-img
VHDX logs can now be replayed via 'qemu-img check -r all'. Add
tests to verify that the log replay is successful when using qemu-img.
Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/070')
-rwxr-xr-x | tests/qemu-iotests/070 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/qemu-iotests/070 b/tests/qemu-iotests/070 index f84d2cb4ed..ce71fa4a22 100755 --- a/tests/qemu-iotests/070 +++ b/tests/qemu-iotests/070 @@ -62,6 +62,16 @@ $QEMU_IO -r -c "read -pP 0xa5 0 18M" "$TEST_IMG" 2>&1 | _filter_testdir \ echo "=== Verify open image replays log ===" $QEMU_IO -c "read -pP 0xa5 0 18M" "$TEST_IMG" | _filter_qemu_io +# extract fresh sample image again +_use_sample_img iotest-dirtylog-10G-4M.vhdx.bz2 + +echo "=== Verify qemu-img check -r all replays log ===" +$QEMU_IMG check -r all "$TEST_IMG" 2>&1 | _filter_testdir | _filter_qemu + +echo "=== Verify open image read-only succeeds after log replay ===" +$QEMU_IO -r -c "read -pP 0xa5 0 18M" "$TEST_IMG" 2>&1 | _filter_testdir \ + | _filter_qemu_io + # success, all done echo "*** done" rm -f $seq.full |