]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
meson: make building tests conditional
authorSam James <sam@gentoo.org>
Sat, 30 Sep 2023 05:43:39 +0000 (06:43 +0100)
committerDaniel Wagner <wagi@monom.org>
Sat, 30 Sep 2023 10:21:36 +0000 (12:21 +0200)
Just like we do for docs.

Signed-off-by: Sam James <sam@gentoo.org>
meson.build
meson_options.txt

index 2c979ccb270e512506660264a7b352c55c00c44c..a9263b57a772040490bdc58ca8b83e4c9c1293fb 100644 (file)
@@ -273,7 +273,9 @@ subdir('internal')
 subdir('ccan')
 subdir('src')
 subdir('libnvme')
-subdir('test')
+if get_option('tests')
+    subdir('test')
+endif
 subdir('examples')
 subdir('doc')
 
index a1ed79f9a9b8cb462246354c297b5a56cb74388e..251ae118c62c65826d28af03773a3df72050cde9 100644 (file)
@@ -6,6 +6,7 @@ option('rstdir', type : 'string', value : '', description : 'directory for ReST
 
 option('docs', type : 'combo', choices : ['false', 'html', 'man', 'rst', 'all'], description : 'install documentation')
 option('docs-build', type : 'boolean', value : false,  description : 'build documentation')
+option('tests', type : 'boolean', value : true, description : 'build tests')
 
 option('python', type : 'feature', value: 'auto', description : 'Generate libnvme python bindings')
 option('openssl', type : 'feature', value: 'auto', description : 'OpenSSL support')