From c4111209b8b40fe8673f5dd13518231c4ed7967a Mon Sep 17 00:00:00 2001 From: Chunyan Liu Date: Tue, 17 May 2016 17:34:46 +0800 Subject: [PATCH] xlconfigtest: add test case for type=vif in xl format Signed-off-by: Chunyan Liu --- tests/xlconfigdata/test-vif-typename.cfg | 25 +++++++++++++ tests/xlconfigdata/test-vif-typename.xml | 45 ++++++++++++++++++++++++ tests/xlconfigtest.c | 1 + 3 files changed, 71 insertions(+) create mode 100644 tests/xlconfigdata/test-vif-typename.cfg create mode 100644 tests/xlconfigdata/test-vif-typename.xml diff --git a/tests/xlconfigdata/test-vif-typename.cfg b/tests/xlconfigdata/test-vif-typename.cfg new file mode 100644 index 0000000000..fb5d94c27a --- /dev/null +++ b/tests/xlconfigdata/test-vif-typename.cfg @@ -0,0 +1,25 @@ +name = "XenGuest2" +uuid = "c7a5fdb2-cdaf-9455-926a-d65c16db1809" +maxmem = 579 +memory = 394 +vcpus = 1 +pae = 1 +acpi = 1 +apic = 1 +viridian = 0 +rtc_timeoffset = 0 +localtime = 0 +on_poweroff = "destroy" +on_reboot = "restart" +on_crash = "restart" +device_model = "/usr/lib/xen/bin/qemu-system-i386" +sdl = 0 +vnc = 1 +vncunused = 1 +vnclisten = "127.0.0.1" +vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,type=vif" ] +parallel = "none" +serial = "none" +builder = "hvm" +boot = "d" +disk = [ "format=raw,vdev=hda,access=rw,backendtype=phy,target=/dev/HostVG/XenGuest2" ] diff --git a/tests/xlconfigdata/test-vif-typename.xml b/tests/xlconfigdata/test-vif-typename.xml new file mode 100644 index 0000000000..8e1e988853 --- /dev/null +++ b/tests/xlconfigdata/test-vif-typename.xml @@ -0,0 +1,45 @@ + + XenGuest2 + c7a5fdb2-cdaf-9455-926a-d65c16db1809 + 592896 + 403456 + 1 + + hvm + /usr/lib/xen/boot/hvmloader + + + + + + + + + destroy + restart + restart + + /usr/lib/xen/bin/qemu-system-i386 + + + + +
+ + + + + +