Statistics
| Branch: | Revision:

root / tests @ 82b11662

# Date Author Comment
0e8a8c8f 07/17/2012 05:48 pm Markus Armbruster

qtest: Add hard disk geometry test

So far covers only IDE and tests only CMOS contents.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

23797df3 07/09/2012 08:35 pm Anthony Liguori

Merge remote-tracking branch 'mjt/mjt-iov2' into staging

  • mjt/mjt-iov2:
    rewrite iov_send_recv() and move it to iov.c
    cleanup qemu_co_sendv(), qemu_co_recvv() and friends
    export iov_send_recv() and use it in iov_send() and iov_recv()
    rename qemu_sendv to iov_send, change proto and move declarations to iov.h...
bb494a50 07/09/2012 06:21 pm Markus Armbruster

qtest: Tidy up temporary files properly

Each test litters /tmp with several files: a pid file and two
sockets. Tidy up.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

59240c34 07/09/2012 04:53 pm Pavel Hrdina

fdc_test: update media_change test

After rewrite DSKCHG bit handling the test has to be updated. Now
is needed to seek to different track to clear DSKCHG bit.

Signed-off-by: Pavel Hrdina <>
Signed-off-by: Kevin Wolf <>

b3ce604e 07/09/2012 04:53 pm Pavel Hrdina

fdc_test: introduce test_sense_interrupt

Calling sense interrupt status while there is no interrupt should
return invalid command (0x80).

Read command should always returns in st0 seek_end bit set to 1.

Signed-off-by: Pavel Hrdina <>
Signed-off-by: Kevin Wolf <>

039380a8 06/28/2012 12:26 am Anthony Liguori

qtest: fix infinite loop when QEMU aborts abruptly

From Markus:

Makes "make check" hang:

QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 gtester -k --verbose -m=quick tests/crash-test tests/rtc-test
TEST: tests/crash-test... (pid=972)
qemu-system-x86_64: Device needs media, but drive is empty...
b34d2595 06/22/2012 11:41 am Andreas Färber

libqtest: Fix socket_accept() to pass address_len

accept() expects address_len to point to the length of the sockaddr on
input. Initialize it accordingly.

Resolves an assertion due to EFAULT on illumos.

Signed-off-by: Andreas Färber <>...

3359847e 06/21/2012 09:45 pm Blue Swirl

qtest: add a fuzz test to fdc-test

Add a simple register fuzzing test to floppy controller tests.

Signed-off-by: Blue Swirl <>

1b2eff62 06/15/2012 03:03 pm Stefan Hajnoczi

qemu-iotests: add qcow2.py set-feature-bit command

This new command sets feature bits in the image file header:

qcow2.py set-feature-bit incompatible|compatible|autoclear &lt;bit&gt;

The bit number must be in the range [0, 64).

Signed-off-by: Stefan Hajnoczi <>...

d551cd50 06/15/2012 03:03 pm Stefan Hajnoczi

qemu-iotests: add 036 autoclear feature bit test

This new test validates the autoclear feature bit behavior. When QEMU
opens a qcow2v3 image file with an unknown autoclear feature bit the bit
should be cleared in the image file header.

Signed-off-by: Stefan Hajnoczi <>...

ab68cdfa 06/15/2012 03:03 pm Paolo Bonzini

qemu-iotests: fill streaming test image with data

The TestStreamStop test case is racy; if the job completes before we can
cancel it, it fails. If we remove the sleep the job will be canceled
before it has even started, and the test succeeds but it is also not...

0fd05e8d 06/15/2012 03:03 pm Paolo Bonzini

qemu-iotests: start vms in qtest mode

This way, they will not execute any VM code at all. However, right now
the cancellation test is "relying" on being slowed down by TCG executing
BIOS code. So, change the timeouts.

Signed-off-by: Paolo Bonzini <>...

bce283cc 06/15/2012 03:03 pm Kevin Wolf

qemu-iotests: Some backing file COW tests

Looks like we're still missing these very basic tests for backing file
handling.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Paolo Bonzini <>

