]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemumigparamstest: Add basic test data
authorJiri Denemark <jdenemar@redhat.com>
Mon, 19 Mar 2018 22:46:46 +0000 (23:46 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 17 Apr 2018 08:46:23 +0000 (10:46 +0200)
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemumigparamsdata/basic.json [new file with mode: 0644]
tests/qemumigparamsdata/basic.reply [new file with mode: 0644]
tests/qemumigparamsdata/basic.xml [new file with mode: 0644]
tests/qemumigparamsdata/empty.json [new file with mode: 0644]
tests/qemumigparamsdata/empty.reply [new file with mode: 0644]
tests/qemumigparamsdata/empty.xml [new file with mode: 0644]
tests/qemumigparamstest.c

diff --git a/tests/qemumigparamsdata/basic.json b/tests/qemumigparamsdata/basic.json
new file mode 100644 (file)
index 0000000..b810d7c
--- /dev/null
@@ -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
+}
diff --git a/tests/qemumigparamsdata/basic.reply b/tests/qemumigparamsdata/basic.reply
new file mode 100644 (file)
index 0000000..dd8c528
--- /dev/null
@@ -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
+  }
+}
diff --git a/tests/qemumigparamsdata/basic.xml b/tests/qemumigparamsdata/basic.xml
new file mode 100644 (file)
index 0000000..2ca532e
--- /dev/null
@@ -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>
diff --git a/tests/qemumigparamsdata/empty.json b/tests/qemumigparamsdata/empty.json
new file mode 100644 (file)
index 0000000..0db3279
--- /dev/null
@@ -0,0 +1,3 @@
+{
+
+}
diff --git a/tests/qemumigparamsdata/empty.reply b/tests/qemumigparamsdata/empty.reply
new file mode 100644 (file)
index 0000000..7aae399
--- /dev/null
@@ -0,0 +1,5 @@
+{
+  "id": "libvirt-1",
+  "return": {
+  }
+}
diff --git a/tests/qemumigparamsdata/empty.xml b/tests/qemumigparamsdata/empty.xml
new file mode 100644 (file)
index 0000000..8aa3abe
--- /dev/null
@@ -0,0 +1,4 @@
+<test>
+  <migParams>
+  </migParams>
+</test>
index 4cc27bcf528ef7be7d89058d13cff637709eaf14..6fb404c24d5ce3f33a8f87a9cc8312609f267f1d 100644 (file)
@@ -228,6 +228,8 @@ mymain(void)
     } while (0)
 
     DO_TEST("unsupported");
+    DO_TEST("empty");
+    DO_TEST("basic");
 
     qemuTestDriverFree(&driver);