Simple test to check the recently implemented logind functionality. It also contains the changes to the build infrastructure, and the gitignore. Resolves: https://github.com/shadow-maint/shadow/issues/790 Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
33 lines
570 B
Makefile
33 lines
570 B
Makefile
AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)
|
|
|
|
if HAVE_CMOCKA
|
|
TESTS = $(check_PROGRAMS)
|
|
|
|
check_PROGRAMS =
|
|
|
|
if ENABLE_LOGIND
|
|
check_PROGRAMS += \
|
|
test_logind
|
|
endif # ENABLE_LOGIND
|
|
|
|
check_PROGRAMS += \
|
|
$(NULL)
|
|
|
|
test_logind_SOURCES = \
|
|
../../lib/logind.c \
|
|
test_logind.c \
|
|
$(NULL)
|
|
test_logind_CFLAGS = \
|
|
$(AM_CFLAGS) \
|
|
-lsystemd \
|
|
$(NULL)
|
|
test_logind_LDFLAGS = \
|
|
-Wl,-wrap,prefix_getpwnam \
|
|
-Wl,-wrap,sd_uid_get_sessions \
|
|
$(NULL)
|
|
test_logind_LDADD = \
|
|
$(CMOCKA_LIBS) \
|
|
$(LIBSYSTEMD) \
|
|
$(NULL)
|
|
endif # HAVE_CMOCKA
|