blob: 08a25378e5235da314c615189c06f4257684dc3f [file] [log] [blame]
Deepak Kodihalli707a3e12017-06-14 03:56:12 -05001AM_CPPFLAGS = -I${top_srcdir}
Andrew Geissler328889d2016-10-10 12:43:48 -05002
Andrew Geissler328889d2016-10-10 12:43:48 -05003TESTS = $(check_PROGRAMS)
4
Deepak Kodihalli707a3e12017-06-14 03:56:12 -05005check_PROGRAMS = \
Nagaraju Goruganti477b7312018-06-25 23:28:58 -05006 elog_errorwrap_test \
Deepak Kodihalli707a3e12017-06-14 03:56:12 -05007 serialization_test_path \
Deepak Kodihalli834dcf12018-08-30 05:05:46 -05008 serialization_test_properties \
9 remote_logging_test_address \
Deepak Kodihalli5ac1bde2018-08-30 05:38:44 -050010 remote_logging_test_port \
11 remote_logging_test_config
Deepak Kodihalli707a3e12017-06-14 03:56:12 -050012
13test_cppflags = \
14 -Igtest \
15 $(GTEST_CPPFLAGS) \
16 $(AM_CPPFLAGS) \
17 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
18 $(SDBUSPLUS_CFLAGS)
19
20test_cxxflags = \
21 $(PTHREAD_CFLAGS)
22
23test_ldflags = \
24 -lgtest_main -lgtest \
Nagaraju Goruganti477b7312018-06-25 23:28:58 -050025 -lgmock_main -lgmock \
Deepak Kodihalli707a3e12017-06-14 03:56:12 -050026 $(PTHREAD_LIBS) \
27 $(OESDK_TESTCASE_FLAGS) \
28 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
29 $(SDBUSPLUS_LIBS)
30
31test_ldadd = \
32 $(top_builddir)/elog_serialize.o \
33 $(top_builddir)/elog_entry.o \
34 $(top_builddir)/log_manager.o \
35 $(top_builddir)/org.openbmc.Associations.o \
36 $(top_builddir)/xyz/openbmc_project/Logging/Internal/Manager/server.o \
37 $(top_builddir)/elog_meta.o \
38 $(top_builddir)/elog-lookup.o \
Patrick Venture59a6b1f2018-08-29 11:41:01 -070039 $(top_builddir)/elog-process-metadata.o \
40 $(top_builddir)/sdjournal.o
Deepak Kodihalli707a3e12017-06-14 03:56:12 -050041
Patrick Venture59a6b1f2018-08-29 11:41:01 -070042remote_logging_test_ldadd = \
43 $(top_builddir)/phosphor-rsyslog-config/server-conf.o \
44 $(top_builddir)/sdjournal.o
Deepak Kodihalli707a3e12017-06-14 03:56:12 -050045
Nagaraju Goruganti477b7312018-06-25 23:28:58 -050046elog_errorwrap_test_CPPFLAGS = $(test_cppflags)
47elog_errorwrap_test_CXXFLAGS = $(test_cxxflags)
48elog_errorwrap_test_SOURCES = elog_errorwrap_test.cpp
49elog_errorwrap_test_LDADD = $(test_ldadd)
50elog_errorwrap_test_LDFLAGS = \
51 $(test_ldflags) \
52 -lstdc++fs
Deepak Kodihalli707a3e12017-06-14 03:56:12 -050053
54serialization_test_path_CPPFLAGS = $(test_cppflags)
55serialization_test_path_CXXFLAGS = $(test_cxxflags)
56serialization_test_path_SOURCES = serialization_test_path.cpp
57serialization_test_path_LDADD = $(test_ldadd)
58serialization_test_path_LDFLAGS = \
59 $(test_ldflags) \
60 -lstdc++fs
61
62serialization_test_properties_CPPFLAGS = $(test_cppflags)
63serialization_test_properties_CXXFLAGS = $(test_cxxflags)
64serialization_test_properties_SOURCES = serialization_test_properties.cpp
65serialization_test_properties_LDADD = $(test_ldadd)
66serialization_test_properties_LDFLAGS = \
67 $(test_ldflags) \
68 -lstdc++fs
Deepak Kodihalli834dcf12018-08-30 05:05:46 -050069
70remote_logging_test_address_CPPFLAGS = $(test_cppflags)
71remote_logging_test_address_CXXFLAGS = $(test_cxxflags)
72remote_logging_test_address_SOURCES = remote_logging_test_address.cpp
73remote_logging_test_address_LDADD = $(remote_logging_test_ldadd)
74remote_logging_test_address_LDFLAGS = \
75 $(test_ldflags) \
76 -lstdc++fs
77
78remote_logging_test_port_CPPFLAGS = $(test_cppflags)
79remote_logging_test_port_CXXFLAGS = $(test_cxxflags)
80remote_logging_test_port_SOURCES = remote_logging_test_port.cpp
81remote_logging_test_port_LDADD = $(remote_logging_test_ldadd)
82remote_logging_test_port_LDFLAGS = \
83 $(test_ldflags) \
84 -lstdc++fs
Deepak Kodihalli5ac1bde2018-08-30 05:38:44 -050085
86remote_logging_test_config_CPPFLAGS = $(test_cppflags)
87remote_logging_test_config_CXXFLAGS = $(test_cxxflags)
88remote_logging_test_config_SOURCES = remote_logging_test_config.cpp
89remote_logging_test_config_LDADD = $(remote_logging_test_ldadd)
90remote_logging_test_config_LDFLAGS = \
91 $(test_ldflags) \
92 -lstdc++fs
Adriana Kobylak7d111a82018-09-04 10:14:24 -050093
94# TODO Remove once the test-case failure is resolved openbmc/phosphor-logging#11
95XFAIL_TESTS = elog_errorwrap_test