Message ID | 1418632081-20667-5-git-send-email-den@openvz.org |
---|---|
State | New |
Headers | show |
Am 15.12.2014 um 09:27 hat Denis V. Lunev geschrieben: > Signed-off-by: Denis V. Lunev <den@openvz.org> > Acked-by: Roman Kagan <rkagan@parallels.com> > Reviewed-by: Jeff Cody <jcody@redhat.com> > CC: Kevin Wolf <kwolf@redhat.com> > CC: Stefan Hajnoczi <stefanha@redhat.com> > --- > tests/qemu-iotests/076 | 6 ++++++ > tests/qemu-iotests/076.out | 4 ++++ > tests/qemu-iotests/sample_images/parallels-simple.xml.bz2 | Bin 0 -> 374 bytes > 3 files changed, 10 insertions(+) > create mode 100644 tests/qemu-iotests/sample_images/parallels-simple.xml.bz2 > > diff --git a/tests/qemu-iotests/076 b/tests/qemu-iotests/076 > index 0139976..636fc58 100755 > --- a/tests/qemu-iotests/076 > +++ b/tests/qemu-iotests/076 > @@ -75,6 +75,12 @@ echo "== Read from a valid v2 image ==" > _use_sample_img parallels-v2.bz2 > { $QEMU_IO -c "read -P 0x11 0 64k" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | _filter_testdir > > +echo > +echo "== Read from a valid v2 image opened through xml ==" > +_use_sample_img parallels-v2.bz2 > +_use_sample_img parallels-simple.xml.bz2 _sample_img isn't made to be used twice in a single test case. It will forget to clean up the previously used decompressed images. Should be easy enough to modify it so that it saves a list of sample files instead of just the last one, but it needs to be done before we can do this. > +{ $QEMU_IO -c "read -P 0x11 0 64k" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | _filter_testdir > + > # success, all done > echo "*** done" > rm -f $seq.full Kevin
diff --git a/tests/qemu-iotests/076 b/tests/qemu-iotests/076 index 0139976..636fc58 100755 --- a/tests/qemu-iotests/076 +++ b/tests/qemu-iotests/076 @@ -75,6 +75,12 @@ echo "== Read from a valid v2 image ==" _use_sample_img parallels-v2.bz2 { $QEMU_IO -c "read -P 0x11 0 64k" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | _filter_testdir +echo +echo "== Read from a valid v2 image opened through xml ==" +_use_sample_img parallels-v2.bz2 +_use_sample_img parallels-simple.xml.bz2 +{ $QEMU_IO -c "read -P 0x11 0 64k" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | _filter_testdir + # success, all done echo "*** done" rm -f $seq.full diff --git a/tests/qemu-iotests/076.out b/tests/qemu-iotests/076.out index 32ade08..628d9bf 100644 --- a/tests/qemu-iotests/076.out +++ b/tests/qemu-iotests/076.out @@ -19,4 +19,8 @@ no file open, try 'help open' == Read from a valid v2 image == read 65536/65536 bytes at offset 0 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +== Read from a valid v2 image opened through xml == +read 65536/65536 bytes at offset 0 +64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) *** done