From nobody Wed Jan 15 09:13:08 2025 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1704732366262229.8105603541917; Mon, 8 Jan 2024 08:46:06 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id F34FA1AA1; Mon, 8 Jan 2024 11:46:04 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 93E811ACD; Mon, 8 Jan 2024 11:07:52 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 7167D1A4C; Mon, 8 Jan 2024 11:07:02 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id A8AFE19F1 for ; Mon, 8 Jan 2024 11:06:09 -0500 (EST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-183-npXCIWjSOw20KTPDJhVfJw-1; Mon, 08 Jan 2024 11:06:07 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0DAE685A58A for ; Mon, 8 Jan 2024 16:06:06 +0000 (UTC) Received: from speedmetal.lan (unknown [10.45.242.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5B451C15A0C for ; Mon, 8 Jan 2024 16:06:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: npXCIWjSOw20KTPDJhVfJw-1 From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH 10/23] qemuxmlactivetest: Add qemu active XML to active/inactive XML tests Date: Mon, 8 Jan 2024 17:05:40 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: Z6NB4APWPV3LFX3AEYMOGS6D6GZH65YJ X-Message-ID-Hash: Z6NB4APWPV3LFX3AEYMOGS6D6GZH65YJ X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1704732368276100001 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 --- ...-unix-source-path-active.x86_64-latest.xml | 62 +++++++ ...nix-source-path-inactive.x86_64-latest.xml | 62 +++++++ ...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, 1295 insertions(+), 1 deletion(-) create mode 100644 tests/qemuxmlactive2xmldata/channel-unix-source-path-ac= tive.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/channel-unix-source-path-in= active.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-inacti= ve.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/disk-active-commit-active.x= 86_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-a= ctive.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/disk-backing-chains-index-i= nactive.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/disk-mirror-active.x86_64-l= atest.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.x8= 6_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/genid-active.x86_64-latest.= xml create mode 100644 tests/qemuxmlactive2xmldata/genid-auto-active.x86_64-la= test.xml create mode 100644 tests/qemuxmlactive2xmldata/genid-auto-inactive.x86_64-= latest.xml create mode 100644 tests/qemuxmlactive2xmldata/genid-inactive.x86_64-lates= t.xml create mode 100644 tests/qemuxmlactive2xmldata/graphics-vnc-remove-generat= ed-socket-active.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/graphics-vnc-remove-generat= ed-socket-inactive.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/seclabel-static-labelskip-a= ctive.x86_64-latest.xml create mode 100644 tests/qemuxmlactive2xmldata/seclabel-static-labelskip-i= nactive.x86_64-latest.xml diff --git a/tests/qemuxmlactive2xmldata/channel-unix-source-path-active.x8= 6_64-latest.xml b/tests/qemuxmlactive2xmldata/channel-unix-source-path-acti= ve.x86_64-latest.xml new file mode 100644 index 0000000000..a055cee79c --- /dev/null +++ b/tests/qemuxmlactive2xmldata/channel-unix-source-path-active.x86_64-la= test.xml @@ -0,0 +1,62 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219100 + 219100 + 1 + + hvm + + + + qemu64 + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + +
+ + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + +