tests: Add test for the PAM module

Test the PAM module using pam_wrapper and our mock fprintd.

See https://lwn.net/Articles/671094/

Note that this requires a version of pam_wrapper with this bug fixed:
https://bugzilla.samba.org/show_bug.cgi?id=14245
This commit is contained in:
Bastien Nocera
2020-01-20 17:34:45 +01:00
parent f1517af09a
commit 00b79d1a2f
7 changed files with 119 additions and 1 deletions

6
tests/pam/Makefile.am Normal file
View File

@ -0,0 +1,6 @@
SUBDIRS = services
TESTS_ENVIRONMENT = export TOPSRCDIR=$(abs_top_srcdir); export LD_PRELOAD=libpam_wrapper.so; export PAM_WRAPPER_SERVICE_DIR=$(abs_top_builddir)/tests/pam/services; export PAM_WRAPPER=1; export PYTHON=@PYTHON@;
TESTS = test_pam_fprintd.py
EXTRA_DIST = $(TESTS)