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