diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-07-27 14:44:24 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-10 13:56:08 +0200 |
commit | 428db8a58c0c149d5efccc6d788f70916c1d34d7 (patch) | |
tree | 531147790cdabf2d81b56915bed7e3e29d878efe /src/tests/cwrap/Makefile.am | |
parent | 40b2be4f4312470044cdef460b02b66003f5c85f (diff) | |
download | sssd-428db8a58c0c149d5efccc6d788f70916c1d34d7.tar.gz sssd-428db8a58c0c149d5efccc6d788f70916c1d34d7.tar.xz sssd-428db8a58c0c149d5efccc6d788f70916c1d34d7.zip |
TESTS: Add a test to change user IDs
Adds a unit test using the nss_wrapper and uid_wrapper libraries that
exercises the ability to become another user.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/tests/cwrap/Makefile.am')
-rw-r--r-- | src/tests/cwrap/Makefile.am | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/tests/cwrap/Makefile.am b/src/tests/cwrap/Makefile.am new file mode 100644 index 000000000..34aec92c1 --- /dev/null +++ b/src/tests/cwrap/Makefile.am @@ -0,0 +1,47 @@ +AM_CPPFLAGS = \ + -Wall \ + -I$(top_srcdir)/src \ + -I. \ + $(DBUS_CFLAGS) \ + $(NULL) + +TESTS_ENVIRONMENT = \ + CWRAP_TEST_SRCDIR=$(abs_srcdir) \ + . $(srcdir)/cwrap_test_setup.sh; \ + $(AUX_TESTS_ENVIRONMENT) \ + $(NULL) + +dist_noinst_SCRIPTS = \ + cwrap_test_setup.sh \ + $(NULL) + +dist_noinst_DATA = \ + group \ + passwd \ + $(NULL) + +check_PROGRAMS = +if HAVE_CMOCKA +if HAVE_NSS_WRAPPER +if HAVE_UID_WRAPPER +check_PROGRAMS += become_user-tests +endif # HAVE_UID_WRAPPER +endif # HAVE_NSS_WRAPPER +endif # HAVE_CMOCKA + +TESTS = $(check_PROGRAMS) + +become_user_tests_SOURCES = \ + test_become_user.c \ + $(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) + +tests: $(check_PROGRAMS) |