diff --git a/meson_options.txt b/meson_options.txt index 7f22cd43..63713c52 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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) diff --git a/tests/meson.build b/tests/meson.build index e6341e77..de31c050 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -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(),