From: James Hilliard Date: Wed, 4 May 2022 22:49:29 +0000 (-0600) Subject: meson: make tests optional X-Git-Tag: archive/raspbian/1.2.3+ds1-2+rpi1^2~8^2^2~9^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e2e3d6b14e944530837db43dd73413ce84a1e1f5;p=zchunk.git meson: make tests optional Signed-off-by: James Hilliard --- 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)