blob: c9946d786796531b3bec93bb15b06111b0eaf39c [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 = \
6 elog_unittest \
7 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 \
22 $(PTHREAD_LIBS) \
23 $(OESDK_TESTCASE_FLAGS) \
24 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
25 $(SDBUSPLUS_LIBS)
26
27test_ldadd = \
28 $(top_builddir)/elog_serialize.o \
29 $(top_builddir)/elog_entry.o \
30 $(top_builddir)/log_manager.o \
31 $(top_builddir)/org.openbmc.Associations.o \
32 $(top_builddir)/xyz/openbmc_project/Logging/Internal/Manager/server.o \
33 $(top_builddir)/elog_meta.o \
34 $(top_builddir)/elog-lookup.o \
35 $(top_builddir)/elog-process-metadata.o
36
37
38elog_unittest_CPPFLAGS = $(test_cppflags)
39elog_unittest_CXXFLAGS = $(test_cxxflags)
40elog_unittest_LDFLAGS = $(test_ldflags)
41elog_unittest_SOURCES = elog_unittest.cpp
42
43serialization_test_path_CPPFLAGS = $(test_cppflags)
44serialization_test_path_CXXFLAGS = $(test_cxxflags)
45serialization_test_path_SOURCES = serialization_test_path.cpp
46serialization_test_path_LDADD = $(test_ldadd)
47serialization_test_path_LDFLAGS = \
48 $(test_ldflags) \
49 -lstdc++fs
50
51serialization_test_properties_CPPFLAGS = $(test_cppflags)
52serialization_test_properties_CXXFLAGS = $(test_cxxflags)
53serialization_test_properties_SOURCES = serialization_test_properties.cpp
54serialization_test_properties_LDADD = $(test_ldadd)
55serialization_test_properties_LDFLAGS = \
56 $(test_ldflags) \
57 -lstdc++fs