From nobody Mon Feb 9 01:50:48 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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=1594893796; cv=none; d=zohomail.com; s=zohoarc; b=N21NUZRo52R7RzNMClV6FfDH9pP5HA9k+uBcFJVy9YfilcRZ28ufF1SXpNbFcfMkKh+VrNz2l6bjvQq+VvyS9dMX+ZxL487YZUBlCHPwem5a/3DwzHkeC6eH5M2Ic+eKKIxy78bv+BiQ4pb43q4mTjr3F6bk8c19xdFPKS3orfw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594893796; 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=wzT06ILzpJAtwkvw9iiTCQHB3cAGmM/l2pO4FLXTUCY=; b=iDVyDmuHksVjAYxT1KwYfNpHJNR254AU5h8MFj3WLssnO0EzuKNWR9KWiMoQ7QTzn6XRj1Nw7QCyHZPyN2tk1S1nqwJw0LOwRRXjIaVhg3D8voKWBT70iUzod4cUdRZMQdzFACi2vmHpZnuc5rnFtIumsmkupAUsrIWjQO358Iw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 159489379642245.60628865683532; Thu, 16 Jul 2020 03:03:16 -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-340-MPAxW6y4NuuwHb28ets6bQ-1; Thu, 16 Jul 2020 06:03:11 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 34504106B243; Thu, 16 Jul 2020 10:02:49 +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 0F6452DE6D; Thu, 16 Jul 2020 10:02:49 +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 D12E09623A; Thu, 16 Jul 2020 10:02:48 +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 06GA2l8L016699 for ; Thu, 16 Jul 2020 06:02:47 -0400 Received: by smtp.corp.redhat.com (Postfix) id E99F82DE73; Thu, 16 Jul 2020 10:02:47 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 63A132B6E2 for ; Thu, 16 Jul 2020 10:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594893795; 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=wzT06ILzpJAtwkvw9iiTCQHB3cAGmM/l2pO4FLXTUCY=; b=ZMC5Xa6+ZN9ZPyO7/K9jXr/3+7Z6IuaCZJbntyuVpy7rDsBKBpI6ZJMwEi/EwVAq8DVreX XvhSy1BYQtKEmTQEn4R/pRDojyEYpN1otAIhqW3SUW5ikhpa958O4hS5DzhIPqYocOA6cS jrUd8DYe+0RKcFGEBT7YbwAoKCn14MI= X-MC-Unique: MPAxW6y4NuuwHb28ets6bQ-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 089/351] meson: add test driver build option Date: Thu, 16 Jul 2020 11:55:25 +0200 Message-Id: <6453ace487e2c03f049660f21e492138471cacbe.1594891445.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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.23 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: Pavel Hrdina --- configure.ac | 3 --- m4/virt-driver-test.m4 | 33 --------------------------------- meson.build | 5 +++++ meson_options.txt | 1 + 4 files changed, 6 insertions(+), 36 deletions(-) delete mode 100644 m4/virt-driver-test.m4 diff --git a/configure.ac b/configure.ac index d0189c8701a..ab1b2145756 100644 --- a/configure.ac +++ b/configure.ac @@ -105,14 +105,12 @@ dnl LIBVIRT_DRIVER_ARG_VMWARE LIBVIRT_DRIVER_ARG_VBOX LIBVIRT_DRIVER_ARG_VZ -LIBVIRT_DRIVER_ARG_TEST LIBVIRT_DRIVER_ARG_NETWORK LIBVIRT_DRIVER_ARG_INTERFACE =20 LIBVIRT_DRIVER_CHECK_VMWARE LIBVIRT_DRIVER_CHECK_VBOX LIBVIRT_DRIVER_CHECK_VZ -LIBVIRT_DRIVER_CHECK_TEST LIBVIRT_DRIVER_CHECK_NETWORK LIBVIRT_DRIVER_CHECK_INTERFACE =20 @@ -311,7 +309,6 @@ AC_MSG_NOTICE([]) LIBVIRT_DRIVER_RESULT_VMWARE LIBVIRT_DRIVER_RESULT_VBOX LIBVIRT_DRIVER_RESULT_VZ -LIBVIRT_DRIVER_RESULT_TEST LIBVIRT_DRIVER_RESULT_NETWORK LIBVIRT_DRIVER_RESULT_INTERFACE AC_MSG_NOTICE([]) diff --git a/m4/virt-driver-test.m4 b/m4/virt-driver-test.m4 deleted file mode 100644 index 460d1f4aeea..00000000000 --- a/m4/virt-driver-test.m4 +++ /dev/null @@ -1,33 +0,0 @@ -dnl The test driver -dnl -dnl Copyright (C) 2016 Red Hat, Inc. -dnl -dnl This library is free software; you can redistribute it and/or -dnl modify it under the terms of the GNU Lesser General Public -dnl License as published by the Free Software Foundation; either -dnl version 2.1 of the License, or (at your option) any later version. -dnl -dnl This library is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -dnl Lesser General Public License for more details. -dnl -dnl You should have received a copy of the GNU Lesser General Public -dnl License along with this library. If not, see -dnl . -dnl - -AC_DEFUN([LIBVIRT_DRIVER_ARG_TEST], [ - LIBVIRT_ARG_WITH_FEATURE([TEST], [test driver], [yes]) -]) - -AC_DEFUN([LIBVIRT_DRIVER_CHECK_TEST], [ - if test "$with_test" =3D "yes" ; then - AC_DEFINE_UNQUOTED([WITH_TEST], 1, [whether Test driver is enabled]) - fi - AM_CONDITIONAL([WITH_TEST], [test "$with_test" =3D "yes"]) -]) - -AC_DEFUN([LIBVIRT_DRIVER_RESULT_TEST], [ - LIBVIRT_RESULT([Test], [$with_test]) -]) diff --git a/meson.build b/meson.build index b7710bd0fcb..6a32554bb41 100644 --- a/meson.build +++ b/meson.build @@ -1804,6 +1804,10 @@ if not get_option('driver_qemu').disabled() endif endif =20 +if get_option('driver_test').enabled() + conf.set('WITH_TEST', 1) +endif + =20 # define top include directory =20 @@ -1831,6 +1835,7 @@ driver_summary =3D { 'ESX': conf.has('WITH_ESX'), 'Hyper-V': conf.has('WITH_HYPERV'), 'Bhyve': conf.has('WITH_BHYVE'), + 'Test': conf.has('WITH_TEST'), 'Remote': conf.has('WITH_REMOTE'), 'Libvirtd': conf.has('WITH_LIBVIRTD'), } diff --git a/meson_options.txt b/meson_options.txt index 4f8cddd0aee..f9f9e3f79fe 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -59,3 +59,4 @@ option('qemu_user', type: 'string', value: '', descriptio= n: 'username to run QEM option('qemu_group', type: 'string', value: '', description: 'groupname to= run QEMU system instance as') option('driver_remote', type: 'feature', value: 'enabled', description: 'r= emote driver') option('remote_default_mode', type: 'combo', choices: ['legacy', 'direct']= , value: 'legacy', description: 'remote driver default mode') +option('driver_test', type: 'feature', value: 'enabled', description: 'tes= t driver') --=20 2.26.2