Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 1 | AM_CPPFLAGS = -I${top_srcdir} |
Andrew Geissler | 328889d | 2016-10-10 12:43:48 -0500 | [diff] [blame] | 2 | |
Andrew Geissler | 328889d | 2016-10-10 12:43:48 -0500 | [diff] [blame] | 3 | TESTS = $(check_PROGRAMS) |
| 4 | |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 5 | check_PROGRAMS = \ |
| 6 | elog_unittest \ |
| 7 | serialization_test_path \ |
| 8 | serialization_test_properties |
| 9 | |
| 10 | test_cppflags = \ |
| 11 | -Igtest \ |
| 12 | $(GTEST_CPPFLAGS) \ |
| 13 | $(AM_CPPFLAGS) \ |
| 14 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 15 | $(SDBUSPLUS_CFLAGS) |
| 16 | |
| 17 | test_cxxflags = \ |
| 18 | $(PTHREAD_CFLAGS) |
| 19 | |
| 20 | test_ldflags = \ |
| 21 | -lgtest_main -lgtest \ |
| 22 | $(PTHREAD_LIBS) \ |
| 23 | $(OESDK_TESTCASE_FLAGS) \ |
| 24 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 25 | $(SDBUSPLUS_LIBS) |
| 26 | |
| 27 | test_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 | |
| 38 | elog_unittest_CPPFLAGS = $(test_cppflags) |
| 39 | elog_unittest_CXXFLAGS = $(test_cxxflags) |
| 40 | elog_unittest_LDFLAGS = $(test_ldflags) |
| 41 | elog_unittest_SOURCES = elog_unittest.cpp |
| 42 | |
| 43 | serialization_test_path_CPPFLAGS = $(test_cppflags) |
| 44 | serialization_test_path_CXXFLAGS = $(test_cxxflags) |
| 45 | serialization_test_path_SOURCES = serialization_test_path.cpp |
| 46 | serialization_test_path_LDADD = $(test_ldadd) |
| 47 | serialization_test_path_LDFLAGS = \ |
| 48 | $(test_ldflags) \ |
| 49 | -lstdc++fs |
| 50 | |
| 51 | serialization_test_properties_CPPFLAGS = $(test_cppflags) |
| 52 | serialization_test_properties_CXXFLAGS = $(test_cxxflags) |
| 53 | serialization_test_properties_SOURCES = serialization_test_properties.cpp |
| 54 | serialization_test_properties_LDADD = $(test_ldadd) |
| 55 | serialization_test_properties_LDFLAGS = \ |
| 56 | $(test_ldflags) \ |
| 57 | -lstdc++fs |