Statistics
| Branch: | Revision:

root / tests @ 0cae7b1a

Latest revisions

# Date Author Comment
f62cb1b6 10/19/2012 09:40 pm Catalin Patulea

tests/tcg: fix build

This broke when the tests were moved from tests/ to tests/tcg/.

On x86_64 host/i386-linux-user non-kvm guest, test-i386 and test-mmap are broken, but at least they build.

To build/run the tests:
$ cd $BUILD_PATH/tests/tcg
$ SRC_PATH=path/to/qemu make <target>...

b6db4aca 10/05/2012 04:02 pm Paolo Bonzini

rtc: fix overflow in mktimegm

When setting a date in 1980, Linux is actually disregarding the century
byte and setting the year to 2080. This causes a year-2038 overflow
in mktimegm. Fix this by doing the days-to-seconds computation in
64-bit math.

Reported-by: Lucas Meneghel Rodrigues <>...

b8994faf 10/05/2012 04:02 pm Paolo Bonzini

rtc: implement century byte

Implement the century byte in the RTC emulation, and test that it works.
This leads to some annoying compatibility code because we need to treat
a value of 2000 for the base_year property as "use the century byte
properly" (which would be a value of 0)....

e0fea6b1 10/05/2012 04:02 pm Paolo Bonzini

qtest: implement QTEST_STOP

It is quite difficult to debug qtest test cases without extra wrapper
scripts for QEMU or similar. This patch adds a simple environment
variable-based trigger that sends a STOP signal to the QEMU instance
under test, before attempting to connect to its QMP session....

4f450568 09/28/2012 08:40 pm Paolo Bonzini

qemu-iotests: map underscore to dash in QMP argument names

iotests.py provides a convenience function that uses Python keyword
arguments to represent QMP command arguments. However, almost all
QMP commands use dashes for argument names (the sole exception is...

90f0b711 09/28/2012 08:40 pm Paolo Bonzini

qemu-iotests: add tests for streaming error handling

Add a test for each of report/ignore/stop. The tests use blkdebug
to generate an error in the middle of a script. The error is
recoverable (once = "on") so that we can test resuming a job after
stopping for an error....

0c817347 09/28/2012 08:14 pm Paolo Bonzini

qemu-iotests: add test for pausing a streaming operation

These check that a paused streaming job does not advance its offset.

Sometimes the new test fails; the map is different between the source
and the destination of the streaming because qemu-io does not always...

747051cd 09/28/2012 07:55 pm Jeff Cody

qemu-iotests: add initial tests for live block commit

Derived from the streaming test cases (030), this adds the
following 9 tests:

1. For the following image chain, commit [mid] into [backing],
and use qemu-io to verify [backing] has its original data, as...

774a8850 08/29/2012 04:23 pm Stefan Hajnoczi

qemu-iotests: add backing file smaller than image test case

This new test case checks that streaming completes successfully when the
backing file is smaller than the image file.

Signed-off-by: Stefan Hajnoczi <>
Reviewed-by: Paolo Bonzini <>...

7109edfe 08/16/2012 09:41 pm Michael Roth

check-qjson: add test for large JSON objects

Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

View revisions

Also available in: Atom