qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] Add tests for block driver format probes
@ 2016-07-11 19:50 Colin Lord
  2016-07-11 19:50 ` [Qemu-devel] [PATCH 1/3] iotests: Add dmg format option Colin Lord
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Colin Lord @ 2016-07-11 19:50 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, qemu-block, mreitz, Colin Lord

This series adds a couple simple tests for the block driver format
probes just to make sure that they're getting called correctly and
returning the expected values. This should help verify the correctness
of the other series I've been working on. The tests aren't super
complicated but are a good sanity check that things are still working as
they should be.

The commit message for the third patch pretty much explains how it
works, but basically the tests just boot up a vm with a sample image
file, check what format qemu detected the image was, and make sure that
the detected format is correct. Some of the sample images already exist
in the repository, but I also had to find/make some of my own. Being
binaries, I'm not sure how these should get checked in, so for now I'm
not including them. However, they can be accessed at my github if
desired:
https://github.com/dramborleg/qemu/tree/probe-iotests/tests/qemu-iotests/sample_images

Colin Lord (3):
  iotests: Add dmg format option
  iotests: Add python functions for using sample images
  iotests: Test format probes

 tests/qemu-iotests/158        | 53 +++++++++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/158.out    |  5 ++++
 tests/qemu-iotests/common     |  7 ++++++
 tests/qemu-iotests/group      |  1 +
 tests/qemu-iotests/iotests.py | 20 ++++++++++++++++
 5 files changed, 86 insertions(+)
 create mode 100644 tests/qemu-iotests/158
 create mode 100644 tests/qemu-iotests/158.out

-- 
2.5.5

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

end of thread, other threads:[~2016-07-13 13:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-11 19:50 [Qemu-devel] [PATCH 0/3] Add tests for block driver format probes Colin Lord
2016-07-11 19:50 ` [Qemu-devel] [PATCH 1/3] iotests: Add dmg format option Colin Lord
2016-07-12 20:01   ` [Qemu-devel] [Qemu-block] " John Snow
2016-07-11 19:50 ` [Qemu-devel] [PATCH 2/3] iotests: Add python functions for using sample images Colin Lord
2016-07-11 19:50 ` [Qemu-devel] [PATCH 3/3] iotests: Test format probes Colin Lord
2016-07-12 21:17   ` [Qemu-devel] [Qemu-block] " John Snow
2016-07-13 13:33     ` Colin Lord

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