Statistics
| Branch: | Revision:

root / tests / qemu-iotests / 030 @ f53ec699

History | View | Annotate | Download (19.1 kB)

# Date Author Comment
ecc1c88e 06/04/2013 01:11 pm Stefan Hajnoczi

qemu-iotests: make assert_no_active_block_jobs() common

Tests 030 and 041 both use query-block-jobs to check whether any block
jobs are active. Make this code common so that 'drive-backup' and other
new feature tests will be able to reuse it.

Suggested-by: Kevin Wolf <>...

2575fe16 06/04/2013 01:11 pm Stefan Hajnoczi

qemu-iotests: make cancel_and_wait() common

The cancel_and_wait() function has been duplicated in 030 and 041. Move
it into iotests.py and let it return the event so tests can perform
additional asserts.

Note that 041's cancel_and_wait(wait_ready=True) is replaced by...

2499a096 06/04/2013 01:11 pm Stefan Hajnoczi

qemu-iotests: make create_image() common

Both 030 and 041 use create_image(). Move it to iotests.py.

Also drop ImageStreamingTestCase since the class now has no methods.

Suggested-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>...

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

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

58c8cce2 08/15/2012 04:14 pm Kevin Wolf

qemu-iotests: Fix 030 after switch to GenericError

Signed-off-by: Kevin Wolf <>
Reviewed-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 <>...

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

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

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

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

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