From a65a64aee968bd2ac18156ced15a1e2509a8acba Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Sat, 23 Mar 2013 01:36:44 +0530 Subject: cmocka unittest for find_uid added --- Makefile.am | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'Makefile.am') 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 -- cgit