From nobody Mon Feb 9 09:08:45 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=1688478064; cv=none; d=zohomail.com; s=zohoarc; b=OMmCZoPw7PKxBz+lmM/Lwox2iDPDDKMD+JUNp2UN/48g/e6701KJr12bD1ix7sIRHIkDL1jJZJngYw7ZNbA7rO1qzdMHC9UnbIOarhKVqPWYt2rQkxQsYPDlIPW+pQW9nPv5RmlZh/QxKAp43VzMICJlpOCIQ15l2IDVFd5G4I0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688478064; 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=e2tPae0m6hS3bAMt2tYK2ipDybBL8ycnDBdDgPOCg3c=; b=RhVw/Uzer80F8b/DZElgG7wzVQrzt3Q1gPEwcsQtNMg4g+MfA1fIMdubl7drNxFgCsXyWXrqCySIYYO7Mun5kHoC4LbpfwIgOlA1gW9DPcb2zPrJPY3H+Y3mao4v0efhFtt9QDjTl0peA9kV4qgFsO4PiZO9gUZv56+4Ip3QL3k= 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 1688478064299985.8865929323713; Tue, 4 Jul 2023 06:41:04 -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-582-CWSm_ba7NeiWcL5slBWcDg-1; Tue, 04 Jul 2023 09:40:32 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8847788D4E7; Tue, 4 Jul 2023 13:40:28 +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 5DB31492CAC; Tue, 4 Jul 2023 13:40:28 +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 4679419465BB; Tue, 4 Jul 2023 13:40:28 +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 AD8121946588 for ; Tue, 4 Jul 2023 13:40:27 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 9CBF64021522; Tue, 4 Jul 2023 13:40:27 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id 272D64021523 for ; Tue, 4 Jul 2023 13:40:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688478063; 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=e2tPae0m6hS3bAMt2tYK2ipDybBL8ycnDBdDgPOCg3c=; b=CGnQOKcjMJlRleLXzQli9HUnFwZgAdjr8Qj7HQi5XFt30rjO2WabG5xWy1/DSEciALxEmg Wp2iCKbGoJvZUrT24Wmx0pvcebwILnhiUeyALzoZpZ0DgtXgpT9Gin8Gp3pkNPQBCjKcXk XcqihyaINc01tRFE++60ZA+uQOExO9o= X-MC-Unique: CWSm_ba7NeiWcL5slBWcDg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 08/10] qemuagenttest: Use real x86_64 capabilities for parsing domain definitions Date: Tue, 4 Jul 2023 15:40:17 +0200 Message-ID: <33b78bfbcc37e8696aec4aad3f9ae98b24bf4957.1688477951.git.pkrempa@redhat.com> 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.9 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: 1688478064679100001 Content-Type: text/plain; charset="utf-8" Some test cases require a real definition and thus parse a XML with the definition to obtain it. Convert the code to use real capabilities and switch to x86_64. Signed-off-by: Peter Krempa --- tests/qemuagentdata/fsinfo.xml | 4 ++-- tests/qemuagenttest.c | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/qemuagentdata/fsinfo.xml b/tests/qemuagentdata/fsinfo.xml index 233968fc29..914c2828c6 100644 --- a/tests/qemuagentdata/fsinfo.xml +++ b/tests/qemuagentdata/fsinfo.xml @@ -5,7 +5,7 @@ 219136 1 - hvm + hvm @@ -13,7 +13,7 @@ restart destroy - /usr/bin/qemu-system-i386 + /usr/bin/qemu-system-x86_64 diff --git a/tests/qemuagenttest.c b/tests/qemuagenttest.c index 3c24a3139f..3287880241 100644 --- a/tests/qemuagenttest.c +++ b/tests/qemuagenttest.c @@ -1359,11 +1359,19 @@ testQemuAgentTimezone(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; + /* Some test cases need a real definition thus parse a XML. We need + * qemu capabilities for that. */ + if (testQemuInsertRealCaps(driver.qemuCapsCache, "x86_64", "latest", "= ", + capslatest, capscache, NULL, NULL) < 0) + return EXIT_FAILURE; + virEventRegisterDefaultImpl(); #define DO_TEST(name) \ --=20 2.41.0