summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorAbhishek Singh <abhishekkumarsingh.cse@gmail.com>2013-03-23 01:36:44 +0530
committerJakub Hrozek <jhrozek@redhat.com>2013-04-10 14:14:36 +0200
commita65a64aee968bd2ac18156ced15a1e2509a8acba (patch)
tree8bce47f6e7e069e09c6c0df8f24e9a6b0ec4f638 /Makefile.am
parent6fc4702a3037d9bb5b27bcb58f70edf1802b7b19 (diff)
downloadsssd-a65a64aee968bd2ac18156ced15a1e2509a8acba.tar.gz
sssd-a65a64aee968bd2ac18156ced15a1e2509a8acba.tar.xz
sssd-a65a64aee968bd2ac18156ced15a1e2509a8acba.zip
cmocka unittest for find_uid added
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am21
1 files changed, 20 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 5039cf480..e12b769ce 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -146,7 +146,8 @@ endif
if HAVE_CMOCKA
non_interactive_cmocka_based_tests = \
- nss-srv-tests
+ nss-srv-tests \
+ test-find-uid
endif
check_PROGRAMS = \
@@ -1214,6 +1215,24 @@ nss_srv_tests_LDFLAGS = \
nss_srv_tests_LDADD = \
$(CMOCKA_LIBS) \
libsss_util.la
+
+test_find_uid_DEPENDENCIES = \
+ $(ldblib_LTLIBRARIES)
+test_find_uid_SOURCES = \
+ src/tests/cmocka/test_find_uid.c \
+ src/util/find_uid.c \
+ src/util/atomic_io.c \
+ src/util/strtonum.c
+test_find_uid_CFLAGS = \
+ $(AM_CFLAGS) \
+ $(TALLOC_CFLAGS) \
+ $(DHASH_CFLAGS)
+test_find_uid_LDADD = \
+ libsss_debug.la \
+ $(TALLOC_LIBS) \
+ $(DHASH_LIBS) \
+ $(CMOCKA_LIBS) \
+ libsss_util.la
endif
noinst_PROGRAMS = pam_test_client