aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_listfile/tst-pam_listfile-retval.c
Commit message (Collapse)AuthorAgeFilesLines
* build: parametrize libtool subdirectoryDmitry V. Levin2024-08-221-88/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | Unhardcode ".libs" subdirectory where libtool stores shared objects, as other build systems doesn't necessarily use it. * configure.ac (AC_DEFINE_UNQUOTED): Add LTDIR. * modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c: Replace ".libs/" with LTDIR. * modules/pam_debug/tst-pam_debug-retval.c: Likewise. * modules/pam_deny/tst-pam_deny-retval.c: Likewise. * modules/pam_echo/tst-pam_echo-retval.c: Likewise. * modules/pam_env/tst-pam_env-retval.c: Likewise. * modules/pam_faildelay/tst-pam_faildelay-retval.c: Likewise. * modules/pam_faillock/tst-pam_faillock-retval.c: Likewise. * modules/pam_listfile/tst-pam_listfile-retval.c: Likewise. * modules/pam_localuser/tst-pam_localuser-retval.c: Likewise. * modules/pam_mkhomedir/tst-pam_mkhomedir-retval.c: Likewise. * modules/pam_nologin/tst-pam_nologin-retval.c: Likewise. * modules/pam_permit/tst-pam_permit-retval.c: Likewise. * modules/pam_pwhistory/tst-pam_pwhistory-retval.c: Likewise. * modules/pam_rootok/tst-pam_rootok-retval.c: Likewise. * modules/pam_sepermit/tst-pam_sepermit-retval.c: Likewise. * modules/pam_succeed_if/tst-pam_succeed_if-retval.c: Likewise. * modules/pam_time/tst-pam_time-retval.c: Likewise. * modules/pam_warn/tst-pam_warn-retval.c: Likewise.
* pam_listfile: add a configuration file parser testDmitry V. Levin2024-01-011-0/+35
| | | | | | | | | | The pam_listfile is apparently the only module in the tree that has mandatory options and at the same time bails out in case of unknown options. Use this specific behaviour of the module to test libpam configuration file parsing. * modules/pam_listfile/tst-pam_listfile-retval.c (main): Perform a test dedicated to configuration file parsing.
* pam_listfile: add a test for return valuesDmitry V. Levin2023-12-301-0/+585
* modules/pam_listfile/tst-pam_listfile-retval.c: New file. * modules/pam_listfile/Makefile.am (TESTS): Add $(check_PROGRAMS). (check_PROGRAMS, tst_pam_listfile_retval_LDADD): New variables.