From nobody Mon Feb 9 13:58:57 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1688478035; cv=none; d=zohomail.com; s=zohoarc; b=lbwO3GjKC7yfGgK9BPXRDnrJIGV7MAPSW76wz5I1OYfq8+LhCmgV8sE9QK3HlOElbPYptaJB4JJeWPtfvXP45ggm8pjlte9pK6J1OYKcz4n4r7TWlCJBneMtg4Ut8gZkrHHsjVBzZhV5Q0tZXKUiU7Xyuj3+0XY6ma1g2AY9BdU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688478035; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=s/iv/7mMn0It0l/egFVfOscVoIQb4XraajfgsQCe3/8=; b=fo7tIUardhSX9G8ck4+pavdRo4fMScQSwcUQx/dQWBZ4pcGQdBOu9HvujDFfITem6cDnuPQZxdBKtBYuGVW+K2Zrew5w74ISeUyO74VyhwpuTU+Y32vUX88ad0oA23wkmRy7+SNSJdL7EJsAFwx4wTqOSoN5HMD/m+dAAshsxjM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1688478035660895.095826164103; Tue, 4 Jul 2023 06:40:35 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-571-_V4sUrbwMEq4Z6EnUasnhw-1; Tue, 04 Jul 2023 09:40:33 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 78FC31064AF7; Tue, 4 Jul 2023 13:40:29 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 65E2B492C13; Tue, 4 Jul 2023 13:40:29 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 553A519465B2; Tue, 4 Jul 2023 13:40:29 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7358C19465A2 for ; Tue, 4 Jul 2023 13:40:28 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 64602402152F; Tue, 4 Jul 2023 13:40:28 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id E4ED74021522 for ; Tue, 4 Jul 2023 13:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688478034; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=s/iv/7mMn0It0l/egFVfOscVoIQb4XraajfgsQCe3/8=; b=AwEQXAn07A/kbgmLs0rIMI3WPY8CA5CTkW+cXN08spKAdbzlByb2unW4mF7/Qs7rLorGCW Qr6ua+uCwc/F0ItHr+XcRgnayFJy4zKTa+Jh6c2+txa3Ym7OcbG3CAVJ5X5aLeGnQ0ckcA nhFrXjV4ZH28QqLqtgEpB7PRNMGmN7A= X-MC-Unique: _V4sUrbwMEq4Z6EnUasnhw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 09/10] qemudomaincheckpointxml2xmltest: Use real 'x86_64' capabilities in all test data Date: Tue, 4 Jul 2023 15:40:18 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1688478036592100007 Content-Type: text/plain; charset="utf-8" Use the platform which is getting most development for the checkpoint XML examples so that it's tested against latest capabilities. Signed-off-by: Peter Krempa --- .../internal-active-invalid.xml | 4 ++-- .../internal-inactive-invalid.xml | 4 ++-- tests/qemudomaincheckpointxml2xmlout/redefine.xml | 9 ++++++--- tests/qemudomaincheckpointxml2xmltest.c | 6 ++++++ 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/tests/qemudomaincheckpointxml2xmlout/internal-active-invalid.x= ml b/tests/qemudomaincheckpointxml2xmlout/internal-active-invalid.xml index 2b6d8298c2..a31bf14500 100644 --- a/tests/qemudomaincheckpointxml2xmlout/internal-active-invalid.xml +++ b/tests/qemudomaincheckpointxml2xmlout/internal-active-invalid.xml @@ -16,7 +16,7 @@ 219136 1 - hvm + hvm @@ -24,7 +24,7 @@ restart destroy - /usr/bin/qemu-system-i386 + /usr/bin/qemu-system-x86_64 diff --git a/tests/qemudomaincheckpointxml2xmlout/internal-inactive-invalid= .xml b/tests/qemudomaincheckpointxml2xmlout/internal-inactive-invalid.xml index 427df0b4cf..ec51bc02ce 100644 --- a/tests/qemudomaincheckpointxml2xmlout/internal-inactive-invalid.xml +++ b/tests/qemudomaincheckpointxml2xmlout/internal-inactive-invalid.xml @@ -16,7 +16,7 @@ 219136 1 - hvm + hvm @@ -24,7 +24,7 @@ restart destroy - /usr/bin/qemu-system-i386 + /usr/bin/qemu-system-x86_64 diff --git a/tests/qemudomaincheckpointxml2xmlout/redefine.xml b/tests/qemu= domaincheckpointxml2xmlout/redefine.xml index b7c9d9dc6c..6b60b267fc 100644 --- a/tests/qemudomaincheckpointxml2xmlout/redefine.xml +++ b/tests/qemudomaincheckpointxml2xmlout/redefine.xml @@ -14,15 +14,18 @@ 219136 1 - hvm + hvm + + qemu64 + destroy restart destroy - /usr/bin/qemu-system-i386 + /usr/bin/qemu-system-x86_64 @@ -48,7 +51,7 @@
- +
diff --git a/tests/qemudomaincheckpointxml2xmltest.c b/tests/qemudomainchec= kpointxml2xmltest.c index d49dcd9143..0e195dae8d 100644 --- a/tests/qemudomaincheckpointxml2xmltest.c +++ b/tests/qemudomaincheckpointxml2xmltest.c @@ -131,11 +131,17 @@ testCompareXMLToXMLHelper(const void *data) static int mymain(void) { + g_autoptr(GHashTable) capslatest =3D testQemuGetLatestCaps(); + g_autoptr(GHashTable) capscache =3D virHashNew(virObjectUnref); int ret =3D 0; if (qemuTestDriverInit(&driver) < 0) return EXIT_FAILURE; + if (testQemuInsertRealCaps(driver.qemuCapsCache, "x86_64", "latest", "= ", + capslatest, capscache, NULL, NULL) < 0) + return EXIT_FAILURE; + virDomainXMLOptionSetMomentPostParse(driver.xmlopt, testCheckpointPostParse); --=20 2.41.0