tests: run systemd tests using meson only when requested

This commit is contained in:
Daniel Zatovic
2024-03-21 16:42:06 +01:00
parent 25b543d371
commit 8655093cb7
2 changed files with 2 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ option('passwdqc', type : 'string', description : 'enable password quality check
option('pwquality', type : 'boolean', description : 'password quality checking using pwquality library', value : false)
option('ssh-token', type : 'boolean', description : 'LUKS2 ssh-token', value : true)
option('static-cryptsetup', type : 'boolean', description : 'enable build of static version of tools', value : false)
option('systemd-tokens-test', type : 'boolean', description : 'compile systemd tokens and test using them from cryptsetup', value : false)
option('tmpfilesdir', type : 'string', description : 'override default path to directory with systemd temporary files')
option('udev', type : 'boolean', description : 'udev support', value : true)
option('veritysetup', type : 'boolean', description : 'veritysetup support', value : true)

View File

@@ -471,7 +471,7 @@ if get_option('ssh-token') and not enable_static
])
endif
if get_option('external-tokens') and not enable_static
if get_option('external-tokens') and get_option('systemd-tokens-test') and not enable_static
test('systemd-test-plugin',
find_program('systemd-test-plugin'),
workdir: meson.current_build_dir(),