From: "Denis V. Lunev" <den@openvz.org>
Cc: Kevin Wolf <kwolf@redhat.com>, "Denis V. Lunev" <den@openvz.org>,
Jeff Cody <jcody@redhat.com>,
qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>
Subject: [Qemu-devel] [PATCH 16/16] iotests: testcase parallels image with snapshots
Date: Mon, 15 Dec 2014 11:28:01 +0300 [thread overview]
Message-ID: <1418632081-20667-17-git-send-email-den@openvz.org> (raw)
In-Reply-To: <1418632081-20667-1-git-send-email-den@openvz.org>
Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: Jeff Cody <jcody@redhat.com>
CC: Kevin Wolf <kwolf@redhat.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
---
tests/qemu-iotests/076 | 7 +++++++
tests/qemu-iotests/076.out | 4 ++++
.../qemu-iotests/sample_images/parallels-snapshot.xml.bz2 | Bin 0 -> 458 bytes
tests/qemu-iotests/sample_images/parallels-v2-empty.bz2 | Bin 0 -> 93 bytes
4 files changed, 11 insertions(+)
create mode 100644 tests/qemu-iotests/sample_images/parallels-snapshot.xml.bz2
create mode 100644 tests/qemu-iotests/sample_images/parallels-v2-empty.bz2
diff --git a/tests/qemu-iotests/076 b/tests/qemu-iotests/076
index 04b359b..6077c5b 100755
--- a/tests/qemu-iotests/076
+++ b/tests/qemu-iotests/076
@@ -108,6 +108,13 @@ dd if=/dev/zero of="$TEST_IMG" bs=1M count=0 seek=1 conv=notrunc &>/dev/null
}
}"; } 2>&1 | _filter_qemu_io | _filter_testdir
+echo
+echo "== Read from a valid parallels bundle with snapshots =="
+_use_sample_img parallels-v2.bz2
+_use_sample_img parallels-v2-empty.bz2
+_use_sample_img parallels-snapshot.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 0cce00c..f4c95ad 100644
--- a/tests/qemu-iotests/076.out
+++ b/tests/qemu-iotests/076.out
@@ -31,4 +31,8 @@ read 65536/65536 bytes at offset 0
== Read from an image with a backing 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 parallels bundle with snapshots ==
+read 65536/65536 bytes at offset 0
+64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
*** done
diff --git a/tests/qemu-iotests/sample_images/parallels-snapshot.xml.bz2 b/tests/qemu-iotests/sample_images/parallels-snapshot.xml.bz2
new file mode 100644
index 0000000000000000000000000000000000000000..2cee3ad35e1096eddd08a52fbb61ed92d8f84e33
GIT binary patch
literal 458
zcmV;*0X6<YT4*^jL0KkKSs#6@iU0uU-+)w5Py_$xpWsdazwh08KmppUb4`Sj2_w@?
zp!GjU$sV8?7>yY;4?!uC5=W!~pwmqNdVmIiG#gT<seuDc8UO$Q000W2lTAmdr>W^Q
z1JVEh4H_9e5;5=-G8)1JrvQZjB$*s+y$l6XVp3s-T2`gi^h(f5gh_-+f3QV8WGgLB
zS!qx%Ua8~MBvOuN#w0f!5gh`NFy&BuVj_7U!;s}g>ZKJ*y+uJ{OtMcE%%Un6Au^o0
z1OKoG-eSH5vlyz~Jqul0r<_S9#YQ-zZBY5Z;4_Ep<eC@O8Bsuu6D6!XD_NkfY%Yl8
z=D}qf@**rb5=cg&`5@$!IeG|&F(G@1Vo3^RDVa>AnGvC4PH4*oZpiJ91ZP^(zEde2
zjEo|;3(6~xSeWsPqV<L*>{OwJ#K6Y9S6&|joZSN<!-tPP&%)9Hs=$>j+g@fQy_HeC
z$c2TCCi>NiZcvp7XIZGI%*1GAJPMSx^RUh}>WWRJ>>8INS}S`kF}D*)WE`e4Qbd@{
z(Y<?3l4LOxzuGO5HB0KDWeN(&j2TIZ?>=_(*jN;VlJd~agPp`($rRy2Kz;VID8>iI
AmH+?%
literal 0
HcmV?d00001
diff --git a/tests/qemu-iotests/sample_images/parallels-v2-empty.bz2 b/tests/qemu-iotests/sample_images/parallels-v2-empty.bz2
new file mode 100644
index 0000000000000000000000000000000000000000..47ce6984d64bf8e740e5cbbebff7f619471cb7cc
GIT binary patch
literal 93
zcmV-j0HXgwT4*^jL0KkKS&I=ybpQepcf`>^Kmb4h0{{qsDqz+?KmY&;00<xeK$3*@
z00HTgC^Tr$WCo1YkN^m+sMgBKBmka>=Kan6jQ)3diJ9;~0r<O;DZ+$=Sc)^Kk}4$Q
literal 0
HcmV?d00001
--
1.9.1
prev parent reply other threads:[~2014-12-15 9:10 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-15 8:27 [Qemu-devel] [PATCH v4 0/16] parallels format support improvements Denis V. Lunev
2014-12-15 8:27 ` [Qemu-devel] [PATCH 01/16] configure: add dependency from libxml2 Denis V. Lunev
2014-12-15 8:27 ` [Qemu-devel] [PATCH 02/16] block/parallels: allow to specify DiskDescriptor.xml instead of image file Denis V. Lunev
2014-12-15 10:45 ` Kevin Wolf
2014-12-15 11:51 ` Denis V. Lunev
2014-12-15 8:27 ` [Qemu-devel] [PATCH 03/16] iotests, parallels: quote TEST_IMG in 076 test to be path-safe Denis V. Lunev
2014-12-15 8:27 ` [Qemu-devel] [PATCH 04/16] iotests: simple parallels XML disk descriptor file test added Denis V. Lunev
2014-12-15 10:49 ` Kevin Wolf
2014-12-15 8:27 ` [Qemu-devel] [PATCH 05/16] block/parallels: support padded Parallels images Denis V. Lunev
2014-12-15 11:05 ` Kevin Wolf
2014-12-15 11:33 ` Denis V. Lunev
2014-12-15 8:27 ` [Qemu-devel] [PATCH 06/16] iotests: padded parallels image test Denis V. Lunev
2014-12-15 8:27 ` [Qemu-devel] [PATCH 07/16] parallels: change copyright information in the image header Denis V. Lunev
2014-12-15 11:06 ` Kevin Wolf
2014-12-15 11:52 ` Denis V. Lunev
2014-12-16 16:29 ` Denis V. Lunev
2014-12-15 8:27 ` [Qemu-devel] [PATCH 08/16] block/parallels: switch to bdrv_read Denis V. Lunev
2014-12-15 8:27 ` [Qemu-devel] [PATCH 09/16] block/parallels: read up to cluster end in one go Denis V. Lunev
2014-12-15 8:27 ` [Qemu-devel] [PATCH 10/16] block/parallels: add get_block_status Denis V. Lunev
2014-12-15 11:52 ` Denis V. Lunev
2014-12-15 12:18 ` Kevin Wolf
2014-12-15 8:27 ` [Qemu-devel] [PATCH 11/16] block/parallels: add support for backing files Denis V. Lunev
2014-12-15 12:30 ` Kevin Wolf
2014-12-15 13:08 ` Roman Kagan
2014-12-15 8:27 ` [Qemu-devel] [PATCH 12/16] iotests: testcase for backing in parallels format Denis V. Lunev
2014-12-15 8:27 ` [Qemu-devel] [PATCH 13/16] block/parallels: read disk size from XML if DiskDescriptor.xml is passed Denis V. Lunev
2014-12-15 12:38 ` Kevin Wolf
2014-12-15 8:27 ` [Qemu-devel] [PATCH 14/16] block/parallels: introduce ParallelsSnapshot data structure Denis V. Lunev
2014-12-15 12:45 ` Kevin Wolf
2014-12-15 13:32 ` Denis V. Lunev
2014-12-17 16:15 ` [Qemu-devel] [RFC PATCH 1/1] block/parallels: new concept for DiskDescriptor.xml Denis V. Lunev
2014-12-15 8:28 ` [Qemu-devel] [PATCH 15/16] block/parallels: support read-only parallels snapshots Denis V. Lunev
2014-12-15 8:28 ` Denis V. Lunev [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1418632081-20667-17-git-send-email-den@openvz.org \
--to=den@openvz.org \
--cc=jcody@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).