0446919d 06/15/2012 03:03 pm Kevin Wolf

qemu-iotests: COW with many AIO requests on the same cluster

This one is a bit more interesting. The COW operation isn't performed
completely synchronously, and therefore dependencies must be handled
correctly when multiple requests write to the same unallocated cluster....

8b9ef60d 06/15/2012 03:03 pm Pavel Hrdina

fdc-test: introduced qtest read_without_media

If you try to read from a floppy drive without a media, you should get
an abnormal termination error.

Signed-off-by: Pavel Hrdina <>
Signed-off-by: Kevin Wolf <>

25e5e4c7 06/11/2012 10:12 pm Michael Tokarev

rewrite iov_send_recv() and move it to iov.c

Make it much more understandable, add a missing
iov_cnt argument (number of iovs in the iov), and
add comments to it.

The new implementation has been extensively tested
by splitting a large buffer into many small...

df332191 06/11/2012 08:15 pm Anthony Liguori

Merge remote-tracking branch 'afaerber-or/qom-next-1' into staging

  • afaerber-or/qom-next-1:
    target-i386: Use uint32 visitor for [x]level properties
    qdev: Remove PropertyInfo range checking
    qdev: Switch property accessors to fixed-width visitor interfaces...
c305e32f 06/09/2012 01:45 pm Max Filippov

target-xtensa: add MMU pagewalking tests

Signed-off-by: Max Filippov <>
Signed-off-by: Blue Swirl <>

2d496105 06/08/2012 05:11 pm Michael Roth

qapi: Unit tests for visitor-based serialization

Currently we test our visitors individually, and seperately for input
vs. output. This is useful for validating internal representations
against the native C types and vice-versa, and other visitor-specific...

173bbb75 06/08/2012 05:11 pm Michael Roth

qapi: String visitor, use %f representation for floats

Currently string-output-visitor formats floats as %g, which is nice in
that trailing 0's are automatically truncated, but otherwise this causes
some issues:

- it uses 6 significant figures instead of 6 decimal places, which...
0d30b0a2 06/08/2012 05:11 pm Michael Roth

qapi: Add String visitor coverage to serialization unit tests

Signed-off-by: Michael Roth <>
Signed-off-by: Andreas Färber <>

2278a69e 06/07/2012 08:09 pm Michael Tokarev

rewrite iov_* functions

This changes implementations of all iov_*
functions, completing the previous step.

All iov_* functions now ensure that this offset
argument is within the iovec (using assertion),
but lets to specify `bytes' value larger than
actual length of the iovec - in this case they...

4115852b 06/07/2012 08:17 am Paolo Bonzini

build: do not sprinkle around GENERATED_HEADERS dependencies

Keeping GENERATED_HEADERS dependencies up-to-date everywhere is complex.
We can simply make the Makefile depend on them, and they will be built
before all other targets.

Signed-off-by: Paolo Bonzini <>

7cd33161 05/25/2012 07:23 pm Pavel Hrdina

fdc-test: introduced qtest no_media_on_start and cmos qtest for floppy

As default a guest has always one floppy drive so 0x10 byte in CMOS
has to have 0x40 value. Higher 4 bits means that the first floppy drive
is 1.44 Mb 3"5 drive and lower 4 bits means the second drive is not present....

b84762e2 05/25/2012 07:13 pm Stefan Hajnoczi

qemu-iotests: mark 035 qcow2-only

The 035 parallel aio write test relies on knowledge of qcow2 metadata
layout to stress parallel L2 table accesses. This only works for qcow2
unless we add additional calculations for qed or other formats.

Mark this test as qcow2-only....

fba0c40b 05/21/2012 11:31 pm Stefan Weil

tests: Add rtc-test (fix test regression)

Commit 93e9eb6808c886f5f1c903b7ced1eed65de2ba39 added fdc-test,
but accidentally removed rtc-test because check-qtest-i386-y was
not enhanced but set twice.

This patch adds rtc-test again (and sorts both tests alphabetically)....

fd4567d9 05/19/2012 06:53 pm Stefan Weil

tests: Fix linker failure for fdc-test

When QEMU was built with the simple trace backend, linking failed:

LINK  tests/fdc-test
oslib-posix.o: In function `trace_qemu_memalign':
qemu/bin/debug/x86/./trace.h:31: undefined reference to `trace3'
oslib-posix.o: In function `trace_qemu_vmalloc':...
82ac96a7 05/14/2012 06:06 pm Anthony Liguori

