[PATCH (3.5)] lib/filter/tests: preload the syslogformat module
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@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
Hi, I already had a patch pushed with the same fix. commit 618908d1f5ceff30792cdff1f4e0a703a2094d79 Author: Balazs Scheidler <bazsi@balabit.hu> Date: Mon May 27 16:32:13 2013 +0200 lib/filter/tests/test_filters: fix builds in the uninstalled case This patch adds -dlpreopen syslogformat to test_filters so that it can find the syslogformat module while testing even if syslog-ng is not installed. Signed-off-by: Balazs Scheidler <bazsi@balabit.hu> On h, 2013-05-27 at 10:47 +0200, Gergely Nagy wrote:
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@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
participants (2)
-
Balazs Scheidler
-
Gergely Nagy