]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuxml2xmltest: Parse all input files as inactive
authorPeter Krempa <pkrempa@redhat.com>
Fri, 15 Dec 2023 15:30:32 +0000 (16:30 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 17 Jan 2024 16:31:12 +0000 (17:31 +0100)
commit66eeeb610c4a69b0b4a94d0db799b83d46fe57bb
tree9331d34f2cbf43ad386319a9742590d9891ec265
parentae87e46a99f7690874e5adb5f66b22d4bc69cf97
qemuxml2xmltest: Parse all input files as inactive

In previous patches we've added testing of XML's explicitly parsed as
active (ensuring that it e.g. has a domain id) formatted into both
active and inactive versions.

Now qemuxml2xmltest can be simplified by making it test only XMLs parsed
as inactive.

To do this we pass VIR_DOMAIN_DEF_PARSE_INACTIVE in parseFlags. This
will also cause that all output files will become identical so the setup
of the test cases can be simplified by using the non-split output file
name.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
26 files changed:
tests/qemuxml2xmloutdata/channel-unix-source-path-active.x86_64-latest.xml [deleted file]
tests/qemuxml2xmloutdata/channel-unix-source-path.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/channel-unix-source-path-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmloutdata/channel-virtio-state-active.x86_64-latest.xml [deleted file]
tests/qemuxml2xmloutdata/channel-virtio-state.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/channel-virtio-state-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmloutdata/disk-active-commit-active.x86_64-latest.xml [deleted file]
tests/qemuxml2xmloutdata/disk-active-commit.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/disk-active-commit-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmloutdata/disk-backing-chains-index-active.x86_64-latest.xml [deleted file]
tests/qemuxml2xmloutdata/disk-backing-chains-index.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/disk-backing-chains-index-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmloutdata/disk-mirror-active.x86_64-latest.xml [deleted file]
tests/qemuxml2xmloutdata/disk-mirror-old-active.x86_64-latest.xml [deleted file]
tests/qemuxml2xmloutdata/disk-mirror-old.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/disk-mirror-old-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmloutdata/disk-mirror.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/disk-mirror-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmloutdata/genid-active.x86_64-latest.xml [deleted file]
tests/qemuxml2xmloutdata/genid-auto-active.x86_64-latest.xml [deleted file]
tests/qemuxml2xmloutdata/genid-auto.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/genid-auto-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmloutdata/genid.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/genid-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmloutdata/graphics-vnc-remove-generated-socket-active.x86_64-latest.xml [deleted file]
tests/qemuxml2xmloutdata/graphics-vnc-remove-generated-socket.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/graphics-vnc-remove-generated-socket-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmloutdata/seclabel-dynamic-baselabel.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/seclabel-dynamic-baselabel-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmloutdata/seclabel-dynamic-labelskip.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/seclabel-dynamic-labelskip-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmloutdata/seclabel-dynamic-none-relabel.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/seclabel-dynamic-none-relabel-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmloutdata/seclabel-dynamic-override.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/seclabel-dynamic-override-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmloutdata/seclabel-dynamic-relabel.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/seclabel-dynamic-relabel-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmloutdata/seclabel-static-labelskip-active.x86_64-latest.xml [deleted file]
tests/qemuxml2xmloutdata/seclabel-static-labelskip.x86_64-latest.xml [moved from tests/qemuxml2xmloutdata/seclabel-static-labelskip-inactive.x86_64-latest.xml with 100% similarity]
tests/qemuxml2xmltest.c