mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
meson: Make -Dexpensive_tests depend on -Dtests
It only makes sense to enable expensive tests when tests are enabled. Disallow invalid configurations. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
5904228f92
commit
8ce0decc37
@ -2043,9 +2043,12 @@ if build_tests[0] and \
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('expensive_tests').auto()
|
if get_option('expensive_tests').auto()
|
||||||
use_expensive_tests = not git
|
use_expensive_tests = not git and build_tests[0]
|
||||||
else
|
else
|
||||||
use_expensive_tests = get_option('expensive_tests').enabled()
|
use_expensive_tests = get_option('expensive_tests').enabled()
|
||||||
|
if use_expensive_tests and not build_tests[0]
|
||||||
|
error('cannot enable expensive tests when tests are disabled')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
coverage_flags = []
|
coverage_flags = []
|
||||||
|
Loading…
Reference in New Issue
Block a user