Skip to content

Commit

Permalink
meson: make building tests conditional
Browse files Browse the repository at this point in the history
Just like we do for docs.

Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam authored and igaw committed Sep 30, 2023
1 parent ca47ba3 commit ff742e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ff742e7

Please sign in to comment.