From nobody Wed Jan 15 09:43:59 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 170473288893528.445716645193897; Mon, 8 Jan 2024 08:54:48 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 843131A07; Mon, 8 Jan 2024 11:54:47 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id EEC491A26; Mon, 8 Jan 2024 11:08:21 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 8FF6C1A52; Mon, 8 Jan 2024 11:07:08 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 87F2B1A00 for ; Mon, 8 Jan 2024 11:06:10 -0500 (EST) Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-594-RuSa6Yy9MTWZRtL_S6XEFw-1; Mon, 08 Jan 2024 11:06:08 -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 EF8F23C100A3 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 61CC9C15968 for ; Mon, 8 Jan 2024 16:06:06 +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_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: RuSa6Yy9MTWZRtL_S6XEFw-1 From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH 11/23] qemuxml2xmltest: Parse all input files as inactive Date: Mon, 8 Jan 2024 17:05:41 +0100 Message-ID: <3c1131b7f17b907ed9ad014492dd8dcf372e1e8b.1704729291.git.pkrempa@redhat.com> 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: UF7556GQRNQYQGAKO5DPIBSQV647RCB7 X-Message-ID-Hash: UF7556GQRNQYQGAKO5DPIBSQV647RCB7 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: 1704732890917100001 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 --- ...-unix-source-path-active.x86_64-latest.xml | 62 ------- ...hannel-unix-source-path.x86_64-latest.xml} | 0 ...nnel-virtio-state-active.x86_64-latest.xml | 55 ------ ...=3D> channel-virtio-state.x86_64-latest.xml} | 0 ...isk-active-commit-active.x86_64-latest.xml | 49 ------ ...l =3D> disk-active-commit.x86_64-latest.xml} | 0 ...king-chains-index-active.x86_64-latest.xml | 164 ------------------ ...sk-backing-chains-index.x86_64-latest.xml} | 0 .../disk-mirror-active.x86_64-latest.xml | 97 ----------- .../disk-mirror-old-active.x86_64-latest.xml | 71 -------- ....xml =3D> disk-mirror-old.x86_64-latest.xml} | 0 ...test.xml =3D> disk-mirror.x86_64-latest.xml} | 0 .../genid-active.x86_64-latest.xml | 36 ---- .../genid-auto-active.x86_64-latest.xml | 36 ---- ...atest.xml =3D> genid-auto.x86_64-latest.xml} | 0 ..._64-latest.xml =3D> genid.x86_64-latest.xml} | 0 ...-generated-socket-active.x86_64-latest.xml | 45 ----- ...remove-generated-socket.x86_64-latest.xml} | 0 ...label-dynamic-baselabel.x86_64-latest.xml} | 0 ...label-dynamic-labelskip.x86_64-latest.xml} | 0 ...el-dynamic-none-relabel.x86_64-latest.xml} | 0 ...clabel-dynamic-override.x86_64-latest.xml} | 0 ...eclabel-dynamic-relabel.x86_64-latest.xml} | 0 ...-static-labelskip-active.x86_64-latest.xml | 47 ----- ...clabel-static-labelskip.x86_64-latest.xml} | 0 tests/qemuxml2xmltest.c | 47 +---- 26 files changed, 6 insertions(+), 703 deletions(-) delete mode 100644 tests/qemuxml2xmloutdata/channel-unix-source-path-activ= e.x86_64-latest.xml rename tests/qemuxml2xmloutdata/{channel-unix-source-path-inactive.x86_64-= latest.xml =3D> channel-unix-source-path.x86_64-latest.xml} (100%) delete mode 100644 tests/qemuxml2xmloutdata/channel-virtio-state-active.x8= 6_64-latest.xml rename tests/qemuxml2xmloutdata/{channel-virtio-state-inactive.x86_64-late= st.xml =3D> channel-virtio-state.x86_64-latest.xml} (100%) delete mode 100644 tests/qemuxml2xmloutdata/disk-active-commit-active.x86_= 64-latest.xml rename tests/qemuxml2xmloutdata/{disk-active-commit-inactive.x86_64-latest= .xml =3D> disk-active-commit.x86_64-latest.xml} (100%) delete mode 100644 tests/qemuxml2xmloutdata/disk-backing-chains-index-acti= ve.x86_64-latest.xml rename tests/qemuxml2xmloutdata/{disk-backing-chains-index-inactive.x86_64= -latest.xml =3D> disk-backing-chains-index.x86_64-latest.xml} (100%) delete mode 100644 tests/qemuxml2xmloutdata/disk-mirror-active.x86_64-late= st.xml delete mode 100644 tests/qemuxml2xmloutdata/disk-mirror-old-active.x86_64-= latest.xml rename tests/qemuxml2xmloutdata/{disk-mirror-old-inactive.x86_64-latest.xm= l =3D> disk-mirror-old.x86_64-latest.xml} (100%) rename tests/qemuxml2xmloutdata/{disk-mirror-inactive.x86_64-latest.xml = =3D> disk-mirror.x86_64-latest.xml} (100%) delete mode 100644 tests/qemuxml2xmloutdata/genid-active.x86_64-latest.xml delete mode 100644 tests/qemuxml2xmloutdata/genid-auto-active.x86_64-lates= t.xml rename tests/qemuxml2xmloutdata/{genid-auto-inactive.x86_64-latest.xml =3D= > genid-auto.x86_64-latest.xml} (100%) rename tests/qemuxml2xmloutdata/{genid-inactive.x86_64-latest.xml =3D> gen= id.x86_64-latest.xml} (100%) delete mode 100644 tests/qemuxml2xmloutdata/graphics-vnc-remove-generated-= socket-active.x86_64-latest.xml rename tests/qemuxml2xmloutdata/{graphics-vnc-remove-generated-socket-inac= tive.x86_64-latest.xml =3D> graphics-vnc-remove-generated-socket.x86_64-lat= est.xml} (100%) rename tests/qemuxml2xmloutdata/{seclabel-dynamic-baselabel-inactive.x86_6= 4-latest.xml =3D> seclabel-dynamic-baselabel.x86_64-latest.xml} (100%) rename tests/qemuxml2xmloutdata/{seclabel-dynamic-labelskip-inactive.x86_6= 4-latest.xml =3D> seclabel-dynamic-labelskip.x86_64-latest.xml} (100%) rename tests/qemuxml2xmloutdata/{seclabel-dynamic-none-relabel-inactive.x8= 6_64-latest.xml =3D> seclabel-dynamic-none-relabel.x86_64-latest.xml} (100%) rename tests/qemuxml2xmloutdata/{seclabel-dynamic-override-inactive.x86_64= -latest.xml =3D> seclabel-dynamic-override.x86_64-latest.xml} (100%) rename tests/qemuxml2xmloutdata/{seclabel-dynamic-relabel-inactive.x86_64-= latest.xml =3D> seclabel-dynamic-relabel.x86_64-latest.xml} (100%) delete mode 100644 tests/qemuxml2xmloutdata/seclabel-static-labelskip-acti= ve.x86_64-latest.xml rename tests/qemuxml2xmloutdata/{seclabel-static-labelskip-inactive.x86_64= -latest.xml =3D> seclabel-static-labelskip.x86_64-latest.xml} (100%) diff --git a/tests/qemuxml2xmloutdata/channel-unix-source-path-active.x86_6= 4-latest.xml b/tests/qemuxml2xmloutdata/channel-unix-source-path-active.x86= _64-latest.xml deleted file mode 100644 index 022ad7025a..0000000000 --- a/tests/qemuxml2xmloutdata/channel-unix-source-path-active.x86_64-lates= t.xml +++ /dev/null @@ -1,62 +0,0 @@ - - QEMUGuest1 - c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 - 1 - - hvm - - - - qemu64 - - - destroy - restart - destroy - - /usr/bin/qemu-system-x86_64 - -
- - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - -