mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
meson: add tests build option to enable/disable unit tests
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
033c5b8b0b
commit
67f08376fd
@ -1185,6 +1185,7 @@ export SOURCE_DATE_EPOCH=$(stat --printf='%Y' %{_specdir}/%{name}.spec)
|
||||
-Dexpensive_tests=enabled \
|
||||
-Dinit_script=systemd \
|
||||
-Ddocs=enabled \
|
||||
-Dtests=enabled \
|
||||
%{?arg_login_shell}
|
||||
|
||||
%meson_build
|
||||
|
@ -2197,7 +2197,10 @@ subdir('src')
|
||||
|
||||
subdir('tools')
|
||||
|
||||
subdir('tests')
|
||||
build_tests = not get_option('tests').disabled()
|
||||
if build_tests
|
||||
subdir('tests')
|
||||
endif
|
||||
|
||||
subdir('examples')
|
||||
|
||||
@ -2432,6 +2435,7 @@ misc_summary = {
|
||||
'Use -Werror': cc_flags.contains('-Werror'),
|
||||
'Warning Flags': supported_cc_flags,
|
||||
'docs': gen_docs,
|
||||
'tests': build_tests,
|
||||
'DTrace': conf.has('WITH_DTRACE_PROBES'),
|
||||
'firewalld': conf.has('WITH_FIREWALLD'),
|
||||
'firewalld-zone': conf.has('WITH_FIREWALLD_ZONE'),
|
||||
|
@ -8,6 +8,7 @@ option('test_coverage', type: 'boolean', value: false, description: 'turn on cod
|
||||
option('git_werror', type: 'feature', value: 'auto', description: 'use -Werror if building from GIT')
|
||||
option('rpath', type: 'feature', value: 'auto', description: 'whether to include rpath information in installed binaries and libraries')
|
||||
option('docs', type: 'feature', value: 'auto', description: 'whether to generate documentation')
|
||||
option('tests', type: 'feature', value: 'auto', description: 'whether to build tests')
|
||||
|
||||
|
||||
# build dependencies options
|
||||
|
Loading…
Reference in New Issue
Block a user