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 = \ |
Nagaraju Goruganti | 477b731 | 2018-06-25 23:28:58 -0500 | [diff] [blame] | 6 | elog_errorwrap_test \ |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 7 | serialization_test_path \ |
Deepak Kodihalli | 834dcf1 | 2018-08-30 05:05:46 -0500 | [diff] [blame] | 8 | serialization_test_properties \ |
| 9 | remote_logging_test_address \ |
Deepak Kodihalli | 5ac1bde | 2018-08-30 05:38:44 -0500 | [diff] [blame] | 10 | remote_logging_test_port \ |
| 11 | remote_logging_test_config |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 12 | |
| 13 | test_cppflags = \ |
| 14 | -Igtest \ |
| 15 | $(GTEST_CPPFLAGS) \ |
| 16 | $(AM_CPPFLAGS) \ |
| 17 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 18 | $(SDBUSPLUS_CFLAGS) |
| 19 | |
| 20 | test_cxxflags = \ |
| 21 | $(PTHREAD_CFLAGS) |
| 22 | |
| 23 | test_ldflags = \ |
| 24 | -lgtest_main -lgtest \ |
Nagaraju Goruganti | 477b731 | 2018-06-25 23:28:58 -0500 | [diff] [blame] | 25 | -lgmock_main -lgmock \ |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 26 | $(PTHREAD_LIBS) \ |
| 27 | $(OESDK_TESTCASE_FLAGS) \ |
| 28 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 29 | $(SDBUSPLUS_LIBS) |
| 30 | |
| 31 | test_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 \ |
| 39 | $(top_builddir)/elog-process-metadata.o |
| 40 | |
Deepak Kodihalli | 834dcf1 | 2018-08-30 05:05:46 -0500 | [diff] [blame] | 41 | remote_logging_test_ldadd = $(top_builddir)/phosphor-rsyslog-config/server-conf.o |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 42 | |
Nagaraju Goruganti | 477b731 | 2018-06-25 23:28:58 -0500 | [diff] [blame] | 43 | elog_errorwrap_test_CPPFLAGS = $(test_cppflags) |
| 44 | elog_errorwrap_test_CXXFLAGS = $(test_cxxflags) |
| 45 | elog_errorwrap_test_SOURCES = elog_errorwrap_test.cpp |
| 46 | elog_errorwrap_test_LDADD = $(test_ldadd) |
| 47 | elog_errorwrap_test_LDFLAGS = \ |
| 48 | $(test_ldflags) \ |
| 49 | -lstdc++fs |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 50 | |
| 51 | serialization_test_path_CPPFLAGS = $(test_cppflags) |
| 52 | serialization_test_path_CXXFLAGS = $(test_cxxflags) |
| 53 | serialization_test_path_SOURCES = serialization_test_path.cpp |
| 54 | serialization_test_path_LDADD = $(test_ldadd) |
| 55 | serialization_test_path_LDFLAGS = \ |
| 56 | $(test_ldflags) \ |
| 57 | -lstdc++fs |
| 58 | |
| 59 | serialization_test_properties_CPPFLAGS = $(test_cppflags) |
| 60 | serialization_test_properties_CXXFLAGS = $(test_cxxflags) |
| 61 | serialization_test_properties_SOURCES = serialization_test_properties.cpp |
| 62 | serialization_test_properties_LDADD = $(test_ldadd) |
| 63 | serialization_test_properties_LDFLAGS = \ |
| 64 | $(test_ldflags) \ |
| 65 | -lstdc++fs |
Deepak Kodihalli | 834dcf1 | 2018-08-30 05:05:46 -0500 | [diff] [blame] | 66 | |
| 67 | remote_logging_test_address_CPPFLAGS = $(test_cppflags) |
| 68 | remote_logging_test_address_CXXFLAGS = $(test_cxxflags) |
| 69 | remote_logging_test_address_SOURCES = remote_logging_test_address.cpp |
| 70 | remote_logging_test_address_LDADD = $(remote_logging_test_ldadd) |
| 71 | remote_logging_test_address_LDFLAGS = \ |
| 72 | $(test_ldflags) \ |
| 73 | -lstdc++fs |
| 74 | |
| 75 | remote_logging_test_port_CPPFLAGS = $(test_cppflags) |
| 76 | remote_logging_test_port_CXXFLAGS = $(test_cxxflags) |
| 77 | remote_logging_test_port_SOURCES = remote_logging_test_port.cpp |
| 78 | remote_logging_test_port_LDADD = $(remote_logging_test_ldadd) |
| 79 | remote_logging_test_port_LDFLAGS = \ |
| 80 | $(test_ldflags) \ |
| 81 | -lstdc++fs |
Deepak Kodihalli | 5ac1bde | 2018-08-30 05:38:44 -0500 | [diff] [blame] | 82 | |
| 83 | remote_logging_test_config_CPPFLAGS = $(test_cppflags) |
| 84 | remote_logging_test_config_CXXFLAGS = $(test_cxxflags) |
| 85 | remote_logging_test_config_SOURCES = remote_logging_test_config.cpp |
| 86 | remote_logging_test_config_LDADD = $(remote_logging_test_ldadd) |
| 87 | remote_logging_test_config_LDFLAGS = \ |
| 88 | $(test_ldflags) \ |
| 89 | -lstdc++fs |
Adriana Kobylak | 7d111a8 | 2018-09-04 10:14:24 -0500 | [diff] [blame] | 90 | |
| 91 | # TODO Remove once the test-case failure is resolved openbmc/phosphor-logging#11 |
| 92 | XFAIL_TESTS = elog_errorwrap_test |