From nobody Mon Feb 9 17:57:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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=1691686286; cv=none; d=zohomail.com; s=zohoarc; b=NRvAbbZ8aWMpHeSct91aoLV+nntpGLyrAdBkFtuEEULkUe80i/00wD4yNImpfQlIQHweZXlKo45i+vm+9Ko+nXeRPsyxLy6PhhuwiU1wYatQJd7BZ5eFFTlP38B6ZnHlWX8kmkOan4YQy0ilFPDyMIANvNYZdnunENYC5s7/gjE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1691686286; 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=dxFCWepxS6ldR80zhra+pocqDjodSKyykhc9itDq8Fw=; b=cL/9coYkLdgeKB5YRqVRaFVgEKFqcWOErD9V3S7BRhTsvbBbFUXScHB9Yf5nZCqHrc2da4ii4zBTXeTPnu+sWZVtaH8QzOBboSwHkIMTGFwoA023nShtS+KoFcwWpvs0DSdfx1yjKVLB/WfgSIYY72Eqb4B5A+V1/r91fchq0TU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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.133.124]) by mx.zohomail.com with SMTPS id 1691686286625975.0382308689963; Thu, 10 Aug 2023 09:51:26 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-452-EZjPza_nNuiGxf9sDW2NrA-1; Thu, 10 Aug 2023 12:51:21 -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 C05583815F01; Thu, 10 Aug 2023 16:51:18 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id A7F34492B10; Thu, 10 Aug 2023 16:51:18 +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 DBA1719451C6; Thu, 10 Aug 2023 16:51:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id F1D4B19465A3 for ; Thu, 10 Aug 2023 16:50:56 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id ED981140E974; Thu, 10 Aug 2023 16:50:56 +0000 (UTC) Received: from harajuku.usersys.redhat.com.homenet.telecomitalia.it (unknown [10.45.224.46]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 79985140E96E for ; Thu, 10 Aug 2023 16:50:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691686285; 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=dxFCWepxS6ldR80zhra+pocqDjodSKyykhc9itDq8Fw=; b=Rx9j5YMbdtQPuGEPnNMCRtPfaLSrzjbbbNJCJuDbMehwBXpaW60GD0OczscZQBHRDuCFYf hfCjjGkW4OxZG8xMsMvqVjVQhFUQg5/QeThGVjRsSEgwz9flkiGwrdxJ5scRE56cyuL554 iiYI6WnYzvMJw1095SdJ8XtXs3dg7NY= X-MC-Unique: EZjPza_nNuiGxf9sDW2NrA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 20/21] tests: Reintroduce firmware-auto-efi-format-mismatch Date: Thu, 10 Aug 2023 18:50:37 +0200 Message-ID: <20230810165038.169700-21-abologna@redhat.com> In-Reply-To: <20230810165038.169700-1-abologna@redhat.com> References: <20230810165038.169700-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 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: 1691686287178100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Since the previous version of this negative test now passes, create a new version that still triggers the intended failure. Signed-off-by: Andrea Bolognani --- ...auto-efi-format-mismatch.x86_64-latest.err | 1 + .../firmware-auto-efi-format-mismatch.xml | 19 +++++++++++++++++++ tests/qemuxml2argvtest.c | 1 + 3 files changed, 21 insertions(+) create mode 100644 tests/qemuxml2argvdata/firmware-auto-efi-format-mismatc= h.x86_64-latest.err create mode 100644 tests/qemuxml2argvdata/firmware-auto-efi-format-mismatc= h.xml diff --git a/tests/qemuxml2argvdata/firmware-auto-efi-format-mismatch.x86_6= 4-latest.err b/tests/qemuxml2argvdata/firmware-auto-efi-format-mismatch.x86= _64-latest.err new file mode 100644 index 0000000000..abfdfc4357 --- /dev/null +++ b/tests/qemuxml2argvdata/firmware-auto-efi-format-mismatch.x86_64-lates= t.err @@ -0,0 +1 @@ +XML error: Format mismatch: loader.format=3D'qcow2' nvram.format=3D'raw' diff --git a/tests/qemuxml2argvdata/firmware-auto-efi-format-mismatch.xml b= /tests/qemuxml2argvdata/firmware-auto-efi-format-mismatch.xml new file mode 100644 index 0000000000..4af77c3bee --- /dev/null +++ b/tests/qemuxml2argvdata/firmware-auto-efi-format-mismatch.xml @@ -0,0 +1,19 @@ + + guest + 63840878-0deb-4095-97e6-fc444d9bc9fa + 1048576 + 1 + + hvm + + + + + + + + /usr/bin/qemu-system-x86_64 + + + + diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index cb2c5af737..0c4d4d8b07 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -1116,6 +1116,7 @@ mymain(void) DO_TEST_CAPS_LATEST("firmware-auto-efi-format-nvram-qcow2-network-nbd"= ); DO_TEST_CAPS_ARCH_LATEST("firmware-auto-efi-format-loader-raw", "aarch= 64"); DO_TEST_CAPS_ARCH_LATEST_ABI_UPDATE("firmware-auto-efi-format-loader-r= aw-abi-update", "aarch64"); + DO_TEST_CAPS_LATEST_PARSE_ERROR("firmware-auto-efi-format-mismatch"); =20 DO_TEST_NOCAPS("clock-utc"); DO_TEST_NOCAPS("clock-localtime"); --=20 2.41.0