History | View | Annotate | Download (75.4 kB)
qemu-iotests: Filter out 'qemu-io> ' prompt
This removes "qemu-io> " prompt from qemu-io output in _filter_qemu_io,and updates all the output files with the following command:
cd tests/qemu-iotests && sed -i "s/qemu-io> //g" *.out
Signed-off-by: Fam Zheng <famz@redhat.com>...
qemu-io: correctly print non-integer values as decimals
qemu-io's cvtstr function sometimes will incorrectly omit thedecimal part of the number, and sometimes will incorrectly includeit. This patch fixes both. The former is more serious, and canbe seen in the patches to 027.out and 033.out....
qemu-iotests: Always filter cluster_size out in _make_test_img
Some image formats do have a cluster size, others don't, but there aretests that work with both sets of images and currently we get failuresbecause the qemu-img create output doesn't mention the cluster size for...
qemu-iotests: filter IMGFMT correctly in 019
Test 019 can be run with qcow2 and qed image formats. Replace thespecific image format value with "IMGFMT" so the golden output does nothardcode qcow2 or qed.
This patch also includes a typo fix for "occurrences"....
qemu-iotests: Use zero-based offsets for IO patterns
The io_pattern style functions have the following loop:
for i in `seq 1 $count`; do echo ... $(( start + i * step )) ... done
Offsets are 1-based so start=1024, step=512, count=4 yields:1536, 2048, 2560, 3072...
qemu-iotests: filter TEST_DIR correctly in 019
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-iotests: fix 019 golden output
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Signed-off-by: Christoph Hellwig <hch@lst.de>
qemu-iotests: test qemu-img convert with backing file for the output image
qemu-iotests: fix expected result for 019 after qemu-io change
The output of the alloc command in qemu-io has changed.
qemu-iotests: align test requests according to cluster size
Change the io_test and io_test2 functions to take the cluster size of the imageand the number of test requests to issue. Tests are changed to specify acluster size (usually 4k), but expected test results stay the same for now...