From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F3D84158041 for ; Tue, 12 Mar 2024 21:43:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2AE6DE2A0E; Tue, 12 Mar 2024 21:43:48 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0F470E2A0E for ; Tue, 12 Mar 2024 21:43:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1FCC833BE58 for ; Tue, 12 Mar 2024 21:43:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A695AFCB for ; Tue, 12 Mar 2024 21:43:45 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1710279821.d00c9f8b80d8f6193810e7cb4b9175c498fc9c82.sam@gentoo> Subject: [gentoo-commits] proj/gentoolkit:master commit in: / X-VCS-Repository: proj/gentoolkit X-VCS-Files: meson.build meson_options.txt X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d00c9f8b80d8f6193810e7cb4b9175c498fc9c82 X-VCS-Branch: master Date: Tue, 12 Mar 2024 21:43:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c93b8818-3a02-4130-9834-ccb67bb21598 X-Archives-Hash: 21f66e4e7d5949cc8cc530de331db99a commit: d00c9f8b80d8f6193810e7cb4b9175c498fc9c82 Author: Greg Kubaryk gmail com> AuthorDate: Tue Mar 12 21:41:48 2024 +0000 Commit: Sam James gentoo org> CommitDate: Tue Mar 12 21:43:41 2024 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=d00c9f8b meson: make tests optional Closes: https://bugs.gentoo.org/926427 Signed-off-by: Greg Kubaryk gmail.com> Signed-off-by: Sam James gentoo.org> (cherry picked from commit 988e47557368df49035eeba94beca893f7b267c1) meson.build | 6 ++++-- meson_options.txt | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index c3e83c5..b7b07c1 100644 --- a/meson.build +++ b/meson.build @@ -39,8 +39,10 @@ endif subdir('bin') subdir('pym') -pytest = find_program('pytest') -test('pytest', pytest, args : ['-v', meson.current_source_dir() / 'pym']) +if get_option('tests') + pytest = find_program('pytest') + test('pytest', pytest, args : ['-v', meson.current_source_dir() / 'pym']) +endif if get_option('code-only') subdir_done() diff --git a/meson_options.txt b/meson_options.txt index 265d572..9949cbf 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -13,3 +13,7 @@ option('eprefix', type : 'string', option('docdir', type : 'string', description : 'Documentation directory' ) + +option('tests', type : 'boolean', value: false, + description : 'Enable tests' +)