From e2e3d6b14e944530837db43dd73413ce84a1e1f5 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Wed, 4 May 2022 16:49:29 -0600 Subject: [PATCH] meson: make tests optional Signed-off-by: James Hilliard --- meson.build | 2 +- meson_options.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index aa7dd25..3cdbf1a 100644 --- a/meson.build +++ b/meson.build @@ -68,7 +68,7 @@ endif subdir('include') subdir('src') -if not get_option('coverity') +if not get_option('coverity') and get_option('tests') subdir('test') endif diff --git a/meson_options.txt b/meson_options.txt index ef08266..fcc19a9 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -2,3 +2,4 @@ option('with-zstd', type : 'feature', value : 'auto') option('with-openssl', type : 'feature', value : 'auto') option('with-curl', type : 'feature', value : 'auto') option('coverity', type : 'boolean', value : false) +option('tests', type : 'boolean', value : true) -- 2.30.2