From: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Jeff Cody <jcody@redhat.com>,
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Subject: [Qemu-devel] [PATCH 0/3] qemu-iotests: add image streaming tests
Date: Tue, 28 Feb 2012 09:06:02 +0000 [thread overview]
Message-ID: <1330419965-11493-1-git-send-email-stefanha@linux.vnet.ibm.com> (raw)
This series adds the image streaming test suite to qemu-iotests. It covers the
'block_stream', 'block_job_cancel', 'block_job_set_speed', and
'query-block-jobs' QMP interfaces.
Since these tests involve QMP it is no longer convenient to write them in bash.
Instead these tests are written in Python and make use of the existing
QMP/qmp.py module. In order to achieve this, it adds an iotests Python module
that handles interaction with the qemu-iotests framework.
If you want to review using a top-down approach, I suggest reading this series
backwards, starting from Patch 3 which introduces 030, the image streaming test
suite.
Or if you like the bottom-up approach:
* Patch 1 exports TEST_DIR from qemu-iotests so test executables can learn the
temporary directory path.
* Patch 2 adds the iotests.py module, which brings together qemu-iotests,
unittest, and QEMU in a way that is easy to consume in Python.
* Patch 3 adds 030, the image streaming test suite.
Tests pass successfully with both qcow2 and qed on qemu.git/master.
Stefan Hajnoczi (3):
qemu-iotests: export TEST_DIR for non-bash tests
qemu-iotests: add iotests Python module
test: add image streaming tests
tests/qemu-iotests/030 | 151 ++++++++++++++++++++++++++++++++++
tests/qemu-iotests/030.out | 5 +
tests/qemu-iotests/common.config | 2 +
tests/qemu-iotests/group | 1 +
tests/qemu-iotests/iotests.py | 165 ++++++++++++++++++++++++++++++++++++++
5 files changed, 324 insertions(+), 0 deletions(-)
create mode 100755 tests/qemu-iotests/030
create mode 100644 tests/qemu-iotests/030.out
create mode 100644 tests/qemu-iotests/iotests.py
--
1.7.9
next reply other threads:[~2012-02-28 9:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-28 9:06 Stefan Hajnoczi [this message]
2012-02-28 9:06 ` [Qemu-devel] [PATCH 1/3] qemu-iotests: export TEST_DIR for non-bash tests Stefan Hajnoczi
2012-02-28 9:06 ` [Qemu-devel] [PATCH 2/3] qemu-iotests: add iotests Python module Stefan Hajnoczi
2012-02-28 9:06 ` [Qemu-devel] [PATCH 3/3] test: add image streaming tests Stefan Hajnoczi
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=1330419965-11493-1-git-send-email-stefanha@linux.vnet.ibm.com \
--to=stefanha@linux.vnet.ibm.com \
--cc=jcody@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).