summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEric Blake2017-07-24 17:39:51 +0200
committerKevin Wolf2017-08-01 18:09:33 +0200
commit1e2b1f6487ae26256a42f017fc1b06e19bb98f5a (patch)
tree98cbf11bf737f95e1488ad5116d3146ebf1dfaef /tests
parentiotests: Redirect stderr to stdout in 186 (diff)
downloadqemu-1e2b1f6487ae26256a42f017fc1b06e19bb98f5a.tar.gz
qemu-1e2b1f6487ae26256a42f017fc1b06e19bb98f5a.tar.xz
qemu-1e2b1f6487ae26256a42f017fc1b06e19bb98f5a.zip
iotests: Check dirty bitmap statistics in 124
We had a bug for multiple releases where dirty-bitmap count was documented in bytes but reported in sectors; enhance the testsuite to add coverage of DirtyBitmapInfo to ensure we do not regress again. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/qemu-iotests/1247
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/qemu-iotests/124 b/tests/qemu-iotests/124
index d0d2c2bfb0..8e76e62f93 100644
--- a/tests/qemu-iotests/124
+++ b/tests/qemu-iotests/124
@@ -336,7 +336,12 @@ class TestIncrementalBackup(TestIncrementalBackupBase):
(('0xab', 0, 512),
('0xfe', '16M', '256k'),
('0x64', '32736k', '64k')))
-
+ # Check the dirty bitmap stats
+ result = self.vm.qmp('query-block')
+ self.assert_qmp(result, 'return[0]/dirty-bitmaps[0]/name', 'bitmap0')
+ self.assert_qmp(result, 'return[0]/dirty-bitmaps[0]/count', 458752)
+ self.assert_qmp(result, 'return[0]/dirty-bitmaps[0]/granularity', 65536)
+ self.assert_qmp(result, 'return[0]/dirty-bitmaps[0]/status', 'active')
# Prepare a cluster_size=128k backup target without a backing file.
(target, _) = bitmap0.new_target()