meson: make tests optional
authorJames Hilliard <james.hilliard1@gmail.com>
Wed, 4 May 2022 22:49:29 +0000 (16:49 -0600)
committerJames Hilliard <james.hilliard1@gmail.com>
Wed, 4 May 2022 22:49:29 +0000 (16:49 -0600)
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
meson.build
meson_options.txt

index aa7dd252e3440c2e14b3c67d4b97751d1715a347..3cdbf1ae45b1348aeea5367c8bd2d296e09a4598 100644 (file)
@@ -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
 
index ef082664ffbe71e3d12727dccb9f86d6c1de42df..fcc19a9e7fc99b2acd4037cb921cb5f7035fcd2d 100644 (file)
@@ -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)