mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
meson: disable "slow tests" too when tests are generally disabled
We would have a strange situation where after setting -Dslow-tests=true -Dtests=false we'd get mostly the slow tests (plus some other ones which I'll fix in subsequent commit). Let's simplify things by making -Dtests=false just disable those tests too.
This commit is contained in:
parent
f57d003cb6
commit
d3da291eb0
@ -270,7 +270,11 @@ pkgconfig = import('pkgconfig')
|
|||||||
check_compilation_sh = find_program('tools/meson-check-compilation.sh')
|
check_compilation_sh = find_program('tools/meson-check-compilation.sh')
|
||||||
meson_build_sh = find_program('tools/meson-build.sh')
|
meson_build_sh = find_program('tools/meson-build.sh')
|
||||||
|
|
||||||
if get_option('tests') != 'false'
|
want_tests = get_option('tests')
|
||||||
|
slow_tests = want_tests != 'false' and get_option('slow-tests')
|
||||||
|
install_tests = get_option('install-tests')
|
||||||
|
|
||||||
|
if want_tests != 'false'
|
||||||
cxx = find_program('c++', required : false)
|
cxx = find_program('c++', required : false)
|
||||||
if cxx.found()
|
if cxx.found()
|
||||||
# Used only for tests
|
# Used only for tests
|
||||||
@ -1291,9 +1295,6 @@ conf.set10('ENABLE_NSS', enable_nss)
|
|||||||
|
|
||||||
conf.set10('ENABLE_TIMEDATECTL', get_option('timedated') or get_option('timesyncd'))
|
conf.set10('ENABLE_TIMEDATECTL', get_option('timedated') or get_option('timesyncd'))
|
||||||
|
|
||||||
want_tests = get_option('tests')
|
|
||||||
install_tests = get_option('install-tests')
|
|
||||||
slow_tests = get_option('slow-tests')
|
|
||||||
tests = []
|
tests = []
|
||||||
fuzzers = []
|
fuzzers = []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user