From nobody Mon May 13 23:17:57 2024 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=1648114635; cv=none; d=zohomail.com; s=zohoarc; b=i1fTblZj4vWeyAo88QKmwCyp9jNId4WyLRTXQDpeYI+iVzudSXXs7GbE+meZ2VFQdWLlxLFWLOz8reO/hQGUU35XCzQbtJfhg8MqtravDt7qcBNL/8rXOYeFxNYHadf3pmjEzxvb0VnGUt26PC4mvDxGmAOJN6vAZOdDW5u9RJk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1648114635; 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; bh=5sdMWXT6d4/jR8bQ6wHOt6y4XKpO7u7UVtgZpQrhKjc=; b=V2J2KjNNoTD5S+UkWoqarvSLbAQevjIiHBwLJnPBq+pK74WPa5uAnlLn01w1cV2/yMrBJFhiV+xOuOK52BdDy+VEoZXeyAMHt/M0G+/NDapnx3RX/h7QK/HRHqJsleSYap1reJcTaPTDEhxXbxJctGdFxjKC1q8ezmwreAbvP2U= 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 1648114635368291.8971102192028; Thu, 24 Mar 2022 02:37:15 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-213-icK2jY2-MGm4vXa5Ox3MdQ-1; Thu, 24 Mar 2022 05:37:10 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E53921C09063; Thu, 24 Mar 2022 09:37:07 +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 62EC740CF8ED; Thu, 24 Mar 2022 09:37:06 +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 24DFC194034B; Thu, 24 Mar 2022 09:37:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id AC95C1940347 for ; Thu, 24 Mar 2022 09:37:04 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 952D740CF8F7; Thu, 24 Mar 2022 09:37:04 +0000 (UTC) Received: from localhost.localdomain (unknown [10.39.195.210]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1B86940CF8ED for ; Thu, 24 Mar 2022 09:37:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648114634; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=5sdMWXT6d4/jR8bQ6wHOt6y4XKpO7u7UVtgZpQrhKjc=; b=emxUX8CcmLtpRIEy4wcHlsqOTr7ll+E+mwH5j9Akb5jSWB/9Kdp4pliFNZOAQJfaLe8pcR HwCDpdQM6vb6eN+hPLtygz3oUTsYG6yuel5knlpj3p/t6PbKlGr0JlrwDjniM+6Tn52889 oP2B5uEEG8m/HBlAhJ7/8JN6QDPG8gQ= X-MC-Unique: icK2jY2-MGm4vXa5Ox3MdQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Paolo Bonzini To: libvir-list@redhat.com Subject: [PATCH] tests: add dependencies to meson declaration Date: Thu, 24 Mar 2022 10:36:56 +0100 Message-Id: <20220324093656.121802-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 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 2.84 on 10.11.54.1 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) X-ZM-MESSAGEID: 1648114637912100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Make sure that all tests are run after the helpers and mocks are (re)built. This enables for example using "meson test" as the command line passed to "git bisect run". Signed-off-by: Paolo Bonzini Reviewed-by: Michal Privoznik --- tests/meson.build | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/meson.build b/tests/meson.build index 8f92f2033f..fd78d8a2fd 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -191,8 +191,9 @@ test_file_wrapper_lib =3D static_library( dependencies: [ tests_dep ], ) =20 +tests_deps =3D [] foreach mock : mock_libs - shared_library( + tests_deps +=3D shared_library( mock['name'], mock.get('sources', [ '@0@.c'.format(mock['name']) ]), override_options: [ @@ -215,7 +216,7 @@ endforeach # Must not link to any libvirt modules - libc only otherwise external # libraries might unexpectedly leak file descriptors into commandhelper # invalidating the test logic assumptions. -executable( +tests_deps +=3D executable( 'commandhelper', [ 'commandhelper.c' ], dependencies: [ @@ -227,7 +228,7 @@ executable( ) =20 # This is a fake SSH we use from virnetsockettest -executable( +tests_deps +=3D executable( 'ssh', [ 'ssh.c' ], dependencies: [ @@ -592,7 +593,7 @@ foreach data : tests # default meson timeout timeout =3D 30 endif - test(data['name'], test_bin, env: tests_env, timeout: timeout) + test(data['name'], test_bin, env: tests_env, timeout: timeout, depends: = tests_deps) endforeach =20 =20 --=20 2.35.1