From nobody Mon Feb 9 10:27:07 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=1696345050; cv=none; d=zohomail.com; s=zohoarc; b=lAuvDknYwxbdMFEK/Dr1kqhOq67JDq4Igb02i9tOZTl9eSjs2dGBq9WVV0zgTL7xpxz0q4WgYP9j0nzt9c8kOPoAXU3pa+et4dHR2lxSzmGJTbWKXeRGJkrKJlSEqru+ELLFmJbLqW9oyP4SwLPFJaNXUf6BDXN2xIPOEkhoZJM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1696345050; 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=cpORGOjL0kn/sO44H0jYW9Pd1lt+1CdxNy2iVLTnC/M=; b=doeH+ZmGB7zVqD3jinTfBet3dlNN+iP9UNXRhEJkGkuVWoyDpyTncO8L3qb8aOrdvGCnGC15xUlsRFZ6JOFRPrePXW6PrCD6P8r6REcyUpJcpymXwCDc9ksM/0clhDR2L2NsDiZ83bjyLuuznGRKMSmH0LpgGiLKiZpSJ5Arudc= 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 1696345050807191.47360222757857; Tue, 3 Oct 2023 07:57:30 -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.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-593-BWn3shG-PF6-atin0qLvXQ-1; Tue, 03 Oct 2023 10:57:27 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 54AD9858285; Tue, 3 Oct 2023 14:57:24 +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 3F2FB140273C; Tue, 3 Oct 2023 14:57:24 +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 BA19919466FD; Tue, 3 Oct 2023 14:56:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 143C6194658F for ; Tue, 3 Oct 2023 14:56:46 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 01D05493113; Tue, 3 Oct 2023 14:56:46 +0000 (UTC) Received: from harajuku.usersys.redhat.com.homenet.telecomitalia.it (unknown [10.45.224.87]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8D16940103E for ; Tue, 3 Oct 2023 14:56:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696345049; 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=cpORGOjL0kn/sO44H0jYW9Pd1lt+1CdxNy2iVLTnC/M=; b=EbHH+K1gWsZKpJpD+D8lULmsTkUr93S1MA4J6XHRoAHAjI/J+UuUFN6DWTK8eEGneJ1Lwk 30TEZ7WodNfWXNZICc2LO0wz7Md2M9WMK3vXRn5GwWPYcQF+Wnc91RyvOZRrx3wqatPKOl YBzsozwJu0vNKloHuuBTMGJhPHhcUqw= X-MC-Unique: BWn3shG-PF6-atin0qLvXQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 4/6] meson: Make -Dexpensive_tests depend on -Dtests Date: Tue, 3 Oct 2023 16:56:35 +0200 Message-ID: <20231003145637.379487-5-abologna@redhat.com> In-Reply-To: <20231003145637.379487-1-abologna@redhat.com> References: <20231003145637.379487-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 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.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: 1696345053022100001 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 --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index ed9a07942d..7ec2a6fd1e 100644 --- a/meson.build +++ b/meson.build @@ -2030,9 +2030,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