From nobody Fri Apr 19 18:31:25 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=1560170500; cv=none; d=zoho.com; s=zohoarc; b=YDrQHFlOfAc0H5HRpdbUaHU3Oxivuj9+i4lFwSfGYpLf2kPB5SYceXO1R9Wbu5dZc/VJuZsbSKYz5im7e3+J6R4ypO8+PIaK8zx+8ibrGbzJu2ceYm+RNGvYM44d25QMvZ1Qu9N7eVIchgvXpahOPlUIV55kqTBM/xoxp3z6ebQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560170500; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=zeEO9Con3iEU5tSmuDM+8SnPs7jMbpWb+IRznPWnc28=; b=UgNTXUDEWWcjhdE0qgrS2McpHUMz7YJRPdzyPUtNRjBCGGJ1EiXoIXFky+1Q9c/vVzFeA85XYGYYZefxURqGRTqNtFJUul4CP26Bcv1r4Qlk6rX8+vcN2yJa9aFtbSQkuchsHq9FYvHISoSIBWcIczERDjIi7GgkQ6sFDzBsa5I= 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 1560170500648518.0646759563169; Mon, 10 Jun 2019 05:41:40 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1610B308793A; Mon, 10 Jun 2019 12:41:30 +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 7C3CF5B681; Mon, 10 Jun 2019 12:41:24 +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 6ABDB206D2; Mon, 10 Jun 2019 12:41:12 +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 x5ACcfiT013679 for ; Mon, 10 Jun 2019 08:38:41 -0400 Received: by smtp.corp.redhat.com (Postfix) id 5BD27196FF; Mon, 10 Jun 2019 12:38:41 +0000 (UTC) Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 56CC5196E6 for ; Mon, 10 Jun 2019 12:38:38 +0000 (UTC) Received: from mail-ed1-f68.google.com (mail-ed1-f68.google.com [209.85.208.68]) (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 3A7B8C057F3B for ; Mon, 10 Jun 2019 12:38:25 +0000 (UTC) Received: by mail-ed1-f68.google.com with SMTP id h10so14271012edi.13 for ; Mon, 10 Jun 2019 05:38:25 -0700 (PDT) Received: from archpc.localdomain (x8d1ee222.agdsn.tu-dresden.de. [141.30.226.34]) by smtp.gmail.com with ESMTPSA id s26sm620793ejl.50.2019.06.10.05.38.22 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 10 Jun 2019 05:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=WJOdDaLkktgf0FF6/dTT8wAaX1eB7Lidwd1gp2l+dNM=; b=hmaRSjoKeqVKXoTIhEusIFTyiv7pt6xY9xhpJavIMJWUWFMGERqwObZdODm7bIZTpX QJ78e2M4EIO9uxJ9sAYp6FDiIp6EAbwOuhYUuEWF65Of4hzBo0YQUzulxUAuyO5pMtoB 5Wc5P8DDJhUpCRiFaWE71sw4MXHS4/I3Gty5WTXr73mvgRImmVReLgcqfZqnDQd7YLFm KrIhDsT6indaujfgJelg+ZcEPs9iem/ERpNSzTCqs6BoW+sIJ5Cpz1InmXqFiesg93iq PXPxDXBTeq6kQSpbrBRpOyTO4szBVTfohNPQk2c0cN1ATGjOcVcL6+FE61XDnJdgNuNh dH8w== 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:mime-version :content-transfer-encoding; bh=WJOdDaLkktgf0FF6/dTT8wAaX1eB7Lidwd1gp2l+dNM=; b=uCHJZlKWPzgDqFVfwpMM9BWDRqM5tNr8cY7zPVBjVwouw+BpJ2WdWRkv+KgkhvL+qo IkeqiAjJ7Cum5tgw152qAp01iGqUSv0pbqfbC/xxKlmmYFEoj1Vs3QUVX4sF4TLy7ADG eaunhs+JkeoFwI24B/Ev6DnR9luMy+9dga7RPmQeaIHrMDvUPXjhJaWXgVZZpRwatkc5 6q1iDO+7q0nitZB3tJ2Iy9C9HYvUvDWiSIxGpWBy3yYihmVwsjhxZYJlOncIwlVvhiZ5 Ken1W0YzMIJ7bnZlesiwbKi3o9weH5W5hlP8IvJUcujMm6TuMoAcU4or0fTAlLL3fDzx C2uA== X-Gm-Message-State: APjAAAXgEqi3sgrlaIv4ACAmv8Ko5HOKpuaiLxOpGHaSNnchd7YYa6Hd U/Nz5r5ZNJvbobE4+f50bni38H1D X-Google-Smtp-Source: APXvYqxiEdcbliP/Z4sMh0k2AErqzPYHGToP417GoQNdLl4qw2bTef7DQu0RNxdSI4/3LT2GI4kORw== X-Received: by 2002:a17:906:fcb3:: with SMTP id qw19mr30788760ejb.286.1560170303538; Mon, 10 Jun 2019 05:38:23 -0700 (PDT) From: Ilias Stamatis To: libvir-list@redhat.com Date: Mon, 10 Jun 2019 14:38:15 +0200 Message-Id: <20190610123815.11076-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.32]); Mon, 10 Jun 2019 12:38:25 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 10 Jun 2019 12:38:25 +0000 (UTC) for IP:'209.85.208.68' DOMAIN:'mail-ed1-f68.google.com' HELO:'mail-ed1-f68.google.com' FROM:'stamatis.iliass@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.098 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, SPF_HELO_NONE) 209.85.208.68 mail-ed1-f68.google.com 209.85.208.68 mail-ed1-f68.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] test_driver: implement virConnectGetLibVersion 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Mon, 10 Jun 2019 12:41:36 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Ilias Stamatis --- src/test/test_driver.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 1aa79ce898..dc267b6ecd 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -1453,6 +1453,14 @@ static char *testConnectGetHostname(virConnectPtr co= nn ATTRIBUTE_UNUSED) } +static int testConnectGetLibVersion(virConnectPtr conn ATTRIBUTE_UNUSED, + unsigned long *libVer) +{ + *libVer =3D LIBVIR_VERSION_NUMBER; + return 0; +} + + static int testConnectIsSecure(virConnectPtr conn ATTRIBUTE_UNUSED) { return 1; @@ -6988,6 +6996,7 @@ static virHypervisorDriver testHypervisorDriver =3D { .connectClose =3D testConnectClose, /* 0.1.1 */ .connectGetVersion =3D testConnectGetVersion, /* 0.1.1 */ .connectGetHostname =3D testConnectGetHostname, /* 0.6.3 */ + .connectGetLibVersion =3D testConnectGetLibVersion, /* 5.5.0 */ .connectGetMaxVcpus =3D testConnectGetMaxVcpus, /* 0.3.2 */ .nodeGetInfo =3D testNodeGetInfo, /* 0.1.1 */ .nodeGetCPUStats =3D testNodeGetCPUStats, /* 2.3.0 */ -- 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list