From c7248cf76398f573b560ba376061aa1bc42a62cb Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 6 Feb 2022 12:51:54 +0100 Subject: meson: add -Dtests=false|true option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When set to false, no test binaries are neither built, nor executed (with “ninja test”). Closes #919 --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 7ebdb672..fb67857b 100644 --- a/meson.build +++ b/meson.build @@ -303,7 +303,10 @@ endif subdir('completions') subdir('icons') -subdir('tests') + +if (get_option('tests')) + subdir('tests') +endif summary( { @@ -315,6 +318,7 @@ summary( 'Terminfo install location': terminfo_install_location, 'Default TERM': get_option('default-terminfo'), 'Set TERMINFO': get_option('custom-terminfo-install-location') != '', + 'Build tests': get_option('tests'), }, bool_yn: true ) -- cgit v1.3