]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add dlopen test for pam_systemd_home
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 2 Jun 2022 21:40:43 +0000 (06:40 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 3 Jun 2022 12:40:14 +0000 (13:40 +0100)
meson.build

index 731456ba075cceebf3d44a7cb2666ba5a4c11e17..f9e15ae83e1135ff43c5421cf66d1871506b9dd5 100644 (file)
@@ -2621,7 +2621,7 @@ if conf.get('ENABLE_HOMED') == 1
 
         if conf.get('HAVE_PAM') == 1
                 version_script_arg = project_source_root / pam_systemd_home_sym
-                pam_systemd = shared_library(
+                pam_systemd_home = shared_library(
                         'pam_systemd_home',
                         pam_systemd_home_c,
                         name_prefix : '',
@@ -2638,6 +2638,14 @@ if conf.get('ENABLE_HOMED') == 1
                         install : true,
                         install_tag : 'pam',
                         install_dir : pamlibdir)
+
+                if want_tests != 'false'
+                        test('dlopen-pam_systemd_home',
+                             test_dlopen,
+                             # path to dlopen must include a slash
+                             args : pam_systemd_home.full_path(),
+                             depends : pam_systemd_home)
+                endif
         endif
 endif