[syslog-ng] [PATCH (3.5)] lib/filter/tests: preload the syslogformat module

Gergely Nagy algernon at balabit.hu
Mon May 27 10:47:59 CEST 2013


When linking the filter test program, preload the syslogformat module,
so that make check will work without installing syslog-ng.

Signed-off-by: Gergely Nagy <algernon at balabit.hu>
---
 lib/filter/tests/Makefile.am |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/filter/tests/Makefile.am b/lib/filter/tests/Makefile.am
index 44326ec..025dd5d 100644
--- a/lib/filter/tests/Makefile.am
+++ b/lib/filter/tests/Makefile.am
@@ -5,6 +5,7 @@ check_PROGRAMS				+= ${lib_filter_tests_TESTS}
 
 lib_filter_tests_test_filters_CFLAGS  = $(TEST_CFLAGS) \
 	-I${top_srcdir}/lib/filter/tests
-lib_filter_tests_test_filters_LDADD	 = $(TEST_LDADD)
+lib_filter_tests_test_filters_LDADD	 = $(TEST_LDADD)	\
+	-dlpreopen ${top_builddir}/modules/syslogformat/libsyslogformat.la
 lib_filter_tests_test_filters_SOURCES = 			\
 	lib/filter/tests/test_filters.c
-- 
1.7.10.4




More information about the syslog-ng mailing list