From nobody Mon Apr 29 21:21:19 2024 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=1564995784; cv=none; d=zoho.com; s=zohoarc; b=YB7I/rjGMNUivmJBewnBpWNDiUmNfuBkaqyvXnroHlIs6tkKre2urKNYkMQnahBnocHLR4YsySGgXTxcLVenOOXPWNh5i4gviq1taHj0QuBQ2I7Yd0aPyRd+R2kL6GlM16tP4rN+l36pjaEAj8YptQerhewEtuqNA3hWI897A/U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564995784; 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=O8EmChwAl7jLDcoLb4pgJCK1Pr5zdmHuCpOwmXnE2Xg=; b=Oz31iv4t4SFClmzKfAdEIro12ZnCCM5APHmJg/1uwPPsPr6kHf5u5xchfZ9IoFERDkpvcKl1oj4rRTEjxCDfKaSs72hpLkR9Xfj0Kkys7P1r9isKasxS1e21NDEyqC3ykXVCywgD8U+tKWZkmnh8Hb2VGk26pasfO6SQtJK/8j4= 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 1564995784707785.5215858946393; Mon, 5 Aug 2019 02:03:04 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7AA8DC057E9A; Mon, 5 Aug 2019 09:03:03 +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 195255DA21; Mon, 5 Aug 2019 09:03: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 CCE2C4EE68; Mon, 5 Aug 2019 09:03:02 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x75931Ri013515 for ; Mon, 5 Aug 2019 05:03:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id 95EF11A269; Mon, 5 Aug 2019 09:03:01 +0000 (UTC) Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8E2B4194B2 for ; Mon, 5 Aug 2019 09:02:59 +0000 (UTC) Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.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 6680081DEC for ; Mon, 5 Aug 2019 09:02:58 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id h19so6184317wme.0 for ; Mon, 05 Aug 2019 02:02:58 -0700 (PDT) Received: from archpc.localdomain (x8d1ee222.agdsn.tu-dresden.de. [141.30.226.34]) by smtp.gmail.com with ESMTPSA id n3sm75140350wrt.31.2019.08.05.02.02.55 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 02:02:55 -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=1G83DzRHDyMJIojESwiiwAU4SsbGvBdYSJj+4rt+PKs=; b=asMEQHaloVlxgXaElfe7BEjfKgxWYl3Z2cTuNUgAdvySk5OT9oaYKQZbWsT7FnmeEK suYV7SECWnndNJnFEYcChulkp9cFCswEBiV1Uq30ApluoJY2+IvErkI6lf8VkR4HLYOb R/4pjJ0dlyT2BCNS3OVTEQAIwezt3jvV/H1/OZdVumwele9ws0FPSMWtM8iu9LQSDvUO JRzsnYVREHcri6jycmiWpoFmCiBJdETbqe7x60kMFbt3X63jNoUG2VNO/VQLz3+z5OgW Q1DS9M4hreHOG/eWVVzqmlM5LpficgofjKIpl0f31dd2B2Ec6IEGyEdpojn9Srqw8YYW OllA== 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=1G83DzRHDyMJIojESwiiwAU4SsbGvBdYSJj+4rt+PKs=; b=ovDeH8ejV2tnlN8PwH0BgbBk4IgklNutOhuELExjIN7pcFWrRBjBoIX+upUk00p2Cc vTeQMp6PfWbaaUoFY4RDfIBod+ZkCG6hOFLCqk9faxNt6XSaFuCT4coO6LjdM3bFgoL9 /ssbyhnxviiQEfb4i5+r3udEgXKFVDX/Ytj6xd4gxR4ZDbkrzMFWYfIn+xkKtzWWvy1/ bctroGF7s9CyiM3CXgjXmPJR4+Jk1bljezfALTRsCe8PAPhU/joC5m8Kdr8JmxzOMITJ KiU5xZtepplyZOcJIebANynp0B+5pYfFCmQBPEg4EyUiu8fD8cKu4Y6Hh15L3kiUNWLV DVgg== X-Gm-Message-State: APjAAAWJG7USrS6gDzF4gXWTNDlGw4/WTxvJNg9iRlTh3VEPIJJWniIN jxOd1f/tIa13q0dV0ZuiDdWNympzNb0rWQ== X-Google-Smtp-Source: APXvYqyqDnkiBY0InhdLff6Gw7McEuuZVgRVOXcrTSXJ/yGIixJxv2gdenytOjGM7r7iNWVb38+xRQ== X-Received: by 2002:a1c:7e90:: with SMTP id z138mr17088927wmc.128.1564995776706; Mon, 05 Aug 2019 02:02:56 -0700 (PDT) From: Ilias Stamatis To: libvir-list@redhat.com Date: Mon, 5 Aug 2019 11:02:22 +0200 Message-Id: <20190805090223.6033-2-stamatis.iliass@gmail.com> In-Reply-To: <20190805090223.6033-1-stamatis.iliass@gmail.com> References: <20190805090223.6033-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.25]); Mon, 05 Aug 2019 09:02:58 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 05 Aug 2019 09:02:58 +0000 (UTC) for IP:'209.85.128.66' DOMAIN:'mail-wm1-f66.google.com' HELO:'mail-wm1-f66.google.com' FROM:'stamatis.iliass@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.099 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS) 209.85.128.66 mail-wm1-f66.google.com 209.85.128.66 mail-wm1-f66.google.com X-Scanned-By: MIMEDefang 2.83 on 10.5.110.25 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/2] test_driver: implement virDomainCreateWithFiles 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.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 05 Aug 2019 09:03:04 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" This should just forward the call to testDomainCreateWithFlags since we can't do anything with the provided file descriptors in the test driver. Signed-off-by: Ilias Stamatis Reviewed-by: Erik Skultety --- src/test/test_driver.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index aae9875194..ea1febd960 100755 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -3948,6 +3948,16 @@ static int testDomainCreate(virDomainPtr domain) return testDomainCreateWithFlags(domain, 0); } + +static int testDomainCreateWithFiles(virDomainPtr domain, + unsigned int nfiles ATTRIBUTE_UNUSED, + int *files ATTRIBUTE_UNUSED, + unsigned int flags) +{ + return testDomainCreateWithFlags(domain, flags); +} + + static int testDomainUndefineFlags(virDomainPtr domain, unsigned int flags) { @@ -8655,6 +8665,7 @@ static virHypervisorDriver testHypervisorDriver =3D { .connectNumOfDefinedDomains =3D testConnectNumOfDefinedDomains, /* 0.1= .11 */ .domainCreate =3D testDomainCreate, /* 0.1.11 */ .domainCreateWithFlags =3D testDomainCreateWithFlags, /* 0.8.2 */ + .domainCreateWithFiles =3D testDomainCreateWithFiles, /* 5.7.0 */ .domainDefineXML =3D testDomainDefineXML, /* 0.1.11 */ .domainDefineXMLFlags =3D testDomainDefineXMLFlags, /* 1.2.12 */ .domainUndefine =3D testDomainUndefine, /* 0.1.11 */ -- 2.22.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Mon Apr 29 21:21:19 2024 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=1564995794; cv=none; d=zoho.com; s=zohoarc; b=TTjwMSgGznL/kmZxA9NHXuKvR85bV/kRf6iW5w/w91Luq16I/QvV6/A1W2QXT87RxTDld7tSS0869GvqvMdrhmVwqPUWZWUYsqiM8ASP0G9Ut+fP6IbQv1jEP7BNRbDeqZDP55NpKVv32FBA9mxkR0AyEwF6EA4bJprgbxeQfrk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564995794; 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=452eVcKVCrfDcMzxBaJXr8aho/WnYU2OSwWdNTZLLyQ=; b=F/tozGpkct6MyEwXS9hkhXrwwgIuQE6GuwXjqiuHQ9pts1kgYDqSF4cwXCJoR1FSsa7zbKf4As4s/MlmkMZ0/9iZb35JM02kIOCJhUgUvIhWEK5FCxRVVLQu8tBxngYVNPvUjHsdXC1bYeRNCdOgnIzNt1ywtqhPmwcBqpfG7R8= 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 1564995794842797.2966070414087; Mon, 5 Aug 2019 02:03:14 -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 BC9F830605F0; Mon, 5 Aug 2019 09:03:13 +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 8B05510016E9; Mon, 5 Aug 2019 09:03:13 +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 4C35B4EE6A; Mon, 5 Aug 2019 09:03:13 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x7593C0h013529 for ; Mon, 5 Aug 2019 05:03:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id 710C95D713; Mon, 5 Aug 2019 09:03:12 +0000 (UTC) Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6BD115D6C8 for ; Mon, 5 Aug 2019 09:03:09 +0000 (UTC) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) (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 11BFE86662 for ; Mon, 5 Aug 2019 09:03:09 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id x15so73949159wmj.3 for ; Mon, 05 Aug 2019 02:03:08 -0700 (PDT) Received: from archpc.localdomain (x8d1ee222.agdsn.tu-dresden.de. [141.30.226.34]) by smtp.gmail.com with ESMTPSA id n3sm75140350wrt.31.2019.08.05.02.03.06 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 02:03:06 -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=WepydRzF3cv+oKxYsA2YGy1a07HYmqpESaiF8a9c+Zc=; b=ercLpAAjoubJrt0kd4XRLYd/FqTgSZjPn7Vn78Ck0O6QymSsm4YPrHJPFeW2CUddZx NjCs2gAbiqTyqML+gqbftfKjSTVo0+iDP++aBYky4sF0ZmqFZ7C2tha+Go6Tx+M1Y04B 2q1gVY1Ay6ivEluhE9VJ2m9KOf6eXQRC91eMCVFY0iYFCKqibx6mfrMUQwyxW3bHrp/L Sa8p3Yc+hwWjQBsv1UA1405azKflsr+uNM3R+tr06+vhoKBYXk9JV14yOqrggDeqmFuW NJ7fGlHMZ34PJJtncmGcVNPC+rwqQlmXt/RY3xSpDR4Au7/zZ0sBH9t0MHFhHoTp0xLa Xuhg== 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=WepydRzF3cv+oKxYsA2YGy1a07HYmqpESaiF8a9c+Zc=; b=dyK7xp5uZM5ECnwVb5TPofBlPZqbUTRMjk083SXKU1pY5RbIg4CmK+A0+9pDEi3HXE s1CEzoY5fKwKDRREaiUEvF3xKlacflHfcfR8RG0HV5begcVJOk4+6nqrB2tTndykN6PS fK2xBHX3Ldi/8YA1XKjGm10qEMojkbmU4dm06HIAohCn9Ed4tAWrCQuTFYXTUxwLuvhN 9ROCJVSi9jNEeYyw/UBsaV7NLvfaD8t8x/QYPYWZ0UdzycWa4/z1QBFWMMFePKgGu9MN M6TfBHjJ0zpdl14ia/OQc1gvuIY8lg2FVADYtSUn0LljzXnwxFaGOkLcQw49EPgO/4oi iGjA== X-Gm-Message-State: APjAAAUHJPavTpWuDxYm5VZe3Miesg2nW7e/ktWP6mlcLpD6GoIO5zEK eXyJfAPWb49eX8k2T5hFuu7KQZD8Me1LQg== X-Google-Smtp-Source: APXvYqwZrTOR9CrRLRPipGcs0oaKit/tIWThcyZpgxnBxQKagNBiuFDam/gZVl+mAv3FjqPu0rwvag== X-Received: by 2002:a7b:c4d0:: with SMTP id g16mr18059739wmk.88.1564995787372; Mon, 05 Aug 2019 02:03:07 -0700 (PDT) From: Ilias Stamatis To: libvir-list@redhat.com Date: Mon, 5 Aug 2019 11:02:23 +0200 Message-Id: <20190805090223.6033-3-stamatis.iliass@gmail.com> In-Reply-To: <20190805090223.6033-1-stamatis.iliass@gmail.com> References: <20190805090223.6033-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.26]); Mon, 05 Aug 2019 09:03:09 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 05 Aug 2019 09:03:09 +0000 (UTC) for IP:'209.85.128.67' DOMAIN:'mail-wm1-f67.google.com' HELO:'mail-wm1-f67.google.com' FROM:'stamatis.iliass@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.1 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS) 209.85.128.67 mail-wm1-f67.google.com 209.85.128.67 mail-wm1-f67.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.26 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 2/2] test_driver: implement virDomainCreateXMLWithFile 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.46]); Mon, 05 Aug 2019 09:03:14 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" This should just forward the call to testDomainCreateXML since we can't do anything with the provided file descriptors in the test driver. Signed-off-by: Ilias Stamatis Reviewed-by: Erik Skultety --- src/test/test_driver.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index ea1febd960..b14ae51baa 100755 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -1684,6 +1684,17 @@ testDomainCreateXML(virConnectPtr conn, const char *= xml, } +static virDomainPtr +testDomainCreateXMLWithFiles(virConnectPtr conn, + const char *xml, + unsigned int nfiles ATTRIBUTE_UNUSED, + int *files ATTRIBUTE_UNUSED, + unsigned int flags) +{ + return testDomainCreateXML(conn, xml, flags); +} + + static virDomainPtr testDomainLookupByID(virConnectPtr conn, int id) { @@ -8614,6 +8625,7 @@ static virHypervisorDriver testHypervisorDriver =3D { .connectNumOfDomains =3D testConnectNumOfDomains, /* 0.1.1 */ .connectListAllDomains =3D testConnectListAllDomains, /* 0.9.13 */ .domainCreateXML =3D testDomainCreateXML, /* 0.1.4 */ + .domainCreateXMLWithFiles =3D testDomainCreateXMLWithFiles, /* 5.7.0 */ .domainLookupByID =3D testDomainLookupByID, /* 0.1.1 */ .domainLookupByUUID =3D testDomainLookupByUUID, /* 0.1.1 */ .domainLookupByName =3D testDomainLookupByName, /* 0.1.1 */ -- 2.22.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list