From nobody Mon Feb 9 02:13:13 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1559132716; cv=none; d=zoho.com; s=zohoarc; b=nfDb+AbtQMQhU7MyW+ho9Kfd2sDzrLnxy55ygz/nRiH4HMTbZrrod7LFLpcM/v4aYibOGZwDCuTvHs3INt5TMM8NmoNzv/VH3DRD5PPq/L4sY0udd5kWE6owXndBZa4OKhtAf9bmCTq60BZGaBRcMA6fHR8eKKPIYsIfMBPRxDA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559132716; 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:ARC-Authentication-Results; bh=qoqBknpGXNkF0GvfWs/S/CpzwPNJ8WLEiwJmAhItpO8=; b=dCmwp02psfvrs/fgGLM0c83YFgchfY9aEJSBqYks8mO4+Rdzyolp1aEtyTyLK7KNOXPGWYFo/WqauMX/O+gvAcp4jVp/5/8wzD8nMpV1r8dWR9fhh2YTX+7Y4ATU0t84ipAo3IoLzPq9Y8X4LXw6iZ+6sQsViNo7AXGZf/ugDAw= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 15591327169328.375853892838904; Wed, 29 May 2019 05:25:16 -0700 (PDT) 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 mx1.redhat.com (Postfix) with ESMTPS id B4F262ED2C3; Wed, 29 May 2019 12:25:04 +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 2D62C1001E86; Wed, 29 May 2019 12:25:03 +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 CFA3E1806B16; Wed, 29 May 2019 12:25:00 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4TCOxur025751 for ; Wed, 29 May 2019 08:24:59 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8A91C4DA; Wed, 29 May 2019 12:24:59 +0000 (UTC) Received: from mx1.redhat.com (ext-mx12.extmail.prod.ext.phx2.redhat.com [10.5.110.41]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4FA7D5C1B5; Wed, 29 May 2019 12:24:57 +0000 (UTC) Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DEEDB3179B46; Wed, 29 May 2019 12:24:45 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id f37so3435173edb.13; Wed, 29 May 2019 05:24:45 -0700 (PDT) Received: from archpc.localdomain (x8d1ee222.agdsn.tu-dresden.de. [141.30.226.34]) by smtp.gmail.com with ESMTPSA id p37sm5214857edc.14.2019.05.29.05.24.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 05:24:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=lCgTiqKSpAnCns0INatTJVYSiu0l3SD+eleebXXCqTQ=; b=sDt8UuRY097XIeNP9/GiJqvTKxBHfGvlBDciFEMLYAlARecyBd4AqTXW3qJ9ZuMfio YOJnL0ZtRv4a7M2PpdCDTlnie8RNNG/lzx1gI0roPYoqsgyCDG3GSHa490+XulCmXiRv yo2rloOWyXRbrNUeh7uPkl5+maXxUzUT0rcydX/nfX73jKIQLUGNpWUI+TTnOvSserIU oD3Cm8VTQPgri9EefmBbngxJZpgVgIVlxy7CBBuwQRBsqdvLcnUxR4V/eCQZiqiAUjGp e4PpuIp/B69ZfKzIBT1Rrg9mJBAgAugwnwHAujH3x9it9e2LhJbNGaxV003TxcBlN5c7 tIiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lCgTiqKSpAnCns0INatTJVYSiu0l3SD+eleebXXCqTQ=; b=c+7lN+dTQgVHXoRzvI05zbiaDzWaBB5k9xDLf32/PqkXsyz1O311HkGqxlvNcJ+XJN tvRujOuhyrwQbzIRjS+cewlUi/g+7xqaZAazwSGiuSOcAxe+EsBRqih5JCWKjwTj0BWo B34khLUp61HqPBA/u1bmOWiOW6EV6adwdI7h93XdiL8K7Zrdzbl7VgXXjOx/2NSj5FMi ZEociGZdgs2DpdT2XR4q6zsrtnjgHXsbf3arjuXSTbJI8vKmArYdNguZNVoXCCeoiInL Ku/l7I8kRv+CmamXW4Iy0FuTxgR9KwnT9NlQOsW1NnidvuILu2zITErLkWyipGsDGYR0 xrXg== X-Gm-Message-State: APjAAAUJn6kd8jPUvIjL/WIzQOrUgOjU0igRyO+uxlUP/ycxLC+lCzr1 LVx/IFGpymsGT2voPqN0fsSo5Rql X-Google-Smtp-Source: APXvYqxAVc8lurVZ1CuiNqT+61pGS45AAyHHvoa/R00JembsXinIC5rTNuediGl9uWSHwmWpChDKJQ== X-Received: by 2002:a05:6402:1610:: with SMTP id f16mr136323305edv.171.1559132679277; Wed, 29 May 2019 05:24:39 -0700 (PDT) From: Ilias Stamatis To: libvir-list@redhat.com Date: Wed, 29 May 2019 14:22:59 +0200 Message-Id: <20190529122259.14979-5-stamatis.iliass@gmail.com> In-Reply-To: <20190529122259.14979-1-stamatis.iliass@gmail.com> References: <20190529122259.14979-1-stamatis.iliass@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Wed, 29 May 2019 12:24:46 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Wed, 29 May 2019 12:24:46 +0000 (UTC) for IP:'209.85.208.66' DOMAIN:'mail-ed1-f66.google.com' HELO:'mail-ed1-f66.google.com' FROM:'stamatis.iliass@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.109 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS) 209.85.208.66 mail-ed1-f66.google.com 209.85.208.66 mail-ed1-f66.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.41 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 4/4] test_driver: implement virDomainSaveImageGetXMLDesc 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 29 May 2019 12:25:10 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Ilias Stamatis Reviewed-by: Erik Skultety --- src/test/test_driver.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index b0195ac63d..719e956d99 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -2255,6 +2255,29 @@ testDomainSaveImageDefineXML(virConnectPtr conn, return ret; } +static char * +testDomainSaveImageGetXMLDesc(virConnectPtr conn, + const char *path, + unsigned int flags) +{ + int fd =3D -1; + char *ret =3D NULL; + virDomainDefPtr def =3D NULL; + testDriverPtr privconn =3D conn->privateData; + + virCheckFlags(VIR_DOMAIN_SAVE_IMAGE_XML_SECURE, NULL); + + if ((fd =3D testDomainSaveImageOpen(privconn, path, &def)) < 0) + goto cleanup; + + ret =3D virDomainDefFormat(def, privconn->caps, VIR_DOMAIN_DEF_FORMAT_= SECURE); + + cleanup: + virDomainDefFree(def); + VIR_FORCE_CLOSE(fd); + return ret; +} + static int testDomainCoreDumpWithFormat(virDomainPtr domain, const char *to, unsigned int dumpformat, @@ -7038,6 +7061,7 @@ static virHypervisorDriver testHypervisorDriver =3D { .domainRestore =3D testDomainRestore, /* 0.3.2 */ .domainRestoreFlags =3D testDomainRestoreFlags, /* 0.9.4 */ .domainSaveImageDefineXML =3D testDomainSaveImageDefineXML, /* 5.4.0 */ + .domainSaveImageGetXMLDesc =3D testDomainSaveImageGetXMLDesc, /* 5.4.0= */ .domainCoreDump =3D testDomainCoreDump, /* 0.3.2 */ .domainCoreDumpWithFormat =3D testDomainCoreDumpWithFormat, /* 1.2.3 */ .domainSetVcpus =3D testDomainSetVcpus, /* 0.1.4 */ -- 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list