meson: install manual and unsafe tests (#6178)
Always install all tests if install-tests is set to true, as they might be useful for CI. This includes manual and unsafe tests. Install those in subdirectories of /usr/lib/systemd/tests. Fixes #6163.
This commit is contained in:
parent
53ec2a3226
commit
7cdd978346
|
@ -2219,8 +2219,6 @@ foreach tuple : tests
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if condition == '' or conf.get(condition, false)
|
if condition == '' or conf.get(condition, false)
|
||||||
install = install_tests and type == ''
|
|
||||||
|
|
||||||
exe = executable(
|
exe = executable(
|
||||||
name,
|
name,
|
||||||
sources,
|
sources,
|
||||||
|
@ -2229,8 +2227,8 @@ foreach tuple : tests
|
||||||
dependencies : dependencies,
|
dependencies : dependencies,
|
||||||
c_args : defs,
|
c_args : defs,
|
||||||
install_rpath : rootlibexecdir,
|
install_rpath : rootlibexecdir,
|
||||||
install : install,
|
install : install_tests,
|
||||||
install_dir : testsdir)
|
install_dir : join_paths(testsdir, type))
|
||||||
|
|
||||||
if type == 'manual'
|
if type == 'manual'
|
||||||
message('@0@ is a manual test'.format(name))
|
message('@0@ is a manual test'.format(name))
|
||||||
|
|
Loading…
Reference in New Issue