Makefile.am revision 04e870d99e72aa3160bdb6ab05d986fb4005c3ed
AM_CPPFLAGS = \
-std=gnu99 \
-Wall \
-I$(top_srcdir)/src \
-I. \
-DLOCALEDIR=\"$(localedir)\" \
-DLIBDIR=\"$(libdir)\" \
-DVARDIR=\"$(localstatedir)\" \
-DSSS_STATEDIR=\"$(localstatedir)/lib/sss\" \
-DSYSCONFDIR=\"$(sysconfdir)\" \
$(DBUS_CFLAGS) \
$(GLIB2_CFLAGS) \
$(NULL)
TESTS_ENVIRONMENT = \
CWRAP_TEST_SRCDIR=$(abs_srcdir) \
ABS_TOP_BUILDDIR=$(abs_top_builddir) \
. $(srcdir)/cwrap_test_setup.sh; \
$(AUX_TESTS_ENVIRONMENT) \
$(NULL)
dist_noinst_SCRIPTS = \
$(NULL)
SSSD_LIBS = \
$(TALLOC_LIBS) \
$(TEVENT_LIBS) \
$(POPT_LIBS) \
$(LDB_LIBS) \
$(DBUS_LIBS) \
$(PCRE_LIBS) \
$(INI_CONFIG_LIBS) \
$(COLLECTION_LIBS) \
$(DHASH_LIBS) \
$(OPENLDAP_LIBS) \
$(TDB_LIBS)
SSSD_RESPONDER_OBJ = \
../../../src/responder/common/negcache_files.c \
../../../src/responder/common/negcache.c \
../../../src/responder/common/responder_cmd.c \
../../../src/responder/common/responder_common.c \
../../../src/responder/common/responder_dp.c \
../../../src/responder/common/responder_packet.c \
../../../src/responder/common/responder_utils.c \
../../../src/monitor/monitor_iface_generated.c \
dist_noinst_DATA = \
group \
passwd \
$(NULL)
check_PROGRAMS =
if HAVE_CMOCKA
if HAVE_NSS_WRAPPER
if HAVE_UID_WRAPPER
check_PROGRAMS += \
become_user-tests \
server-tests \
usertools-tests \
responder_common-tests \
negcache-tests \
$(NULL)
endif # HAVE_UID_WRAPPER
endif # HAVE_NSS_WRAPPER
endif # HAVE_CMOCKA
TESTS = $(check_PROGRAMS)
become_user_tests_SOURCES = \
$(NULL)
become_user_tests_CFLAGS = \
$(AM_CFLAGS) \
$(NULL)
become_user_tests_LDADD = \
$(POPT_LIBS) \
$(CMOCKA_LIBS) \
$(abs_top_builddir)/libsss_debug.la \
$(abs_top_builddir)/libsss_test_common.la \
$(NULL)
server_tests_SOURCES = \
../../../src/util/server.c \
$(NULL)
server_tests_CFLAGS = \
$(AM_CFLAGS) \
-DTEST_DB_PATH=\"server_tests\" \
-DTEST_PID_PATH=\"server_tests\" \
-DUNIT_TESTING \
$(NULL)
server_tests_LDADD = \
$(CMOCKA_LIBS) \
$(POPT_LIBS) \
$(TALLOC_LIBS) \
$(TEVENT_LIBS) \
$(abs_top_builddir)/libsss_util.la \
$(abs_top_builddir)/libsss_debug.la \
$(abs_top_builddir)/libsss_test_common.la \
$(NULL)
if BUILD_SYSTEMTAP
server_tests_LDADD += $(abs_top_builddir)/stap_generated_probes.lo
endif
usertools_tests_SOURCES = \
$(NULL)
usertools_tests_CFLAGS = \
$(AM_CFLAGS) \
$(NULL)
usertools_tests_LDADD = \
$(CMOCKA_LIBS) \
$(POPT_LIBS) \
$(TALLOC_LIBS) \
$(abs_top_builddir)/libsss_util.la \
$(abs_top_builddir)/libsss_debug.la \
$(abs_top_builddir)/libsss_test_common.la \
$(NULL)
if BUILD_SYSTEMTAP
usertools_tests_LDADD += $(abs_top_builddir)/stap_generated_probes.lo
endif
responder_common_tests_SOURCES =\
../../../src/responder/common/negcache_files.c \
../../../src/responder/common/negcache.c \
../../../src/responder/common/responder_common.c \
../../../src/responder/common/responder_packet.c \
../../../src/responder/common/responder_cmd.c \
$(NULL)
responder_common_tests_CFLAGS = \
$(AM_CFLAGS) \
$(NULL)
responder_common_tests_LDADD = \
$(CMOCKA_LIBS) \
$(SSSD_LIBS) \
$(SELINUX_LIBS) \
$(SYSTEMD_DAEMON_LIBS) \
$(abs_top_builddir)/libsss_util.la \
$(abs_top_builddir)/libsss_debug.la \
$(abs_top_builddir)/libsss_test_common.la \
$(NULL)
negcache_tests_SOURCES =\
$(SSSD_RESPONDER_OBJ) \
$(NULL)
negcache_tests_CFLAGS = \
$(AM_CFLAGS) \
-DBASE_FILE_STEM=\"$(*F)\" \
$(NULL)
negcache_tests_LDADD = \
$(CMOCKA_LIBS) \
$(SSSD_LIBS) \
$(SELINUX_LIBS) \
$(SYSTEMD_DAEMON_LIBS) \
$(abs_top_builddir)/libsss_util.la \
$(abs_top_builddir)/libsss_debug.la \
$(abs_top_builddir)/libsss_test_common.la \
$(NULL)
tests: $(check_PROGRAMS)