From 36ccdecd053a9ad88dce86b8c84770dc2aa11d21 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 5 Sep 2013 11:52:08 -0400 Subject: tests: Add dlopen test to make sure modules works This tests dlopens and resolves all symbols to make sure there are no missing symbols in our provider modules. --- Makefile.am | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index d21c5a71..150f53e7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -114,6 +114,7 @@ endif if HAVE_CHECK non_interactive_check_based_tests = \ + dlopen-tests \ sysdb-tests \ strtonum-tests \ resolv-tests \ @@ -890,6 +891,36 @@ if HAVE_CHECK libsss_test_common_la_SOURCES += \ src/tests/common_check.c +check_LTLIBRARIES = \ + libdlopen_test_providers.la + +libdlopen_test_providers_la_SOURCES = \ + $(sssd_be_SOURCES) +libdlopen_test_providers_la_CFLAGS = \ + $(AM_CFLAGS) \ + $(CHECK_CFLAGS) \ + -DUNIT_TESTING +libdlopen_test_providers_la_LIBADD = \ + $(PAM_LIBS) \ + $(SSSD_LIBS) \ + $(CARES_LIBS) \ + $(SSSD_INTERNAL_LTLIBS) +libdlopen_test_providers_la_LDFLAGS = \ + -module \ + -avoid-version \ + -Wl,--version-script,$(srcdir)/src/providers/sssd_be.exports \ + -rpath $(abs_top_builddir) \ + -export-dynamic + +dlopen_tests_SOURCES = \ + src/tests/dlopen-tests.c +dlopen_tests_CFLAGS = \ + $(AM_CFLAGS) \ + $(CHECK_CFLAGS) +dlopen_tests_LDADD = \ + $(LIBADD_DL) \ + $(CHECK_LIBS) + sysdb_tests_DEPENDENCIES = \ $(ldblib_LTLIBRARIES) sysdb_tests_SOURCES = \ -- cgit