From nobody Mon Feb 9 16:50:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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 170.10.129.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=1698253648; cv=none; d=zohomail.com; s=zohoarc; b=Zpbk4iadUQGLzEwqZC6Z5m9V3mhfJHD/s4YbXFmlyub9uS6GmtvfEk+GwTaoNtxm5JYwAPHI6+Ypfpc8WPp4GAjUlJC9cWptmGN06r4VPrYVSQ9bfAcZvOgNQc7Digthtfs+fjhUCQ22e9xNx2pFIXvxmj+T62C7tNAb6xJpGn0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1698253648; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=vIoilYF+s0a6dx9Q/fwAZa8jNmiuwkkcyjIDVk5cfIQ=; b=nKzkvDrMcm9Oo26pUv0dBPL5Oue8se3oNoHcVaBU8h0SJ3U/lgoqDXGGLY1P6pXsfU0stbWqXQpZ0yEJMEeAAaRMxw+jXAzBVcw9KgdbKDepvqBj1FQ0m6hJbt45ABVKvW1baJeNDVov+RJKOccL60l8deH73PiTvhU4qftFcy0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1698253648205334.4998804405377; Wed, 25 Oct 2023 10:07:28 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-583-oTbHqeorN4Wg8BstnIFzcg-1; Wed, 25 Oct 2023 13:07:22 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3D4B6811E96; Wed, 25 Oct 2023 17:07:17 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 296351C060AE; Wed, 25 Oct 2023 17:07:17 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 1A07C194658D; Wed, 25 Oct 2023 17:07:17 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 1882A19465B8 for ; Wed, 25 Oct 2023 17:07:16 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 0A135492BEE; Wed, 25 Oct 2023 17:07:16 +0000 (UTC) Received: from harajuku.usersys.redhat.com.homenet.telecomitalia.it (unknown [10.45.224.90]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1515C492BE7 for ; Wed, 25 Oct 2023 17:07:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698253647; 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=vIoilYF+s0a6dx9Q/fwAZa8jNmiuwkkcyjIDVk5cfIQ=; b=dz9VVaUzna0K/QqcAR+FuXRXn29I6CGTsQotBceBNfMX2qm8+vKCJWjehAcPWOOY3GURT3 TYY3wUXQLcMmIdRtZELKapD++s/C+vDqRrHoSh4F/ezx1Y0Ky8KZnkMmVBz75GlSeM2JBs LU40zxCLXEpzSJ+1b4M6YTxDfFNQfec= X-MC-Unique: oTbHqeorN4Wg8BstnIFzcg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH v2 6/8] meson: Make -Dexpensive_tests depend on -Dtests Date: Wed, 25 Oct 2023 19:06:59 +0200 Message-ID: <20231025170701.239137-7-abologna@redhat.com> In-Reply-To: <20231025170701.239137-1-abologna@redhat.com> References: <20231025170701.239137-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1698253649387100007 Content-Type: text/plain; charset="utf-8"; x-default="true" It only makes sense to enable expensive tests when tests are enabled. Disallow invalid configurations. Signed-off-by: Andrea Bolognani Reviewed-by: Michal Privoznik --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index ea8ee84ba0..33027404f6 100644 --- a/meson.build +++ b/meson.build @@ -2043,9 +2043,12 @@ if build_tests[0] and \ endif =20 if get_option('expensive_tests').auto() - use_expensive_tests =3D not git + use_expensive_tests =3D not git and build_tests[0] else use_expensive_tests =3D get_option('expensive_tests').enabled() + if use_expensive_tests and not build_tests[0] + error('cannot enable expensive tests when tests are disabled') + endif endif =20 coverage_flags =3D [] --=20 2.41.0