mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
qemumigparamstest: Add basic test data
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
40b186de27
commit
b60a1185ce
9
tests/qemumigparamsdata/basic.json
Normal file
9
tests/qemumigparamsdata/basic.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"compress-level": 1,
|
||||
"compress-threads": 8,
|
||||
"decompress-threads": 2,
|
||||
"cpu-throttle-initial": 20,
|
||||
"cpu-throttle-increment": 10,
|
||||
"max-bandwidth": 33554432,
|
||||
"downtime-limit": 300
|
||||
}
|
12
tests/qemumigparamsdata/basic.reply
Normal file
12
tests/qemumigparamsdata/basic.reply
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"id": "libvirt-1",
|
||||
"return": {
|
||||
"decompress-threads": 2,
|
||||
"cpu-throttle-increment": 10,
|
||||
"compress-threads": 8,
|
||||
"compress-level": 1,
|
||||
"cpu-throttle-initial": 20,
|
||||
"max-bandwidth": 33554432,
|
||||
"downtime-limit": 300
|
||||
}
|
||||
}
|
11
tests/qemumigparamsdata/basic.xml
Normal file
11
tests/qemumigparamsdata/basic.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<test>
|
||||
<migParams>
|
||||
<param name='compress-level' value='1'/>
|
||||
<param name='compress-threads' value='8'/>
|
||||
<param name='decompress-threads' value='2'/>
|
||||
<param name='cpu-throttle-initial' value='20'/>
|
||||
<param name='cpu-throttle-increment' value='10'/>
|
||||
<param name='max-bandwidth' value='33554432'/>
|
||||
<param name='downtime-limit' value='300'/>
|
||||
</migParams>
|
||||
</test>
|
3
tests/qemumigparamsdata/empty.json
Normal file
3
tests/qemumigparamsdata/empty.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
5
tests/qemumigparamsdata/empty.reply
Normal file
5
tests/qemumigparamsdata/empty.reply
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"id": "libvirt-1",
|
||||
"return": {
|
||||
}
|
||||
}
|
4
tests/qemumigparamsdata/empty.xml
Normal file
4
tests/qemumigparamsdata/empty.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<test>
|
||||
<migParams>
|
||||
</migParams>
|
||||
</test>
|
@ -228,6 +228,8 @@ mymain(void)
|
||||
} while (0)
|
||||
|
||||
DO_TEST("unsupported");
|
||||
DO_TEST("empty");
|
||||
DO_TEST("basic");
|
||||
|
||||
qemuTestDriverFree(&driver);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user