From nobody Tue Feb 10 05:09:51 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; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com 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 1629370248363750.7455993504097; Thu, 19 Aug 2021 03:50:48 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-392-sEO02JTwNQuzfa_240VFWg-1; Thu, 19 Aug 2021 06:50:45 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8C979107ACF5; Thu, 19 Aug 2021 10:50:39 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3FE7B60C04; Thu, 19 Aug 2021 10:50:39 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 0A93D4A708; Thu, 19 Aug 2021 10:50:39 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 17JAoVKI032407 for ; Thu, 19 Aug 2021 06:50:31 -0400 Received: by smtp.corp.redhat.com (Postfix) id ACBBDFC733; Thu, 19 Aug 2021 10:50:31 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A7F63F9AAD for ; Thu, 19 Aug 2021 10:50:31 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 90F1F89C7DD for ; Thu, 19 Aug 2021 10:50:31 +0000 (UTC) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-376-Uqsp37ZUMm-Q1AuB2PN5Tg-1; Thu, 19 Aug 2021 06:50:29 -0400 Received: by mail-pf1-f171.google.com with SMTP id t42so2524184pfg.12 for ; Thu, 19 Aug 2021 03:50:28 -0700 (PDT) Received: from anisinha-lenovo.ba.nuagenetworks.net ([203.163.234.32]) by smtp.googlemail.com with ESMTPSA id t19sm3116552pfg.216.2021.08.19.03.50.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 03:50:27 -0700 (PDT) X-MC-Unique: sEO02JTwNQuzfa_240VFWg-1 X-MC-Unique: Uqsp37ZUMm-Q1AuB2PN5Tg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Zd2ANNFdypMsL2STB6OOTm3HHBDl1YLFktCBW5sVFas=; b=uVLJNMdPCAOtU5TRi3APR2dLtTMoiGTgtS7lWh91gzqPoLH4x11d7G5BfeG4ruz9BT ZA/4mMB3AE1WpA2u5DPNlrO+pFe0CDz/0ifM6Br9gciXkCVROE7r0i9D1igdqhiZ2Qq3 1yCSS3b3oRAgRpr9cXJhpqkqCycPBrc8D82Qr6ZHVTDls1kA5gzAUhtFo83moWJ1VnAZ VSXcjDshO28VJjH3bdR2GRjGWgFVkQ3MRNQq4cR0YZeW1OXmjEscmIPtj/xjCWrtUuGj dVeyw7kXaYl2Io01WGqMBhELnF+4TNXU+WbDvjs6vgqXbNFKA1Z3vrjt+r4Qf7OlrrTL z+cw== X-Gm-Message-State: AOAM532zjfVLb+0ylbf2iJpheWt/ACUCOAJwLhgoIbINNDZRipEYY0Kc 0WH8rK80svc0EkpgQ8Zbcr6bRgcq0aeJ1Q== X-Google-Smtp-Source: ABdhPJwSa6UgzVU8Bc4BKUfiUSBBNBMPRC6J1vHuDxC3GlDRSjdCXImXOcZYNqPUWqnO9SrrheE6TQ== X-Received: by 2002:a65:6883:: with SMTP id e3mr13522899pgt.90.1629370227608; Thu, 19 Aug 2021 03:50:27 -0700 (PDT) From: Ani Sinha To: libvir-list@redhat.com Subject: [PATCH v2 4/4] tests: add xml2xml tests to exercize pm acpi hotplug options for i386 Date: Thu, 19 Aug 2021 16:20:04 +0530 Message-Id: <20210819105004.275239-5-ani@anisinha.ca> In-Reply-To: <20210819105004.275239-1-ani@anisinha.ca> References: <20210819105004.275239-1-ani@anisinha.ca> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com Cc: Ani Sinha X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1629370372956100001 Content-Type: text/plain; charset="utf-8" This change adds xml2xml unit tests for the following change: 78ced83e3bb354 ("pm/i386: add support for two options that controls acpi ho= tplug on q35/i440fx") This unit test ensures that libvirt generates the correct output xml with p= roper pm acpi hotplug options for a given input xml. Signed-off-by: Ani Sinha --- .../pc-i440fx-acpi-hotplug-bridge-disable.xml | 31 +++++++++++++ .../pc-i440fx-acpi-root-hotplug-disable.xml | 31 +++++++++++++ .../q35-acpi-hotplug-bridge-disable.xml | 45 +++++++++++++++++++ tests/qemuxml2xmltest.c | 9 ++++ 4 files changed, 116 insertions(+) create mode 100644 tests/qemuxml2xmloutdata/pc-i440fx-acpi-hotplug-bridge-= disable.xml create mode 100644 tests/qemuxml2xmloutdata/pc-i440fx-acpi-root-hotplug-di= sable.xml create mode 100644 tests/qemuxml2xmloutdata/q35-acpi-hotplug-bridge-disabl= e.xml changelog: v1: not present. v2: added this new test. diff --git a/tests/qemuxml2xmloutdata/pc-i440fx-acpi-hotplug-bridge-disable= .xml b/tests/qemuxml2xmloutdata/pc-i440fx-acpi-hotplug-bridge-disable.xml new file mode 100644 index 0000000000..2534dc7e35 --- /dev/null +++ b/tests/qemuxml2xmloutdata/pc-i440fx-acpi-hotplug-bridge-disable.xml @@ -0,0 +1,31 @@ + + i440fx + 56f5055c-1b8d-490c-844a-ad646a1caaaa + 1048576 + 1048576 + 1 + + hvm + + + + destroy + restart + destroy + + + + + /usr/bin/qemu-system-x86_64 + +
+ + + + +