From nobody Mon Feb 9 14:33: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=1621601325; cv=none; d=zohomail.com; s=zohoarc; b=KyfJ/+XO1GKQcxUvApLyBlxv88gneY3O2TMzuDB5DdjfaPFEx9ygyEaxc69fqWyap7+eceokEfn0rQ8uitoJKocEhDgX1duGuUx0APKuYuxuPIRRZZmOmBJuKjauqm7wXUShBbVNLsqgSPgWG/1ICS21TBwcw1/GsMBKK17eOko= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1621601325; 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=z917S2L/ygbAYRAasJFKfc1t4WauRVuVz62aef12AB4=; b=SGtHn+WAzAXCmAB60d9gxjzBH3b8+JyR+B++aKdJQIzqP8ro/PSUxoygkJAOn9nwxFMRWn66wjw/5xaAWZWYw7v/jVUDaQH/C7iYpqvRVXioE5L0d1Fh3x4d9FbHYoL8wlU849emGeeDT0DWiTeiti5IBLxNtyt334YQ11CIeio= 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) header.from= 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 1621601325385656.9460151509913; Fri, 21 May 2021 05:48:45 -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-568-CEq5mIBMPseHCxfCkIc31A-1; Fri, 21 May 2021 08:48:42 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2B698BBEFD; Fri, 21 May 2021 12:48:35 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E6F9D10027A5; Fri, 21 May 2021 12:48:34 +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 AC3CE18095C4; Fri, 21 May 2021 12:48:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 14LCmWbL031689 for ; Fri, 21 May 2021 08:48:32 -0400 Received: by smtp.corp.redhat.com (Postfix) id F3D765945B; Fri, 21 May 2021 12:48:31 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5A035421F for ; Fri, 21 May 2021 12:48:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621601324; 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=z917S2L/ygbAYRAasJFKfc1t4WauRVuVz62aef12AB4=; b=LMfwbq/MKuDABWaXcmw638XtB+sUpFdRir0mVi/QNF1rHFsSP+FSoVE6ONRw9LeV7g/CIA YF9StME0AsSJnom+XrWs3INPEYeFEzkcLKdPUO0ei4XMiMn70WR53hEkLA+iuC8mIqKwUh BB5xbedUezP5BXI/Q339xjqeKTwp8es= X-MC-Unique: CEq5mIBMPseHCxfCkIc31A-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 35/35] tests: Add qemuxml2argv and qemuxml2xml test for Date: Fri, 21 May 2021 14:47:35 +0200 Message-Id: <1f980efd46192531128e0bc8a892654480489cf3.1621601161.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com 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.84 on 10.5.11.22 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-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- .../disk-transient.x86_64-4.1.0.err | 2 +- .../disk-transient.x86_64-latest.args | 4 +- tests/qemuxml2argvdata/disk-transient.xml | 6 +++ .../disk-transient.x86_64-latest.xml | 48 +++++++++++++++++++ tests/qemuxml2xmltest.c | 1 + 5 files changed, 58 insertions(+), 3 deletions(-) create mode 100644 tests/qemuxml2xmloutdata/disk-transient.x86_64-latest.x= ml diff --git a/tests/qemuxml2argvdata/disk-transient.x86_64-4.1.0.err b/tests= /qemuxml2argvdata/disk-transient.x86_64-4.1.0.err index eb5af4762d..493da051e3 100644 --- a/tests/qemuxml2argvdata/disk-transient.x86_64-4.1.0.err +++ b/tests/qemuxml2argvdata/disk-transient.x86_64-4.1.0.err @@ -1 +1 @@ -unsupported configuration: transient disk not supported by this QEMU binar= y (hda) +unsupported configuration: transient disk not supported by this QEMU binar= y (vda) diff --git a/tests/qemuxml2argvdata/disk-transient.x86_64-latest.args b/tes= ts/qemuxml2argvdata/disk-transient.x86_64-latest.args index 41f6400891..18f16c3489 100644 --- a/tests/qemuxml2argvdata/disk-transient.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-transient.x86_64-latest.args @@ -29,8 +29,8 @@ XDG_CONFIG_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.config \ -device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.0x2 \ -blockdev '{"driver":"file","filename":"/tmp/QEMUGuest1.img","node-name":"= libvirt-1-storage","cache":{"direct":true,"no-flush":false},"auto-read-only= ":true,"discard":"unmap"}' \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"cache":{"dir= ect":true,"no-flush":false},"driver":"qcow2","file":"libvirt-1-storage"}' \ --device ide-hd,bus=3Dide.0,unit=3D0,drive=3Dlibvirt-1-format,id=3Dide0-0-0= ,bootindex=3D1,write-cache=3Don \ +-device ide-hd,bus=3Dide.0,unit=3D0,drive=3Dlibvirt-1-format,id=3Dide0-0-0= ,write-cache=3Don \ -audiodev id=3Daudio1,driver=3Dnone \ --device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x2 \ +-device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x3 \ -sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,resource= control=3Ddeny \ -msg timestamp=3Don diff --git a/tests/qemuxml2argvdata/disk-transient.xml b/tests/qemuxml2argv= data/disk-transient.xml index cffb325336..49613a88b2 100644 --- a/tests/qemuxml2argvdata/disk-transient.xml +++ b/tests/qemuxml2argvdata/disk-transient.xml @@ -14,6 +14,12 @@ destroy /usr/bin/qemu-system-i386 + + + + + + diff --git a/tests/qemuxml2xmloutdata/disk-transient.x86_64-latest.xml b/te= sts/qemuxml2xmloutdata/disk-transient.x86_64-latest.xml new file mode 100644 index 0000000000..988706002d --- /dev/null +++ b/tests/qemuxml2xmloutdata/disk-transient.x86_64-latest.xml @@ -0,0 +1,48 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219100 + 219100 + 1 + + hvm + + + + qemu64 + + + destroy + restart + destroy + + /usr/bin/qemu-system-i386 + + + + + +
+ + + + + + +
+ + +
+ + +
+ + + + +