From c8586fd938d5d8fd3db117aa9a496b9a95ca0bfc Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 20 Jul 2009 16:40:22 +0200 Subject: Add async resolver tests Add some basic unit tests of the async resolver module. One of the tests resolves a name on the Internet, therefore it is off by default and is turned on with the -n switch. --- server/Makefile.am | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'server/Makefile.am') diff --git a/server/Makefile.am b/server/Makefile.am index 4ee344bb..4398259b 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -52,7 +52,8 @@ sssdlibexec_PROGRAMS = \ if BUILD_TESTS noinst_PROGRAMS = \ sysdb-tests \ - stress-tests + stress-tests \ + resolv-tests endif sssdlib_LTLIBRARIES = \ @@ -328,6 +329,17 @@ stress_tests_SOURCES = \ stress_tests_LDADD = \ $(SSSD_LIBS) +resolv_tests_SOURCES = \ + tests/resolv-tests.c \ + $(SSSD_UTIL_OBJ) \ + $(SSSD_RESOLV_OBJ) +resolv_tests_CFLAGS = \ + $(CHECK_CFLAGS) +resolv_tests_LDADD = \ + $(SSSD_LIBS) \ + $(CHECK_LIBS) \ + $(CARES_LIBS) + endif #BUILD_TESTS #################### -- cgit