From 988e47557368df49035eeba94beca893f7b267c1 Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 12 Mar 2024 21:41:48 +0000 Subject: meson: make tests optional Closes: https://bugs.gentoo.org/926427 Signed-off-by: Greg Kubaryk Signed-off-by: Sam James --- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'meson.build') 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() -- cgit v1.2.3