From a71be01f04e7cacfe37d9d3d3c934096f863a495 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Tue, 20 Apr 2010 17:22:49 -0400 Subject: [PATCH] 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 --- docs/schemas/domain.rng | 28 +++++++++++++++++ src/qemu/qemu_driver.c | 16 +++++----- src/qemu/qemu_driver.h | 11 +++++++ tests/qemuargv2xmltest.c | 2 ++ .../qemuxml2argv-qemu-ns-no-env.args | 1 + .../qemuxml2argv-qemu-ns-no-env.xml | 29 ++++++++++++++++++ .../qemuxml2argv-qemu-ns.args | 1 + .../qemuxml2argvdata/qemuxml2argv-qemu-ns.xml | 30 +++++++++++++++++++ tests/qemuxml2argvtest.c | 2 ++ tests/testutilsqemu.c | 6 ++++ 10 files changed, 118 insertions(+), 8 deletions(-) create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-qemu-ns-no-env.args create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-qemu-ns-no-env.xml create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-qemu-ns.args create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-qemu-ns.xml diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng index 2ca0ad2b02..08e7c01d93 100644 --- a/docs/schemas/domain.rng +++ b/docs/schemas/domain.rng @@ -41,6 +41,9 @@ + + + @@ -1680,6 +1683,31 @@ + + + + + + + + + + + + + + + + + + + + + +