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