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 \ |
Patrick Venture | 31552c0 | 2018-12-03 19:09:55 -0800 | [diff] [blame] | 11 | remote_logging_test_config \ |
Matt Spinler | 99c2b40 | 2019-05-23 14:29:16 -0500 | [diff] [blame] | 12 | sdjournal_mock_test \ |
| 13 | extensions_test |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 14 | |
| 15 | test_cppflags = \ |
| 16 | -Igtest \ |
| 17 | $(GTEST_CPPFLAGS) \ |
| 18 | $(AM_CPPFLAGS) \ |
| 19 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 20 | $(SDBUSPLUS_CFLAGS) |
| 21 | |
| 22 | test_cxxflags = \ |
| 23 | $(PTHREAD_CFLAGS) |
| 24 | |
| 25 | test_ldflags = \ |
| 26 | -lgtest_main -lgtest \ |
Matt Spinler | 1787c52 | 2019-07-09 12:58:37 -0500 | [diff] [blame] | 27 | -lgmock -lstdc++fs \ |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 28 | $(PTHREAD_LIBS) \ |
| 29 | $(OESDK_TESTCASE_FLAGS) \ |
| 30 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 31 | $(SDBUSPLUS_LIBS) |
| 32 | |
| 33 | test_ldadd = \ |
| 34 | $(top_builddir)/elog_serialize.o \ |
| 35 | $(top_builddir)/elog_entry.o \ |
| 36 | $(top_builddir)/log_manager.o \ |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 37 | $(top_builddir)/xyz/openbmc_project/Logging/Internal/Manager/server.o \ |
| 38 | $(top_builddir)/elog_meta.o \ |
| 39 | $(top_builddir)/elog-lookup.o \ |
Patrick Venture | 59a6b1f | 2018-08-29 11:41:01 -0700 | [diff] [blame] | 40 | $(top_builddir)/elog-process-metadata.o \ |
Matt Spinler | 99c2b40 | 2019-05-23 14:29:16 -0500 | [diff] [blame] | 41 | $(top_builddir)/sdjournal.o \ |
| 42 | $(top_builddir)/extensions.o |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 43 | |
Patrick Venture | 59a6b1f | 2018-08-29 11:41:01 -0700 | [diff] [blame] | 44 | remote_logging_test_ldadd = \ |
| 45 | $(top_builddir)/phosphor-rsyslog-config/server-conf.o \ |
| 46 | $(top_builddir)/sdjournal.o |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 47 | |
Nagaraju Goruganti | 477b731 | 2018-06-25 23:28:58 -0500 | [diff] [blame] | 48 | elog_errorwrap_test_CPPFLAGS = $(test_cppflags) |
| 49 | elog_errorwrap_test_CXXFLAGS = $(test_cxxflags) |
| 50 | elog_errorwrap_test_SOURCES = elog_errorwrap_test.cpp |
| 51 | elog_errorwrap_test_LDADD = $(test_ldadd) |
| 52 | elog_errorwrap_test_LDFLAGS = \ |
Matt Spinler | 1787c52 | 2019-07-09 12:58:37 -0500 | [diff] [blame] | 53 | $(test_ldflags) |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 54 | |
| 55 | serialization_test_path_CPPFLAGS = $(test_cppflags) |
| 56 | serialization_test_path_CXXFLAGS = $(test_cxxflags) |
| 57 | serialization_test_path_SOURCES = serialization_test_path.cpp |
| 58 | serialization_test_path_LDADD = $(test_ldadd) |
| 59 | serialization_test_path_LDFLAGS = \ |
Matt Spinler | 1787c52 | 2019-07-09 12:58:37 -0500 | [diff] [blame] | 60 | $(test_ldflags) |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 61 | |
| 62 | serialization_test_properties_CPPFLAGS = $(test_cppflags) |
| 63 | serialization_test_properties_CXXFLAGS = $(test_cxxflags) |
| 64 | serialization_test_properties_SOURCES = serialization_test_properties.cpp |
| 65 | serialization_test_properties_LDADD = $(test_ldadd) |
| 66 | serialization_test_properties_LDFLAGS = \ |
Matt Spinler | 1787c52 | 2019-07-09 12:58:37 -0500 | [diff] [blame] | 67 | $(test_ldflags) |
Deepak Kodihalli | 834dcf1 | 2018-08-30 05:05:46 -0500 | [diff] [blame] | 68 | |
| 69 | remote_logging_test_address_CPPFLAGS = $(test_cppflags) |
| 70 | remote_logging_test_address_CXXFLAGS = $(test_cxxflags) |
| 71 | remote_logging_test_address_SOURCES = remote_logging_test_address.cpp |
| 72 | remote_logging_test_address_LDADD = $(remote_logging_test_ldadd) |
| 73 | remote_logging_test_address_LDFLAGS = \ |
Matt Spinler | 1787c52 | 2019-07-09 12:58:37 -0500 | [diff] [blame] | 74 | $(test_ldflags) |
Deepak Kodihalli | 834dcf1 | 2018-08-30 05:05:46 -0500 | [diff] [blame] | 75 | |
| 76 | remote_logging_test_port_CPPFLAGS = $(test_cppflags) |
| 77 | remote_logging_test_port_CXXFLAGS = $(test_cxxflags) |
| 78 | remote_logging_test_port_SOURCES = remote_logging_test_port.cpp |
| 79 | remote_logging_test_port_LDADD = $(remote_logging_test_ldadd) |
| 80 | remote_logging_test_port_LDFLAGS = \ |
Matt Spinler | 1787c52 | 2019-07-09 12:58:37 -0500 | [diff] [blame] | 81 | $(test_ldflags) |
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 = \ |
Matt Spinler | 1787c52 | 2019-07-09 12:58:37 -0500 | [diff] [blame] | 88 | $(test_ldflags) |
Adriana Kobylak | 7d111a8 | 2018-09-04 10:14:24 -0500 | [diff] [blame] | 89 | |
Patrick Venture | 31552c0 | 2018-12-03 19:09:55 -0800 | [diff] [blame] | 90 | sdjournal_mock_test_CPPFLAGS = $(test_cppflags) |
| 91 | sdjournal_mock_test_CXXFLAGS = $(test_cxxflags) |
| 92 | sdjournal_mock_test_SOURCES = sdtest.cpp |
| 93 | sdjournal_mock_test_LDADD = $(top_builddir)/sdjournal.o |
| 94 | sdjournal_mock_test_LDFLAGS = $(test_ldflags) |
| 95 | |
Matt Spinler | 99c2b40 | 2019-05-23 14:29:16 -0500 | [diff] [blame] | 96 | extensions_test_CPPFLAGS = $(test_cppflags) |
| 97 | extensions_test_CXXFLAGS = $(test_cxxflags) |
| 98 | extensions_test_SOURCES = extensions_test.cpp |
| 99 | extensions_test_LDADD = \ |
| 100 | $(top_builddir)/elog_entry.o \ |
| 101 | $(top_builddir)/elog-lookup.o \ |
| 102 | $(top_builddir)/elog_meta.o \ |
| 103 | $(top_builddir)/elog-process-metadata.o \ |
| 104 | $(top_builddir)/elog_serialize.o \ |
| 105 | $(top_builddir)/log_manager.o \ |
Matt Spinler | 99c2b40 | 2019-05-23 14:29:16 -0500 | [diff] [blame] | 106 | $(top_builddir)/xyz/openbmc_project/Logging/Internal/Manager/server.o |
Matt Spinler | 1787c52 | 2019-07-09 12:58:37 -0500 | [diff] [blame] | 107 | extensions_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | 99c2b40 | 2019-05-23 14:29:16 -0500 | [diff] [blame] | 108 | |
Adriana Kobylak | 7d111a8 | 2018-09-04 10:14:24 -0500 | [diff] [blame] | 109 | # TODO Remove once the test-case failure is resolved openbmc/phosphor-logging#11 |
| 110 | XFAIL_TESTS = elog_errorwrap_test |
Matt Spinler | 15ee6ae | 2019-07-08 16:50:06 -0500 | [diff] [blame] | 111 | |
| 112 | if ENABLE_PEL_EXTENSION |
| 113 | include openpower-pels/Makefile.include |
| 114 | endif |