modules_add_contextual_data_tests_TESTS	= \
        modules/add-contextual-data/tests/test_filter_selector \
        modules/add-contextual-data/tests/test_template_selector \
        modules/add-contextual-data/tests/test_glob_selector

EXTRA_DIST += modules/add-contextual-data/tests/CMakeLists.txt

check_PROGRAMS				+= \
	${modules_add_contextual_data_tests_TESTS}

modules_add_contextual_data_tests_test_template_selector_CFLAGS   =       \
        $(TEST_CFLAGS) -I$(top_srcdir)/modules/add-contextual-data
modules_add_contextual_data_tests_test_template_selector_LDADD    =       \
        $(TEST_LDADD)					\
        $(PREOPEN_SYSLOGFORMAT)                         \
        -dlpreopen $(top_builddir)/modules/add-contextual-data/libadd-contextual-data.la


modules_add_contextual_data_tests_test_glob_selector_CFLAGS   =       \
        $(TEST_CFLAGS) -I$(top_srcdir)/modules/add-contextual-data
modules_add_contextual_data_tests_test_glob_selector_LDADD    =       \
        $(TEST_LDADD)					\
        $(PREOPEN_SYSLOGFORMAT)                         \
        -dlpreopen $(top_builddir)/modules/add-contextual-data/libadd-contextual-data.la


modules_add_contextual_data_tests_test_filter_selector_CFLAGS   =       \
        $(TEST_CFLAGS) -I$(top_srcdir)/modules/add-contextual-data
modules_add_contextual_data_tests_test_filter_selector_LDADD    =       \
        $(TEST_LDADD)					\
        $(PREOPEN_SYSLOGFORMAT)                         \
        -dlpreopen $(top_builddir)/modules/add-contextual-data/libadd-contextual-data.la

if HAVE_FMEMOPEN
modules_add_contextual_data_tests_TESTS += \
        modules/add-contextual-data/tests/test_context_info_db

modules_add_contextual_data_tests_test_context_info_db_CFLAGS   =       \
        $(TEST_CFLAGS) -I$(top_srcdir)/modules/add-contextual-data
modules_add_contextual_data_tests_test_context_info_db_LDADD    =       \
        $(TEST_LDADD)					\
        $(PREOPEN_SYSLOGFORMAT)                         \
	$(PREOPEN_BASICFUNCS)				\
        -dlpreopen $(top_builddir)/modules/add-contextual-data/libadd-contextual-data.la
endif
