qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] qemu-iotests: add image streaming tests
@ 2012-02-28  9:06 Stefan Hajnoczi
  2012-02-28  9:06 ` [Qemu-devel] [PATCH 1/3] qemu-iotests: export TEST_DIR for non-bash tests Stefan Hajnoczi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2012-02-28  9:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, Jeff Cody, Stefan Hajnoczi

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-28  9:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-28  9:06 [Qemu-devel] [PATCH 0/3] qemu-iotests: add image streaming tests Stefan Hajnoczi
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

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).