From nobody Mon Sep 16 19:40:18 2024 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=1679081294; cv=none; d=zohomail.com; s=zohoarc; b=FfUDBLU8KUAuw1gdQGrdvcHBJeDkyg30G3LZAhMZHjAHGcSsObwHOdtgeAXN1FQxVttmFUbA2iAc+CPp0475ILIK3TyfJ4cSidRWIKXHY8ZYHWOnd8u44YpLxmphbQk2h02x/STWzhrg+usnDVzLwsP9Z6mqaJWEQklbIx31GTQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1679081294; 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=oqu1Z/gG5XPXyS0FILkzsgbP2rObSTmC3EeGJFChAdM=; b=DXLzmH7e+DO/msvSLPsR6RbFmzcHhWbM61ApemQDmLgtNziVg58mOPSUlGuLx0iI0Y8AUjaHZHs5q67JKMBL2dmEzI+PlTGQQI0iqE703j8Vx/9YK3V3Y6rlUFwlbNwgrwwEe1N6bLV3UFt/x0w/JJtLQM2IAJtvFXtx/E0k2Jg= 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 1679081294413751.5857199004818; Fri, 17 Mar 2023 12:28:14 -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-203-m7Rdsl2PMcGU3mb_aj3eeg-1; Fri, 17 Mar 2023 15:28:10 -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 C55CE88B7B7; Fri, 17 Mar 2023 19:27:58 +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 B0D80492B02; Fri, 17 Mar 2023 19:27:58 +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 8CE781946A4A; Fri, 17 Mar 2023 19:27:58 +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 9C1091946A72 for ; Fri, 17 Mar 2023 19:27:51 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 7FA4740C6E68; Fri, 17 Mar 2023 19:27:51 +0000 (UTC) Received: from harajuku.usersys.redhat.com.homenet.telecomitalia.it (unknown [10.45.226.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1391D40C6E67 for ; Fri, 17 Mar 2023 19:27:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679081293; 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=oqu1Z/gG5XPXyS0FILkzsgbP2rObSTmC3EeGJFChAdM=; b=RwjjncAe33dZ4H1go4y1XDJhqmfrlT1FGW6gOJldQNJW/XYBas6RJdw4Fz56CBlqS2tbXZ yZquKAgFsDnUoh2glqXRf6JTFKAWIYrduWreTxnv8tA448Um6ssgE1EtTr4usSKUXQofTE E7U0relMHcGb6Rs99xHtm0RM1WK65NY= X-MC-Unique: m7Rdsl2PMcGU3mb_aj3eeg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 03/15] tests: Add firmware-auto-efi-loader-path Date: Fri, 17 Mar 2023 20:27:35 +0100 Message-Id: <20230317192747.1311223-4-abologna@redhat.com> In-Reply-To: <20230317192747.1311223-1-abologna@redhat.com> References: <20230317192747.1311223-1-abologna@redhat.com> 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: 1679081294737100004 Content-Type: text/plain; charset="utf-8"; x-default="true" This is identical to the existing firmware-auto-efi-loader-path-nonstandard test case, but uses a standard firmware path. Right now the two test cases behave identically, but that's going to change in the future. Signed-off-by: Andrea Bolognani --- ...ware-auto-efi-loader-path.x86_64-latest.err | 1 + .../firmware-auto-efi-loader-path.xml | 18 ++++++++++++++++++ tests/qemuxml2argvtest.c | 1 + 3 files changed, 20 insertions(+) create mode 100644 tests/qemuxml2argvdata/firmware-auto-efi-loader-path.x8= 6_64-latest.err create mode 100644 tests/qemuxml2argvdata/firmware-auto-efi-loader-path.xml diff --git a/tests/qemuxml2argvdata/firmware-auto-efi-loader-path.x86_64-la= test.err b/tests/qemuxml2argvdata/firmware-auto-efi-loader-path.x86_64-late= st.err new file mode 100644 index 0000000000..3f90a88791 --- /dev/null +++ b/tests/qemuxml2argvdata/firmware-auto-efi-loader-path.x86_64-latest.err @@ -0,0 +1 @@ +loader attribute 'readonly' cannot be specified when firmware autoselectio= n is enabled diff --git a/tests/qemuxml2argvdata/firmware-auto-efi-loader-path.xml b/tes= ts/qemuxml2argvdata/firmware-auto-efi-loader-path.xml new file mode 100644 index 0000000000..3e0af7ee4d --- /dev/null +++ b/tests/qemuxml2argvdata/firmware-auto-efi-loader-path.xml @@ -0,0 +1,18 @@ + + guest + 63840878-0deb-4095-97e6-fc444d9bc9fa + 1048576 + 1 + + hvm + /usr/share/OVMF/OVMF_CODE.fd<= /loader> + + + + + + /usr/bin/qemu-system-x86_64 + + + + diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 9a2950f8ad..3175f59c48 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -1116,6 +1116,7 @@ mymain(void) DO_TEST_CAPS_LATEST("firmware-auto-efi-nvram"); DO_TEST_CAPS_LATEST("firmware-auto-efi-loader-secure"); DO_TEST_CAPS_LATEST_PARSE_ERROR("firmware-auto-efi-loader-insecure"); + DO_TEST_CAPS_LATEST_PARSE_ERROR("firmware-auto-efi-loader-path"); DO_TEST_CAPS_LATEST_PARSE_ERROR("firmware-auto-efi-loader-path-nonstan= dard"); DO_TEST_CAPS_LATEST("firmware-auto-efi-secboot"); DO_TEST_CAPS_LATEST("firmware-auto-efi-no-secboot"); --=20 2.39.2