From ae87e46a99f7690874e5adb5f66b22d4bc69cf97 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 18 Dec 2023 13:36:45 +0100 Subject: [PATCH] qemuxmlactivetest: Add qemu active XML to active/inactive XML tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add explicit test cases for XMLs from qemuxml2argvdata which historically had different output in qemuxml2xmltest. qemuxmlactivetest explicitly ensures that the input XMLs are parsed in 'live' state and formatted both in inactive as well as live state, rather than the previously present inactive->inactive, live->live tests only. The XMLs picked in this case are those which had separate output files in qemuxml2argvtest. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- ...-unix-source-path-active.x86_64-latest.xml | 82 +++++++++ ...nix-source-path-inactive.x86_64-latest.xml | 82 +++++++++ ...nnel-virtio-state-active.x86_64-latest.xml | 55 ++++++ ...el-virtio-state-inactive.x86_64-latest.xml | 55 ++++++ ...isk-active-commit-active.x86_64-latest.xml | 49 ++++++ ...k-active-commit-inactive.x86_64-latest.xml | 45 +++++ ...king-chains-index-active.x86_64-latest.xml | 164 ++++++++++++++++++ ...ng-chains-index-inactive.x86_64-latest.xml | 164 ++++++++++++++++++ .../disk-mirror-active.x86_64-latest.xml | 97 +++++++++++ .../disk-mirror-inactive.x86_64-latest.xml | 70 ++++++++ .../disk-mirror-old-active.x86_64-latest.xml | 71 ++++++++ ...disk-mirror-old-inactive.x86_64-latest.xml | 63 +++++++ .../genid-active.x86_64-latest.xml | 36 ++++ .../genid-auto-active.x86_64-latest.xml | 36 ++++ .../genid-auto-inactive.x86_64-latest.xml | 36 ++++ .../genid-inactive.x86_64-latest.xml | 36 ++++ ...-generated-socket-active.x86_64-latest.xml | 45 +++++ ...enerated-socket-inactive.x86_64-latest.xml | 45 +++++ ...-static-labelskip-active.x86_64-latest.xml | 47 +++++ ...tatic-labelskip-inactive.x86_64-latest.xml | 45 +++++ tests/qemuxmlactivetest.c | 13 +- 21 files changed, 1335 insertions(+), 1 deletion(-) create mode 100644 tests/qemuxmlactive2xmldata/channel-unix-source-path-active.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/channel-unix-source-path-inactive.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/channel-virtio-state-active.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/channel-virtio-state-inactive.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/disk-active-commit-active.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/disk-active-commit-inactive.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/disk-backing-chains-index-active.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/disk-backing-chains-index-inactive.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/disk-mirror-active.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/disk-mirror-inactive.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/disk-mirror-old-active.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/disk-mirror-old-inactive.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/genid-active.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/genid-auto-active.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/genid-auto-inactive.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/genid-inactive.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/graphics-vnc-remove-generated-socket-active.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/graphics-vnc-remove-generated-socket-inactive.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/seclabel-static-labelskip-active.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/seclabel-static-labelskip-inactive.x86_64-latest.xml diff --git a/tests/qemuxmlactive2xmldata/channel-unix-source-path-active.x86_64-latest.xml b/tests/qemuxmlactive2xmldata/channel-unix-source-path-active.x86_64-latest.xml new file mode 100644 index 0000000000..b944c26897 --- /dev/null +++ b/tests/qemuxmlactive2xmldata/channel-unix-source-path-active.x86_64-latest.xml @@ -0,0 +1,82 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219100 + 219100 + 1 + + hvm + + + + qemu64 + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + +
+ + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + +