blob: 68ad467288e19bda26985a575ed5ed6cb4f56bdf [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 \
8 serialization_test_properties
9
10test_cppflags = \
11 -Igtest \
12 $(GTEST_CPPFLAGS) \
13 $(AM_CPPFLAGS) \
14 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
15 $(SDBUSPLUS_CFLAGS)
16
17test_cxxflags = \
18 $(PTHREAD_CFLAGS)
19
20test_ldflags = \
21 -lgtest_main -lgtest \
Nagaraju Goruganti477b7312018-06-25 23:28:58 -050022 -lgmock_main -lgmock \
Deepak Kodihalli707a3e12017-06-14 03:56:12 -050023 $(PTHREAD_LIBS) \
24 $(OESDK_TESTCASE_FLAGS) \
25 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
26 $(SDBUSPLUS_LIBS)
27
28test_ldadd = \
29 $(top_builddir)/elog_serialize.o \
30 $(top_builddir)/elog_entry.o \
31 $(top_builddir)/log_manager.o \
32 $(top_builddir)/org.openbmc.Associations.o \
33 $(top_builddir)/xyz/openbmc_project/Logging/Internal/Manager/server.o \
34 $(top_builddir)/elog_meta.o \
35 $(top_builddir)/elog-lookup.o \
36 $(top_builddir)/elog-process-metadata.o
37
38
Nagaraju Goruganti477b7312018-06-25 23:28:58 -050039elog_errorwrap_test_CPPFLAGS = $(test_cppflags)
40elog_errorwrap_test_CXXFLAGS = $(test_cxxflags)
41elog_errorwrap_test_SOURCES = elog_errorwrap_test.cpp
42elog_errorwrap_test_LDADD = $(test_ldadd)
43elog_errorwrap_test_LDFLAGS = \
44 $(test_ldflags) \
45 -lstdc++fs
Deepak Kodihalli707a3e12017-06-14 03:56:12 -050046
47serialization_test_path_CPPFLAGS = $(test_cppflags)
48serialization_test_path_CXXFLAGS = $(test_cxxflags)
49serialization_test_path_SOURCES = serialization_test_path.cpp
50serialization_test_path_LDADD = $(test_ldadd)
51serialization_test_path_LDFLAGS = \
52 $(test_ldflags) \
53 -lstdc++fs
54
55serialization_test_properties_CPPFLAGS = $(test_cppflags)
56serialization_test_properties_CXXFLAGS = $(test_cxxflags)
57serialization_test_properties_SOURCES = serialization_test_properties.cpp
58serialization_test_properties_LDADD = $(test_ldadd)
59serialization_test_properties_LDFLAGS = \
60 $(test_ldflags) \
61 -lstdc++fs