Makefile.am 1.47 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
SUBDIRS = .

AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
AM_CPPFLAGS += $(BOOST_INCLUDES)
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/log -I$(top_builddir)/src/lib/log
AM_CXXFLAGS = $(B10_CXXFLAGS)

if USE_STATIC_LINK
AM_LDFLAGS = -static
endif

CLEANFILES = *.gcno *.gcda

TESTS =
if HAVE_GTEST
TESTS += run_unittests
run_unittests_SOURCES  = root_logger_name_unittest.cc
run_unittests_SOURCES += filename_unittest.cc
run_unittests_SOURCES += logger_unittest.cc
20
run_unittests_SOURCES += message_dictionary_unittest.cc
21
run_unittests_SOURCES += message_reader_unittest.cc
22
run_unittests_SOURCES += message_initializer_unittest.cc
23
run_unittests_SOURCES += message_initializer_unittest_2.cc
24
run_unittests_SOURCES += strutil_unittest.cc
25 26 27 28 29 30 31 32 33
run_unittests_SOURCES += xdebuglevel_unittest.cc
run_unittests_SOURCES += run_unittests.cc
run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
run_unittests_LDADD  = $(GTEST_LDADD)
run_unittests_LDADD += $(top_builddir)/src/lib/log/liblog.la
run_unittests_LDADD += -llog4cxx
endif

34 35 36 37 38 39
TESTS += logger_support_test
logger_support_test_SOURCES = logger_support_test.cc
logger_support_test_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
logger_support_test_LDFLAGS = $(AM_LDFLAGS)
logger_support_test_LDADD  = $(top_builddir)/src/lib/log/liblog.la

40
noinst_PROGRAMS = $(TESTS)
41 42 43 44 45

# Additional test using the shell
PYTESTS = run_time_init_test.sh
check-local:
	$(SHELL) $(abs_builddir)/run_time_init_test.sh