summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-04-03 13:30:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:06 -0500
commitf1ab10b2ec8a86c45cb8f91573d79c51f0277bb7 (patch)
treecaf481ff4d54a8ca6b532e4d7bb0ba8c47e37f8a /source3
parent21024aa589e6e643cff3ac4e14458ff2ea109adb (diff)
downloadsamba-f1ab10b2ec8a86c45cb8f91573d79c51f0277bb7.tar.gz
samba-f1ab10b2ec8a86c45cb8f91573d79c51f0277bb7.tar.bz2
samba-f1ab10b2ec8a86c45cb8f91573d79c51f0277bb7.zip
r22058: Add test_nss_modules to check NSS modules for unresolved symbols.
Guenther (This used to be commit 21d092f4f9aca1371f2cf97a39da6f30ddc62eba)
Diffstat (limited to 'source3')
-rw-r--r--source3/Makefile.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index 99c31e637f..058236c4d1 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -174,6 +174,8 @@ SHLIBS = @SHLIB_PROGS@ @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBMSRPC@ @LIBADDNS@
PAM_MODULES = @PAM_MODULES@
+NSS_MODULES = @WINBIND_WINS_NSS@ @WINBIND_NSS@
+
SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
VFS_MODULES = @VFS_MODULES@
@@ -886,6 +888,8 @@ NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
all : SHOWFLAGS $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
$(SHLIBS) $(MODULES) $(PAM_MODULES) @EXTRA_ALL_TARGETS@
+nss_modules : $(NSS_MODULES)
+
pam_modules : $(PAM_MODULES)
pam_smbpass : SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
@@ -1990,6 +1994,14 @@ Makefile: $(srcdir)/Makefile.in config.status
######################################################################
# Samba Testing Framework
+# Check for NSS module problems.
+test_nss_modules: nss_modules
+ @echo "Testing $(NSS_MODULES) "
+ @for module in $(NSS_MODULES); do \
+ ./script/tests/dlopen.sh $${module} \
+ || exit 1; \
+ done
+
# Check for PAM module problems. Specifically, check that every module we
# built can actually be loaded by a minimal PAM-aware application.
test_pam_modules: pam_modules