From f4025ea817b3467be1c2e6092014a11fe4547c0d Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 4 Jun 2015 11:04:41 +0200 Subject: TESTS: Add unit test for the subdomain_server.c module Reviewed-by: Sumit Bose --- Makefile.am | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index db5b23242..4eed1069b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -227,6 +227,7 @@ if HAVE_CMOCKA test_fo_srv \ pam-srv-tests \ test_ipa_subdom_util \ + test_ipa_subdom_server \ $(NULL) if HAVE_LIBRESOLV @@ -2441,6 +2442,36 @@ test_ipa_subdom_util_LDADD = \ libsss_test_common.la \ $(NULL) +test_ipa_subdom_server_SOURCES = \ + $(sssd_be_SOURCES) \ + $(libsss_krb5_common_la_SOURCES) \ + src/tests/cmocka/common_mock_sdap.c \ + src/tests/cmocka/common_mock_be.c \ + src/tests/cmocka/common_mock_krb5.c \ + src/tests/cmocka/test_ipa_subdomains_server.c \ + src/providers/ipa/ipa_subdomains_server.c \ + src/providers/ipa/ipa_subdomains_utils.c \ + $(NULL) +test_ipa_subdom_server_CFLAGS = \ + $(AM_CFLAGS) \ + -DUNIT_TESTING \ + $(NULL) +test_ipa_subdom_server_LDFLAGS = \ + -Wl,-wrap,krb5_kt_default \ + $(NULL) +test_ipa_subdom_server_LDADD = \ + $(PAM_LIBS) \ + $(CMOCKA_LIBS) \ + $(SSSD_LIBS) \ + $(CARES_LIBS) \ + $(KRB5_LIBS) \ + $(SSSD_INTERNAL_LTLIBS) \ + libsss_ldap_common.la \ + libsss_idmap.la \ + libsss_ad_common.la \ + libsss_test_common.la \ + $(NULL) + endif # HAVE_CMOCKA noinst_PROGRAMS = pam_test_client -- cgit