From 9cb08020e1ee1e8dec48273b7fd886e3f3633c6e Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Tue, 8 Jun 2010 16:31:50 +0100 Subject: [PATCH] Fix test breakage from virtio serial changes The virtio serial changes broke the test suite because they forgot to add the new address attribute to the domain XML schema. The xml2xml test also broke because the XML no longer roundtrips. This is due to testing of auto-addition of elements. Split that test case off into a separate XML file to avoid breakage * docs/schemas/domain.rng: Allow port number for virtio serial addresses * tests/qemuxml2argvdata/qemuxml2argv-channel-virtio.args, tests/qemuxml2argvdata/qemuxml2argv-channel-virtio.xml: Revert to a simple config to avoid breaking xml2xml test * tests/qemuxml2argvdata/qemuxml2argv-channel-virtio-auto.xml, tests/qemuxml2argvdata/qemuxml2argv-channel-virtio-auto.args: Add complex test case for auto-controller addition for xml2argv test * tests/qemuxml2argvtest.c: Add channel-virtio-auto test --- docs/schemas/domain.rng | 5 ++ .../qemuxml2argv-channel-virtio-auto.args | 1 + .../qemuxml2argv-channel-virtio-auto.xml | 51 +++++++++++++++++++ .../qemuxml2argv-channel-virtio.args | 2 +- .../qemuxml2argv-channel-virtio.xml | 20 -------- tests/qemuxml2argvtest.c | 1 + 6 files changed, 59 insertions(+), 21 deletions(-) create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-channel-virtio-auto.args create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-channel-virtio-auto.xml diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng index e819544e2b..9121da3661 100644 --- a/docs/schemas/domain.rng +++ b/docs/schemas/domain.rng @@ -1470,6 +1470,11 @@ + + + + +