diff options
author | Chris Lalancette <clalance@redhat.com> | 2010-04-20 17:22:49 -0400 |
---|---|---|
committer | Chris Lalancette <clalance@redhat.com> | 2010-07-23 17:30:45 -0400 |
commit | a71be01f04e7cacfe37d9d3d3c934096f863a495 (patch) | |
tree | e63afda375d17d1046fb695abf51687967e570fe /tests/testutilsqemu.c | |
parent | Qemu remote protocol. (diff) | |
download | libvirt-a71be01f04e7cacfe37d9d3d3c934096f863a495.tar.gz libvirt-a71be01f04e7cacfe37d9d3d3c934096f863a495.tar.bz2 libvirt-a71be01f04e7cacfe37d9d3d3c934096f863a495.zip |
Add tests for the new Qemu namespace XML.
Thanks to DV for knocking together the Relax-NG changes
quickly for me.
Changes since v1:
- Change the domain.rng to correspond to the new schema
- Don't allocate caps->ns in testQemuCapsInit since it is a static table
Changes since v2:
- Change domain.rng to add restrictions on allowed environment names
Changes since v3:
- Remove a bogus comment in the tests
Signed-off-by: Chris Lalancette <clalance@redhat.com>
Diffstat (limited to 'tests/testutilsqemu.c')
-rw-r--r-- | tests/testutilsqemu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testutilsqemu.c b/tests/testutilsqemu.c index 99b1f4eea..dd33b625c 100644 --- a/tests/testutilsqemu.c +++ b/tests/testutilsqemu.c @@ -7,6 +7,7 @@ # include "testutils.h" # include "memory.h" # include "cpu_conf.h" +# include "qemu/qemu_driver.h" static virCapsGuestMachinePtr *testQemuAllocMachines(int *nmachines) { @@ -100,6 +101,11 @@ virCapsPtr testQemuCapsInit(void) { (machines = testQemuAllocMachines(&nmachines)) == NULL) goto cleanup; + caps->ns.parse = qemuDomainDefNamespaceParse; + caps->ns.free = qemuDomainDefNamespaceFree; + caps->ns.format = qemuDomainDefNamespaceFormatXML; + caps->ns.href = qemuDomainDefNamespaceHref; + if ((guest = virCapabilitiesAddGuest(caps, "hvm", "i686", 32, "/usr/bin/qemu", NULL, nmachines, machines)) == NULL) |