Am 15.12.2014 um 09:27 hat Denis V. Lunev geschrieben:
> Signed-off-by: Denis V. Lunev <[email protected]>
> Acked-by: Roman Kagan <[email protected]>
> Reviewed-by: Jeff Cody <[email protected]>
> CC: Kevin Wolf <[email protected]>
> CC: Stefan Hajnoczi <[email protected]>
> ---
> 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