qemu-iotests: Test postcopy migration

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
Kevin Wolf 2017-04-13 18:41:46 +02:00
parent 69404d9e47
commit 312758e237
3 changed files with 158 additions and 0 deletions

View file

@ -0,0 +1,38 @@
QA output created by 181
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
=== Starting VMs ===
=== Write something on the source ===
QEMU X.Y.Z monitor - type 'help' for more information
(qemu) qemu-io disk "write -P 0x55 0 64k"
wrote 65536/65536 bytes at offset 0
64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
(qemu)
(qemu) qemu-io disk "read -P 0x55 0 64k"
read 65536/65536 bytes at offset 0
64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
=== Do postcopy migration to destination ===
=== Do some I/O on the destination ===
QEMU X.Y.Z monitor - type 'help' for more information
(qemu) qemu-io disk "read -P 0x55 0 64k"
read 65536/65536 bytes at offset 0
64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
(qemu)
(qemu) qemu-io disk "write -P 0x66 1M 64k"
wrote 65536/65536 bytes at offset 1048576
64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
=== Shut down and check image ===
(qemu) quit
(qemu)
(qemu) quit
No errors were found on the image.
*** done