From nobody Sun Feb 8 11:21:36 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1602165629; cv=none; d=zohomail.com; s=zohoarc; b=euxguHvYMn8fWaNYGE+kZJFjSBYhcGjDfxT595Kfxl0ibgs31OwSRSTxcatTrCNmjHMDNIGlPQvTbd/lOWqD7UfOuOiqBOUNkyX83JQ5GBqO8VsikpntBjsBTfX+/UF+Qnqf2Uoc/krB6BloHXEQJNAAI0hGuJq1ajXAZ2Rkdc8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602165629; 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=bBqJyqyoLAK0nkbtYvX+crfTxc3VGDyOEqaRySEqVWs=; b=Yd8ZnlMS24MowcvD/eT3sheUvRmKQkTixiVCyPcmrMGdZt8EaVJ95Y6RUHNy31UriWVbYQzhq20HQJNx80YNhXjdFYfmOtdY+wiY/mi7hOPKgWmpFgospALxR99aYXHmETzQsXRGf/jsvfrD7OVBNOQg3Q/r6U2EmEmyIAhYt5I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.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 [63.128.21.124]) by mx.zohomail.com with SMTPS id 1602165629013408.41132859040465; Thu, 8 Oct 2020 07:00:29 -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-412-uEB3oRQFO2CQR54s2xPsZg-1; Thu, 08 Oct 2020 09:59:43 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 25C0E8A6368; Thu, 8 Oct 2020 13:59:38 +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 052506EF68; Thu, 8 Oct 2020 13:59:38 +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 C49561832FD7; Thu, 8 Oct 2020 13:59:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 098DxZqg013847 for ; Thu, 8 Oct 2020 09:59:35 -0400 Received: by smtp.corp.redhat.com (Postfix) id B96E65D9FC; Thu, 8 Oct 2020 13:59:35 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.193]) by smtp.corp.redhat.com (Postfix) with ESMTP id 351095D98A for ; Thu, 8 Oct 2020 13:59:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602165626; 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=bBqJyqyoLAK0nkbtYvX+crfTxc3VGDyOEqaRySEqVWs=; b=cCGXqily6P0ST5kxS6RJAR8vhEDki15fUJ+EA5lzthV7kNXgIheHFjz6645c1fd4Ukwmvl GUAaGkKHs4urp3qkZ5loJ00DqOHmki60/BaGBS2It424TfdSca4eL3Be1pkpDxxC6ICva/ 7FQfKlRtyxVbv1uDY68Edv2Lh3RXVk4= X-MC-Unique: uEB3oRQFO2CQR54s2xPsZg-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 15/15] meson: add tests build option to enable/disable unit tests Date: Thu, 8 Oct 2020 15:59:04 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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.79 on 10.5.11.13 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: Pavel Hrdina --- meson.build | 6 +++++- meson_options.txt | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f44cb4424a..9f8c43d5ab 100644 --- a/meson.build +++ b/meson.build @@ -2205,7 +2205,10 @@ subdir('src') =20 subdir('tools') =20 -subdir('tests') +build_tests =3D not get_option('tests').disabled() +if build_tests + subdir('tests') +endif =20 subdir('examples') =20 @@ -2440,6 +2443,7 @@ misc_summary =3D { 'Use -Werror': cc_flags.contains('-Werror'), 'Warning Flags': supported_cc_flags, 'docs': gen_docs, + 'tests': build_tests, 'DTrace': conf.has('WITH_DTRACE_PROBES'), 'firewalld': conf.has('WITH_FIREWALLD'), 'firewalld-zone': conf.has('WITH_FIREWALLD_ZONE'), diff --git a/meson_options.txt b/meson_options.txt index 3c6d6a03c5..78be491704 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -8,6 +8,7 @@ option('test_coverage', type: 'boolean', value: false, desc= ription: 'turn on cod option('git_werror', type: 'feature', value: 'auto', description: 'use -We= rror if building from GIT') option('rpath', type: 'feature', value: 'auto', description: 'whether to i= nclude rpath information in installed binaries and libraries') option('docs', type: 'feature', value: 'auto', description: 'whether to ge= nerate documentation') +option('tests', type: 'feature', value: 'auto', description: 'whether to b= uild tests') =20 =20 # build dependencies options --=20 2.26.2