From d064fef06dcbcb5f6c1be03e286b1a3433d6dfd7 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Mon, 10 Jun 2013 12:06:45 +0200 Subject: Add cmocka based tests for libsss_idmap This patch implements some unit tests for the recent enhancements to libsss_idmap. --- Makefile.am | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 88e29fff4..62f21af6d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -147,7 +147,8 @@ if HAVE_CMOCKA test-io \ sss_nss_idmap-tests \ dyndns-tests \ - fqnames-tests + fqnames-tests \ + test_sss_idmap endif check_PROGRAMS = \ @@ -1298,6 +1299,17 @@ fqnames_tests_LDADD = \ $(SSSD_INTERNAL_LTLIBS) \ libsss_test_common.la +test_sss_idmap_SOURCES = \ + $(TEST_MOCK_OBJ) \ + src/tests/cmocka/test_sss_idmap.c +test_sss_idmap_CFLAGS = \ + $(AM_CFLAGS) +test_sss_idmap_LDADD = \ + $(CMOCKA_LIBS) \ + libsss_idmap.la \ + $(SSSD_INTERNAL_LTLIBS) \ + libsss_test_common.la + endif noinst_PROGRAMS = pam_test_client -- cgit