blob: 0db165099e71d81980a93c9e12b0c39617659c34 [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 \
10 remote_logging_test_port
Deepak Kodihalli707a3e12017-06-14 03:56:12 -050011
12test_cppflags = \
13 -Igtest \
14 $(GTEST_CPPFLAGS) \
15 $(AM_CPPFLAGS) \
16 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
17 $(SDBUSPLUS_CFLAGS)
18
19test_cxxflags = \
20 $(PTHREAD_CFLAGS)
21
22test_ldflags = \
23 -lgtest_main -lgtest \
Nagaraju Goruganti477b7312018-06-25 23:28:58 -050024 -lgmock_main -lgmock \
Deepak Kodihalli707a3e12017-06-14 03:56:12 -050025 $(PTHREAD_LIBS) \
26 $(OESDK_TESTCASE_FLAGS) \
27 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
28 $(SDBUSPLUS_LIBS)
29
30test_ldadd = \
31 $(top_builddir)/elog_serialize.o \
32 $(top_builddir)/elog_entry.o \
33 $(top_builddir)/log_manager.o \
34 $(top_builddir)/org.openbmc.Associations.o \
35 $(top_builddir)/xyz/openbmc_project/Logging/Internal/Manager/server.o \
36 $(top_builddir)/elog_meta.o \
37 $(top_builddir)/elog-lookup.o \
38 $(top_builddir)/elog-process-metadata.o
39
Deepak Kodihalli834dcf12018-08-30 05:05:46 -050040remote_logging_test_ldadd = $(top_builddir)/phosphor-rsyslog-config/server-conf.o
Deepak Kodihalli707a3e12017-06-14 03:56:12 -050041
Nagaraju Goruganti477b7312018-06-25 23:28:58 -050042elog_errorwrap_test_CPPFLAGS = $(test_cppflags)
43elog_errorwrap_test_CXXFLAGS = $(test_cxxflags)
44elog_errorwrap_test_SOURCES = elog_errorwrap_test.cpp
45elog_errorwrap_test_LDADD = $(test_ldadd)
46elog_errorwrap_test_LDFLAGS = \
47 $(test_ldflags) \
48 -lstdc++fs
Deepak Kodihalli707a3e12017-06-14 03:56:12 -050049
50serialization_test_path_CPPFLAGS = $(test_cppflags)
51serialization_test_path_CXXFLAGS = $(test_cxxflags)
52serialization_test_path_SOURCES = serialization_test_path.cpp
53serialization_test_path_LDADD = $(test_ldadd)
54serialization_test_path_LDFLAGS = \
55 $(test_ldflags) \
56 -lstdc++fs
57
58serialization_test_properties_CPPFLAGS = $(test_cppflags)
59serialization_test_properties_CXXFLAGS = $(test_cxxflags)
60serialization_test_properties_SOURCES = serialization_test_properties.cpp
61serialization_test_properties_LDADD = $(test_ldadd)
62serialization_test_properties_LDFLAGS = \
63 $(test_ldflags) \
64 -lstdc++fs
Deepak Kodihalli834dcf12018-08-30 05:05:46 -050065
66remote_logging_test_address_CPPFLAGS = $(test_cppflags)
67remote_logging_test_address_CXXFLAGS = $(test_cxxflags)
68remote_logging_test_address_SOURCES = remote_logging_test_address.cpp
69remote_logging_test_address_LDADD = $(remote_logging_test_ldadd)
70remote_logging_test_address_LDFLAGS = \
71 $(test_ldflags) \
72 -lstdc++fs
73
74remote_logging_test_port_CPPFLAGS = $(test_cppflags)
75remote_logging_test_port_CXXFLAGS = $(test_cxxflags)
76remote_logging_test_port_SOURCES = remote_logging_test_port.cpp
77remote_logging_test_port_LDADD = $(remote_logging_test_ldadd)
78remote_logging_test_port_LDFLAGS = \
79 $(test_ldflags) \
80 -lstdc++fs