qemublocktest: Re-introduce testing of checkpoint deletion

Exercise the now arguably simpler checkpoint deletion code on the
'basic', 'snapshots', and 'synthetic' test data sets.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Peter Krempa 2020-06-01 10:41:16 +02:00
parent 520d139b9c
commit 2c5a3da365
16 changed files with 245 additions and 0 deletions

View File

@ -1330,6 +1330,24 @@ mymain(void)
TEST_CHECKPOINT_DELETE("empty", "a", "empty");
TEST_CHECKPOINT_DELETE("basic-noparent", "a", "basic");
TEST_CHECKPOINT_DELETE("basic-intermediate1", "b", "basic");
TEST_CHECKPOINT_DELETE("basic-intermediate2", "c", "basic");
TEST_CHECKPOINT_DELETE("basic-intermediate3", "d", "basic");
TEST_CHECKPOINT_DELETE("basic-current", "current", "basic");
TEST_CHECKPOINT_DELETE("snapshots-noparent", "a", "snapshots");
TEST_CHECKPOINT_DELETE("snapshots-intermediate1", "b", "snapshots");
TEST_CHECKPOINT_DELETE("snapshots-intermediate2", "c", "snapshots");
TEST_CHECKPOINT_DELETE("snapshots-intermediate3", "d", "snapshots");
TEST_CHECKPOINT_DELETE("snapshots-current", "current", "snapshots");
TEST_CHECKPOINT_DELETE("synthetic-noparent", "a", "synthetic");
TEST_CHECKPOINT_DELETE("synthetic-intermediate1", "b", "synthetic");
TEST_CHECKPOINT_DELETE("synthetic-intermediate2", "c", "synthetic");
TEST_CHECKPOINT_DELETE("synthetic-intermediate3", "d", "synthetic");
TEST_CHECKPOINT_DELETE("synthetic-current", "current", "synthetic");
#define TEST_BITMAP_VALIDATE(testname, bitmap, rc) \
do { \
blockbitmapvalidatedata.name = testname; \

View File

@ -0,0 +1,9 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-1-format",
"name": "current"
}
}
]

View File

@ -0,0 +1,9 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-1-format",
"name": "b"
}
}
]

View File

@ -0,0 +1,9 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-1-format",
"name": "c"
}
}
]

View File

@ -0,0 +1,9 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-1-format",
"name": "d"
}
}
]

View File

@ -0,0 +1,9 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-1-format",
"name": "a"
}
}
]

View File

@ -0,0 +1,9 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-1-format",
"name": "current"
}
}
]

View File

@ -0,0 +1,26 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-1-format",
"name": "b"
}
},
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-2-format",
"name": "b"
}
},
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-3-format",
"name": "b"
}
}
]
reopen nodes:
libvirt-3-format
libvirt-2-format

View File

@ -0,0 +1,26 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-1-format",
"name": "c"
}
},
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-2-format",
"name": "c"
}
},
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-3-format",
"name": "c"
}
}
]
reopen nodes:
libvirt-3-format
libvirt-2-format

View File

@ -0,0 +1,18 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-1-format",
"name": "d"
}
},
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-2-format",
"name": "d"
}
}
]
reopen nodes:
libvirt-2-format

View File

@ -0,0 +1,42 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-1-format",
"name": "a"
}
},
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-2-format",
"name": "a"
}
},
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-3-format",
"name": "a"
}
},
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-4-format",
"name": "a"
}
},
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-5-format",
"name": "a"
}
}
]
reopen nodes:
libvirt-5-format
libvirt-4-format
libvirt-3-format
libvirt-2-format

View File

@ -0,0 +1,9 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-1-format",
"name": "current"
}
}
]

View File

@ -0,0 +1,11 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-3-format",
"name": "b"
}
}
]
reopen nodes:
libvirt-3-format

View File

@ -0,0 +1,11 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-3-format",
"name": "c"
}
}
]
reopen nodes:
libvirt-3-format

View File

@ -0,0 +1,19 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-2-format",
"name": "d"
}
},
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-3-format",
"name": "d"
}
}
]
reopen nodes:
libvirt-3-format
libvirt-2-format

View File

@ -0,0 +1,11 @@
[
{
"type": "block-dirty-bitmap-remove",
"data": {
"node": "libvirt-5-format",
"name": "a"
}
}
]
reopen nodes:
libvirt-5-format