Merge remote-tracking branch 'sweil/for-1.1' into staging

  • sweil/for-1.1:
    qemu-doc: Use QEMU instead of qemu for product name
    qemu-doc: Fix executable name in examples
    qemu-doc: Add missing parameter in description of -D option
    configure: Use QEMU instead of Qemu...
a31f0531 05/14/2012 08:27 am Jim Meyering

fix some common typos

These were identified using: http://github.com/lyda/misspell-check
and run like this to create a bourne shell script using GNU sed's
-i option:

git ls-files|grep -vF .bin | misspellings -f - |grep -v '^ERROR:' |perl \
-pe 's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'...

efcc7a23 05/10/2012 12:01 pm Paolo Bonzini

stream: do not copy unallocated sectors from the base

Unallocated sectors should really never be accessed by the guest,
so there's no need to copy them during the streaming process.
If they are read by the guest during streaming, guest-initiated
copy-on-read will copy them (we're in the base == NULL case, which...

6c806637 05/10/2012 12:01 pm Kevin Wolf

tests/Makefile: Add missing $(EXESUF)

Signed-off-by: Kevin Wolf <>

6e343609 05/10/2012 12:01 pm Paolo Bonzini

stream: add testcase for partial streaming

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

863a5d04 05/10/2012 11:32 am Paolo Bonzini

stream: fix sectors not allocated test

The test on sectors not allocated can fail if the L1/L2 tables are
not on disk yet. Allow tests to shutdown the VM early.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

93e9eb68 05/10/2012 11:32 am Kevin Wolf

qtest: Add floppy test

Let's start with testing media change.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Paolo Bonzini <>

8655d2de 05/10/2012 11:32 am Paolo Bonzini

qemu-io: correctly print non-integer values as decimals

qemu-io's cvtstr function sometimes will incorrectly omit the
decimal part of the number, and sometimes will incorrectly include
it. This patch fixes both. The former is more serious, and can
be seen in the patches to 027.out and 033.out....

c68b039a 05/10/2012 11:32 am Paolo Bonzini

qemu-iotests: strip spaces from qemu-img/qemu-io/qemu command lines

A trailing space is left when qemu-img has no arguments, for example if
-nocache is not used. This becomes an empty argument after split()
and causes qemu-io to fail.

Signed-off-by: Paolo Bonzini <>...

a3ca163c 05/10/2012 11:32 am Kevin Wolf

qtest: Add function to send QMP commands

Signed-off-by: Kevin Wolf <>
Reviewed-by: Paolo Bonzini <>

a5126c75 05/02/2012 07:39 pm Dong Xu Wang

qemu-iotests: ignore fragmentation information for qed

We added image fragmentation statistics functions to qemu-img several days
ago, those patches will cause "./check -qed" failed. This patch will ignore
fragmentation statistics information of qed format, and then "./check -qed"...

dad5e576 05/02/2012 07:39 pm Kevin Wolf

qemu-iotests: Many parallel allocating I/O requests

This test case manages to let qcow2 abort because its cache is used up
and it can't find free cache entries for new requests any more.

Signed-off-by: Kevin Wolf <>

e425306a 04/27/2012 05:44 pm Stefan Hajnoczi

qemu-iotests: add block-stream speed value test case

Add tests to exercise the InvalidParameter 'speed' error code path, as
well as the regular success case for setting the speed. The
block-stream 'speed' parameter allows the speed limit of the job to be...

ea7697fc 04/26/2012 09:14 pm Stefan Weil

qtest: Fix more format errors with qtest_sendf

After adding GCC_FMT_ATTR to qtest_sendf, more format errors are reported
by the compiler. These are fixed here.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

092dfc77 04/23/2012 11:02 pm Anthony Liguori

Merge remote-tracking branch 'origin/master' into staging

  • origin/master:
    qtest: fix memread and memwrite on 32 bit hosts
64546784 04/23/2012 10:29 pm Anthony Liguori

Merge remote-tracking branch 'qmp/queue/qmp' into staging

  • qmp/queue/qmp:
    qapi: g_hash_table_find() instead of GHashTableIter.
    qmp: make block job command naming consistent
ce6bf17a 04/23/2012 10:28 pm Blue Swirl

qtest: fix memread and memwrite on 32 bit hosts

Use PRIx64 to print 64 bit values to avoid truncation
on 32 bit hosts.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Blue Swirl <>

1f8bcac0 04/23/2012 10:27 pm Anthony Liguori

Merge remote-tracking branch 'kwolf/for-anthony' into staging

  • kwolf/for-anthony: (38 commits)
    qemu-iotests: Fix test 031 for qcow2 v3 support
    qemu-iotests: Add -o and make v3 the default for qcow2
    qcow2: Zero write support
    qemu-iotests: Test backing file COW with zero clusters...
54699633 04/23/2012 07:49 pm Anthony Liguori

Merge remote-tracking branch 'origin/master' into staging

  • origin/master: (27 commits)
    target-arm: Move reset handling to arm_cpu_reset
    target-arm: Drop cpu_reset_model_id()
    target-arm: Move cache ID register setup to cpu specific init fns
    target-arm: Move OMAP cp15_i_{max,min} reset to cpu_state_reset...
db58f9c0 04/23/2012 07:02 pm Stefan Hajnoczi

qmp: make block job command naming consistent

The block streaming and job commands used '_' instead of '-' for reasons
of compatibility with libvirt, which already included support for the
'_' naming. However, the semantics of block_job_cancel have changed and...

536a98d4 04/21/2012 04:24 pm Max Filippov

target-xtensa: add tests for LOOPNEZ and LOOPGTZ

Signed-off-by: Max Filippov <>
Signed-off-by: Blue Swirl <>

f91837a7 04/21/2012 10:10 am Blue Swirl

qtest: add m48t59 tests for Sparc

Add simple m48t59 qtests, enable test only for Sparc32
and Sparc64. On PPC, the device is behind PCI bus.

Signed-off-by: Blue Swirl <>

ee3a315e 04/20/2012 04:57 pm Paolo Bonzini

qemu-iotests: add a simple test for write_zeroes

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

ab3a32ad 04/20/2012 04:57 pm Kevin Wolf

qemu-iotests: Test backing file COW with zero clusters

Signed-off-by: Kevin Wolf <>

89004368 04/20/2012 04:57 pm Kevin Wolf

qemu-iotests: Add -o and make v3 the default for qcow2

This adds an -o option to qemu-iotests, which is an option string that
is passed through to qemu-img create -o... This allows testing different
subformat with a command like './check -qcow2 -o compat=0.10'....

1042ec94 04/20/2012 04:57 pm Kevin Wolf

qemu-iotests: Fix test 031 for qcow2 v3 support

qcow2.py must be updated to work with version 3 images at all, the
output has changed since the feature table extension has been added, and
version 2 and version 3 images can't possibly have the same test output....

fecccc44 04/20/2012 03:23 pm David Gibson

Add .gitignore for tests/

The new autotests in tests/ generate a number of files, both
executable and source, which are not caught by the existing .gitignore
files. This patch adds a new .gitignore in tests/ which covers these.

[Changed 'rtc-test' to '*-test' so future tests do not need to be added...

29926112 04/20/2012 01:58 pm Andreas Färber

iotests: Resolve test failures caused by hostname

`hostname -s` may output an errror:
hostname: Name or service not known
This causes all tests to fail for `make check-block`.

Suppress such error messages, letting the tests succeed.

Signed-off-by: Andreas Färber <>...

85215d41 04/19/2012 09:14 pm Blue Swirl

qtest: add register fuzzing to RTC test

Reviewed-by: Anthony Liguori <>
Signed-off-by: Blue Swirl <>

7299550b 04/19/2012 04:48 pm Kevin Wolf

qemu-iotests: Always filter cluster_size out in _make_test_img

Some image formats do have a cluster size, others don't, but there are
tests that work with both sets of images and currently we get failures
because the qemu-img create output doesn't mention the cluster size for...

aafcdcc9 04/19/2012 04:48 pm Kevin Wolf

qemu-iotests: Test bdrv_close while AIO is in flight

If the BlockDriverState is closed/freed without draining the AIO
requests first, the request coroutines may work on invalid data and file
descriptors or have some dangling pointers that cause segfaults....

8ff9ae00 04/19/2012 04:48 pm Dong Xu Wang

iotests: fix error in 005

According comment, we should not read again, we will write.

Signed-off-by: Dong Xu Wang <>
Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Kevin Wolf <>

2ad59607 04/14/2012 07:19 pm Paolo Bonzini

tests: remove .SECONDARY special target

The special target should not be needed anymore, and caused (perhaps
due to a Make bug) a failure with "make -j2". In any case, the
main makefile is a better place for such special targets rather
than an included makefile....

ec9fe93e 04/14/2012 06:25 pm Max Filippov

target-xtensa: add tests for LBEG/LEND invalidation

Signed-off-by: Max Filippov <>
Signed-off-by: Blue Swirl <>

ad4ccc93 04/14/2012 06:25 pm Max Filippov

target-xtensa: add test for IBREAK invalidation

Signed-off-by: Max Filippov <>
Signed-off-by: Blue Swirl <>

7d6b9f0a 04/14/2012 02:48 am Max Filippov

target-xtensa: improve unit tests debugging

- add testcase announcement;
- add global symbols for individual tests;
- add host-debug-* makefile target.

Signed-off-by: Max Filippov <>

28d3d165 04/05/2012 04:10 pm Stefan Weil

qemu-iotests: Fix call syntax for qemu-io

qemu-io requires options first, then fixed parameters.

GNU getopt also allows options at the end, but POSIX getopt
doesn't. Try "export POSIXLY_CORRECT=y" to get the POSIX
behaviour with GNU getopt, too.

Cc: Kevin Wolf <>...

21af8148 04/05/2012 04:08 pm Stefan Weil

qemu-iotests: Fix call syntax for qemu-img

qemu-img requires first options, then file name, then size.

GNU getopt also allows options at the end, but POSIX getopt
doesn't. Try "export POSIXLY_CORRECT=y" to get the POSIX
behaviour with GNU getopt, too.

Cc: Kevin Wolf <>...

6e19b3c4 04/05/2012 03:54 pm Kevin Wolf

qemu-iotests: qcow2.py

This adds a tool that is meant to inspect and edit qcow2 files in a
low-level way, that wouldn't be possible with qemu-img/io, for example
by adding yet unknown extensions or flags. This way we can test whether
qemu deals properly with future backwards compatible extensions....

f394f1fe 04/05/2012 03:54 pm Kevin Wolf

qemu-iotests: Test unknown qcow2 header extensions

The immportant thing here is that header extensions don't get silently
dropped when the header is rewritten, e.g. during a rebase.

Signed-off-by: Kevin Wolf <>

927b241d 03/31/2012 08:56 pm Michael Walle

tests: fix out-of-tree building for lm32 target

Signed-off-by: Michael Walle <>

02b3efcb 03/30/2012 09:58 pm Blue Swirl

qtest: avoid a warning with RTC test

Avoid this warning on OpenBSD:
CC tests/rtc-test.o
/src/qemu/tests/rtc-test.c: In function 'check_time':
/src/qemu/tests/rtc-test.c:171: warning: format '%ld' expects type 'long int', but argument 2 has type 'time_t'...

d2a16f74 03/30/2012 08:39 pm Blue Swirl

qtest: fix out of tree build

Trace objects are also needed if tracing is enabled.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Blue Swirl <>

d1aaf543 03/30/2012 04:14 pm Anthony Liguori

qtest: add rtc-test test-case

Signed-off-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

b93b63f5 03/30/2012 04:14 pm Paolo Bonzini

test makefile overhaul

This introduces new test reporting infrastructure based on
gtester and gtester-report.

Also, all existing tests are moved to tests/, and tests/Makefile
is reorganized to factor out the commonalities in the rules.

Signed-off-by: Anthony Liguori <>...

49ee3590 03/30/2012 04:14 pm Anthony Liguori

qtest: add C version of test infrastructure

This also includes a qtest wrapper script to make it easier to launch qtest
tests directly.

Signed-off-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

e38ac962 03/27/2012 03:15 pm Paolo Bonzini

qapi: add strict mode to input visitor

While QMP in general is designed so that it is possible to ignore
unknown arguments, in the case of the QMP server it is better to
reject them to detect bad clients. In fact, we're already doing
this at the top level in the argument checker. To extend this to...

2db5b068 03/26/2012 01:28 pm Michael Roth

test: add test-qmp-commands to make check

All the deps are here but the test was never added to the list of tests
for make check

Signed-off-by: Michael Roth <>
Signed-off-by: Stefan Hajnoczi <>

3ac805d9 03/26/2012 01:28 pm Michael Roth

test: remove qemu-ga reference

This was added by mistake a while back.

Signed-off-by: Michael Roth <>
Signed-off-by: Stefan Hajnoczi <>

3811f63a 03/12/2012 04:14 pm Kevin Wolf

qemu-iotests: Mark some tests as quick

This creates a new test group 'quick' for some test case that take at
most a couple of seconds each, so that the group can be run during a
quick 'make check'

Signed-off-by: Kevin Wolf <>

8959449b 03/12/2012 04:14 pm Kevin Wolf

make check: Add qemu-iotests subset

Run the 'quick' group from qemu-iotests during 'make check'.

Signed-off-by: Kevin Wolf <>

b8c6f29e 03/12/2012 04:14 pm Kevin Wolf

Add 'make check-block'

Runs the full qemu-iotests suite for various image formats.

Signed-off-by: Kevin Wolf <>

b3e54c68 03/03/2012 07:53 pm Blue Swirl

Merge branch 'xtensa' of git://jcmvbkbc.spb.ru/dumb/qemu-xtensa

  • 'xtensa' of git://jcmvbkbc.spb.ru/dumb/qemu-xtensa:
    target-xtensa: add breakpoint tests
    target-xtensa: add DEBUG_SECTION to overlay tool
    target-xtensa: add DBREAK data breakpoints
    exec: let cpu_watchpoint_insert accept larger watchpoints...
049255b6 02/29/2012 04:48 pm Stefan Hajnoczi

qemu-iotests: export TEST_DIR for non-bash tests

Since qemu-iotests may need to create large image files it is possible
to specify the test directory. The TEST_DIR variable needs to be
exported so non-bash tests can make use of it.

Signed-off-by: Stefan Hajnoczi <>...

f345cfd0 02/29/2012 04:48 pm Stefan Hajnoczi

qemu-iotests: add iotests Python module

Block layer tests that involve QMP commands rather than qemu-img or
qemu-io are not well-suited for shell scripting. This patch adds a
Python module which allows tests to be written in Python instead.

The basic API is:...

37ce63eb 02/29/2012 04:48 pm Stefan Hajnoczi

test: add image streaming tests

This patch adds a test suite for the image streaming feature. It
exercises the 'block_stream', 'block_job_cancel', 'block_job_set_speed',
and 'query-block-jobs' QMP commands.

Signed-off-by: Stefan Hajnoczi <>...

a06d5cc2 02/29/2012 04:48 pm Kevin Wolf

qemu-iotests: Filter out DOS line endings

This one makes it possible to run qemu-iotests on a Windows build using Wine
and get somewhat meaningful results.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Stefan Hajnoczi <>

92ab69b6 02/29/2012 04:48 pm Kevin Wolf

qemu-iotests: 026: Reduce output changes for cache=none qcow2

qemu-iotests supports the -nocache option which makes the tests run with
cache=none. For blkdebug tests with qcow2 this means that we may see
test results that differ from cache=writethrough. This patch makes the...

6ce2d77a 02/29/2012 04:48 pm Kevin Wolf

qemu-iotests: Test rebase with short backing file

This tests that qemu-img rebase doesn't assume that the backing file has
the same size as the image, but considers that it can be smaller.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Stefan Hajnoczi <>

d06cddf5 02/23/2012 11:35 am Kevin Wolf

Merge qemu-iotests into for-anthony

5177c512 02/23/2012 11:29 am Christoph Hellwig

qemu-iotests: only run 016 for file and sheepdog protocols

016 writes past EOF which isn't support by most protocols, so limit
it to file and sheepdog, which explicitly support it.

Pointed out by Josh Durgin <>.

Signed-off-by: Christoph Hellwig <>

5e654e08 02/23/2012 11:29 am Mitnick Lyu

qemu-iotests: common.config: Fix no $TEST_DIR directory

mkdir $TEST_DIR on common.config first run

Signed-off-by: Mitnick Lyu <>
Signed-off-by: Christoph Hellwig <>

92eeab5b 02/23/2012 11:29 am Josh Durgin

qemu-iotests: Update rbd support

rbd implements bdrv_truncate, so test 025 will work.

Signed-off-by: Josh Durgin <>
Signed-off-by: Christoph Hellwig <>

25bb8a36 02/23/2012 11:29 am Stefan Hajnoczi

qemu-iotests: add qed support to 025 image resize test

QED now supports the truncate (aka resize) operation for growing images.
Update test 025 so it runs for QED.

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Christoph Hellwig <>

bfe85248 02/23/2012 11:29 am Kevin Wolf

qemu-iotests: Update filter for default cluster size

Until recently, qemu-img create displayed cluster_size=0 for the default
cluster size. It is changed to display the real cluster size now, which results
in the cluster size not being filtered out any more....

8455e4ee 02/23/2012 11:29 am Kevin Wolf

qemu-iotests: test loading internal snapshots

Test loading internal snapshots where the L1 table of the snapshot
is smaller than the current L1 table.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Christoph Hellwig <>

df4b627e 02/23/2012 11:29 am Lucas Meneghel Rodrigues

qemu-iotests: check: print relevant path information

Print the paths of the programs under test
(qemu, qemu-img and qemu-io).

Signed-off-by: Lucas Meneghel Rodrigues <>
Signed-off-by: Christoph Hellwig <>

d305fd5d 02/23/2012 11:29 am Lucas Meneghel Rodrigues

qemu-iotests: common.config: Allow use of arbitrary qemu* paths

Since we might want to test arbitrary qemu, qemu-img and
qemu-io paths, allow users to specify environment variable
values for QEMU_PROG, QEMU_IMG_PROG and QEMU_IO_PROG so
the testsuite will use those values rather than find them...

f5a4bbd9 02/23/2012 11:29 am Stefan Hajnoczi

qemu-iotests: add support for qed format

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Christoph Hellwig <>

657c166f 02/23/2012 11:29 am Stefan Weil

qemu-iotests: README: Fix spelling

Signed-off-by: Stefan Weil <>
Signed-off-by: Christoph Hellwig <>

62284d17 02/23/2012 11:29 am Stefan Hajnoczi

qemu-iotests: filter IMGFMT correctly in 019

Test 019 can be run with qcow2 and qed image formats. Replace the
specific image format value with "IMGFMT" so the golden output does not
hardcode qcow2 or qed.

This patch also includes a typo fix for "occurrences"....

9cdfa1b3 02/23/2012 11:29 am MORITA Kazutaka

qemu-iotests: add support for rbd and sheepdog protocols

This patch introduces tests for protocols other than file, and
initially supports rbd and sheepdog.

Signed-off-by: MORITA Kazutaka <>
Signed-off-by: Christoph Hellwig <>

dd0c35d6 02/23/2012 11:29 am Stefan Hajnoczi

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