blob: a098ad9d85c31631502e7d04e3034c97e8b55e2f [file] [log] [blame]
Matt Spinler15ee6ae2019-07-08 16:50:06 -05001TESTS += $(check_PROGRAMS)
2
3check_PROGRAMS += \
Matt Spinler113ad282019-07-09 14:44:13 -05004 additional_data_test \
Matt Spinler6852d722019-09-30 15:35:53 -05005 ascii_string_test \
Matt Spinlerdf797f22019-07-09 15:39:51 -05006 bcd_time_test \
Matt Spinler18c42b02020-06-02 15:59:50 -05007 device_callouts_test \
Matt Spinlerf682b402019-12-18 13:48:08 -06008 event_logger_test \
Matt Spinler386a61e2020-08-13 15:51:12 -05009 extended_user_data_test \
Matt Spinlerc63e2e82019-12-02 15:50:12 -060010 extended_user_header_test \
Matt Spinler09d64002019-09-11 14:29:46 -050011 failing_mtms_test \
Matt Spinlera906c942019-10-08 13:42:05 -050012 fru_identity_test \
Matt Spinler14d671f2019-09-25 13:11:22 -050013 generic_section_test \
Matt Spinlerf60ac272019-12-11 13:47:50 -060014 host_notifier_test \
Harisuddin Mohamed Isae2d1bf32020-02-06 17:32:38 +080015 json_utils_test \
Matt Spinlerdf13bdb2019-07-10 16:54:13 -050016 log_id_test \
Matt Spinler90b4a0a2019-10-09 10:08:43 -050017 mru_test \
Matt Spinlerb6664332019-09-10 15:24:10 -050018 mtms_test \
Matt Spinler5b3a11d2019-10-08 14:13:31 -050019 pce_identity_test \
Matt Spinlerf1e85e22019-11-01 11:31:31 -050020 pel_manager_test \
21 pel_rules_test \
Matt Spinlercb6b0592019-07-16 15:58:51 -050022 pel_test \
Matt Spinler835a8692019-08-27 13:56:05 -050023 pel_values_test \
Matt Spinlerd3335df2019-07-10 11:04:21 -050024 private_header_test \
Matt Spinler07eefc52019-09-26 11:18:26 -050025 real_pel_test \
Matt Spinler367144c2019-09-19 15:33:52 -050026 registry_test \
Matt Spinler89fa0822019-07-17 13:54:30 -050027 repository_test \
Matt Spinler1b5c72b2019-07-10 10:32:06 -050028 section_header_test \
Matt Spinler05f0c6d2020-08-05 14:21:06 -050029 service_indicators_test \
Matt Spinler8c686cc2019-09-20 13:46:02 -050030 severity_test \
Matt Spinlerf9bae182019-10-09 13:37:38 -050031 src_test \
Matt Spinler6c9662c2019-10-09 11:27:20 -050032 src_callout_test \
Matt Spinler32f13c92019-10-09 12:48:25 -050033 src_callouts_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050034 stream_test \
Aatir Manzur51c92632019-09-06 13:30:48 -050035 user_data_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050036 user_header_test
Matt Spinler15ee6ae2019-07-08 16:50:06 -050037
Matt Spinlerd3335df2019-07-10 11:04:21 -050038pel_objects = \
Matt Spinlerf9bae182019-10-09 13:37:38 -050039 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050040 $(top_builddir)/extensions/openpower-pels/callout.o \
41 $(top_builddir)/extensions/openpower-pels/callouts.o \
Matt Spinler18c42b02020-06-02 15:59:50 -050042 $(top_builddir)/extensions/openpower-pels/device_callouts.o \
Matt Spinler386a61e2020-08-13 15:51:12 -050043 $(top_builddir)/extensions/openpower-pels/extended_user_data.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -060044 $(top_builddir)/extensions/openpower-pels/extended_user_header.o \
Matt Spinler131870c2019-09-25 13:29:04 -050045 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050046 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
Matt Spinler131870c2019-09-25 13:29:04 -050047 $(top_builddir)/extensions/openpower-pels/generic.o \
Harisuddin Mohamed Isa600d15a2019-12-20 12:42:26 +080048 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050049 $(top_builddir)/extensions/openpower-pels/log_id.o \
Matt Spinler131870c2019-09-25 13:29:04 -050050 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050051 $(top_builddir)/extensions/openpower-pels/mru.o \
52 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050053 $(top_builddir)/extensions/openpower-pels/pel.o \
Matt Spinlerf1e85e22019-11-01 11:31:31 -050054 $(top_builddir)/extensions/openpower-pels/pel_rules.o \
Matt Spinler367144c2019-09-19 15:33:52 -050055 $(top_builddir)/extensions/openpower-pels/pel_values.o \
Matt Spinler03c1d912019-07-10 14:12:15 -050056 $(top_builddir)/extensions/openpower-pels/private_header.o \
Matt Spinler367144c2019-09-19 15:33:52 -050057 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinler131870c2019-09-25 13:29:04 -050058 $(top_builddir)/extensions/openpower-pels/section_factory.o \
Matt Spinler8c686cc2019-09-20 13:46:02 -050059 $(top_builddir)/extensions/openpower-pels/severity.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050060 $(top_builddir)/extensions/openpower-pels/src.o \
Aatir Manzur51c92632019-09-06 13:30:48 -050061 $(top_builddir)/extensions/openpower-pels/user_data.o \
Matt Spinler22421b92020-07-17 09:41:08 -050062 $(top_builddir)/extensions/openpower-pels/user_header.o \
63 $(FMT_LIBS)
Matt Spinlerd3335df2019-07-10 11:04:21 -050064
Matt Spinlere4e11dc2020-06-02 09:54:10 -050065pel_test_utils_ldadd = \
Matt Spinler454f6562020-07-07 11:22:47 -050066 $(top_builddir)/extensions/openpower-pels/bcd_time.o \
Matt Spinlere4e11dc2020-06-02 09:54:10 -050067 $(top_builddir)/test/openpower-pels/pel_utils.o \
68 $(top_builddir)/test/openpower-pels/paths.o
69
Matt Spinler15ee6ae2019-07-08 16:50:06 -050070additional_data_test_SOURCES = %reldir%/additional_data_test.cpp
71additional_data_test_CPPFLAGS = $(test_cppflags)
72additional_data_test_CXXFLAGS = $(test_cxxflags)
73additional_data_test_LDADD = $(test_ldadd)
74additional_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler113ad282019-07-09 14:44:13 -050075
76stream_test_SOURCES = %reldir%/stream_test.cpp
77stream_test_CPPFLAGS = $(test_cppflags)
78stream_test_CXXFLAGS = $(test_cxxflags)
79stream_test_LDADD = $(test_ldadd)
Matt Spinlerdf797f22019-07-09 15:39:51 -050080stream_test_LDFLAGS = $(test_ldflags)
81
82bcd_time_test_SOURCES = \
83 %reldir%/bcd_time_test.cpp
84bcd_time_test_CPPFLAGS = $(test_cppflags)
85bcd_time_test_CXXFLAGS = $(test_cxxflags)
86bcd_time_test_LDADD = \
87 $(test_ldadd) \
88 $(top_builddir)/extensions/openpower-pels/bcd_time.o
Matt Spinler1b5c72b2019-07-10 10:32:06 -050089bcd_time_test_LDFLAGS = $(test_ldflags)
90
91section_header_test_SOURCES = \
92 %reldir%/section_header_test.cpp
93section_header_test_CPPFLAGS = $(test_cppflags)
94section_header_test_CXXFLAGS = $(test_cxxflags)
95section_header_test_LDADD = $(test_ldadd)
Matt Spinlerd3335df2019-07-10 11:04:21 -050096section_header_test_LDFLAGS = $(test_ldflags)
97
98private_header_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -050099 %reldir%/private_header_test.cpp
Matt Spinlerd3335df2019-07-10 11:04:21 -0500100private_header_test_CPPFLAGS = $(test_cppflags)
101private_header_test_CXXFLAGS = $(test_cxxflags)
102private_header_test_LDADD = \
103 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500104 $(pel_test_utils_ldadd) \
Matt Spinlerd3335df2019-07-10 11:04:21 -0500105 $(pel_objects)
106private_header_test_LDFLAGS = $(test_ldflags)
Matt Spinler03c1d912019-07-10 14:12:15 -0500107
108user_header_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500109 %reldir%/user_header_test.cpp
Matt Spinler03c1d912019-07-10 14:12:15 -0500110user_header_test_CPPFLAGS = $(test_cppflags)
111user_header_test_CXXFLAGS = $(test_cxxflags)
112user_header_test_LDADD = \
113 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500114 $(pel_test_utils_ldadd) \
Matt Spinler03c1d912019-07-10 14:12:15 -0500115 $(pel_objects)
116user_header_test_LDFLAGS = $(test_ldflags)
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500117
118log_id_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500119 %reldir%/log_id_test.cpp
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500120log_id_test_CPPFLAGS = $(test_cppflags)
121log_id_test_CXXFLAGS = $(test_cxxflags)
122log_id_test_LDADD = \
123 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500124 $(pel_test_utils_ldadd) \
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500125 $(top_builddir)/extensions/openpower-pels/log_id.o
126log_id_test_LDFLAGS = $(test_ldflags)
Matt Spinlercb6b0592019-07-16 15:58:51 -0500127
128pel_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500129 %reldir%/pel_test.cpp
Matt Spinlercb6b0592019-07-16 15:58:51 -0500130pel_test_CPPFLAGS = $(test_cppflags)
131pel_test_CXXFLAGS = $(test_cxxflags)
132pel_test_LDADD = \
133 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500134 $(pel_test_utils_ldadd) \
Matt Spinlercb6b0592019-07-16 15:58:51 -0500135 $(pel_objects)
136pel_test_LDFLAGS = $(test_ldflags)
Matt Spinler89fa0822019-07-17 13:54:30 -0500137
Matt Spinler07eefc52019-09-26 11:18:26 -0500138real_pel_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500139 %reldir%/real_pel_test.cpp
Matt Spinler07eefc52019-09-26 11:18:26 -0500140real_pel_test_CPPFLAGS = $(test_cppflags)
141real_pel_test_CXXFLAGS = $(test_cxxflags)
142real_pel_test_LDADD = \
143 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500144 $(pel_test_utils_ldadd) \
Matt Spinler07eefc52019-09-26 11:18:26 -0500145 $(pel_objects)
146real_pel_test_LDFLAGS = $(test_ldflags)
147
Matt Spinler89fa0822019-07-17 13:54:30 -0500148repository_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500149 %reldir%/repository_test.cpp
Matt Spinler89fa0822019-07-17 13:54:30 -0500150repository_test_CPPFLAGS = $(test_cppflags)
151repository_test_CXXFLAGS = $(test_cxxflags)
152repository_test_LDADD = \
153 $(test_ldadd) \
154 $(pel_objects) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500155 $(pel_test_utils_ldadd) \
Matt Spinler89fa0822019-07-17 13:54:30 -0500156 $(top_builddir)/extensions/openpower-pels/repository.o
157repository_test_LDFLAGS = $(test_ldflags)
158
159pel_manager_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500160 %reldir%/pel_manager_test.cpp
Matt Spinler89fa0822019-07-17 13:54:30 -0500161pel_manager_test_CPPFLAGS = $(test_cppflags)
Matt Spinlera34ab722019-12-16 10:39:32 -0600162pel_manager_test_CXXFLAGS = \
163 $(test_cxxflags) \
164 $(SDEVENTPLUS_CFLAGS)
Matt Spinler89fa0822019-07-17 13:54:30 -0500165pel_manager_test_LDADD = \
166 $(test_ldadd) \
167 $(pel_objects) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500168 $(pel_test_utils_ldadd) \
Matt Spinlerc8705e22019-09-11 12:36:07 -0500169 $(top_builddir)/extensions/openpower-pels/data_interface.o \
Matt Spinlerf60ac272019-12-11 13:47:50 -0600170 $(top_builddir)/extensions/openpower-pels/host_notifier.o \
Matt Spinler89fa0822019-07-17 13:54:30 -0500171 $(top_builddir)/extensions/openpower-pels/manager.o \
Matt Spinler1962e082020-08-05 13:44:53 -0500172 $(top_builddir)/extensions/openpower-pels/repository.o \
173 $(top_builddir)/extensions/openpower-pels/service_indicators.o
Matt Spinlera34ab722019-12-16 10:39:32 -0600174pel_manager_test_LDFLAGS = \
175 $(test_ldflags) \
176 $(SDEVENTPLUS_LIBS)
Matt Spinlerb6664332019-09-10 15:24:10 -0500177
Matt Spinler367144c2019-09-19 15:33:52 -0500178registry_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500179 %reldir%/registry_test.cpp
Matt Spinler367144c2019-09-19 15:33:52 -0500180registry_test_CPPFLAGS = $(test_cppflags)
181registry_test_CXXFLAGS = $(test_cxxflags)
182registry_test_LDADD = \
183 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500184 $(pel_test_utils_ldadd) \
Matt Spinler367144c2019-09-19 15:33:52 -0500185 $(top_builddir)/extensions/openpower-pels/registry.o \
186 $(top_builddir)/extensions/openpower-pels/pel_values.o
187registry_test_LDFLAGS = $(test_ldflags)
188
Matt Spinler8c686cc2019-09-20 13:46:02 -0500189severity_test_SOURCES = %reldir%/severity_test.cpp
190severity_test_CPPFLAGS = $(test_cppflags)
191severity_test_CXXFLAGS = $(test_cxxflags)
192severity_test_LDADD = \
193 $(test_ldflags) \
194 $(top_builddir)/extensions/openpower-pels/severity.o
195severity_test_LDFLAGS = $(test_ldflags)
196
Matt Spinlerb6664332019-09-10 15:24:10 -0500197mtms_test_SOURCES = %reldir%/mtms_test.cpp
198mtms_test_CPPFLAGS = $(test_cppflags)
199mtms_test_CXXFLAGS = $(test_cxxflags)
200mtms_test_LDADD = \
201 $(test_ldadd) \
202 $(top_builddir)/extensions/openpower-pels/mtms.o
203mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler09d64002019-09-11 14:29:46 -0500204
205failing_mtms_test_SOURCES = %reldir%/failing_mtms_test.cpp
206failing_mtms_test_CPPFLAGS = $(test_cppflags)
207failing_mtms_test_CXXFLAGS = $(test_cxxflags)
208failing_mtms_test_LDADD = \
209 $(test_ldadd) \
210 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
Harisuddin Mohamed Isae2d1bf32020-02-06 17:32:38 +0800211 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Harisuddin Mohamed Isabebeb942020-03-12 17:12:24 +0800212 $(top_builddir)/extensions/openpower-pels/mtms.o \
213 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinler09d64002019-09-11 14:29:46 -0500214failing_mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler835a8692019-08-27 13:56:05 -0500215
216pel_values_test_SOURCES = %reldir%/pel_values_test.cpp
217pel_values_test_CPPFLAGS = $(test_cppflags)
218pel_values_test_CXXFLAGS = $(test_cxxflags)
219pel_values_test_LDADD = \
220 $(test_ldflags) \
221 $(top_builddir)/extensions/openpower-pels/pel_values.o
222pel_values_test_LDFLAGS = $(test_ldflags)
Matt Spinler14d671f2019-09-25 13:11:22 -0500223
224generic_section_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500225 %reldir%/generic_section_test.cpp
Matt Spinler14d671f2019-09-25 13:11:22 -0500226generic_section_test_CPPFLAGS = $(test_cppflags)
227generic_section_test_CXXFLAGS = $(test_cxxflags)
228generic_section_test_LDADD = \
229 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500230 $(pel_test_utils_ldadd) \
Matt Spinler14d671f2019-09-25 13:11:22 -0500231 $(top_builddir)/extensions/openpower-pels/generic.o
232generic_section_test_LDFLAGS = $(test_ldflags)
Aatir Manzur51c92632019-09-06 13:30:48 -0500233
234user_data_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500235 %reldir%/user_data_test.cpp
Aatir Manzur51c92632019-09-06 13:30:48 -0500236user_data_test_CPPFLAGS = $(test_cppflags)
237user_data_test_CXXFLAGS = $(test_cxxflags)
238user_data_test_LDADD = \
239 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500240 $(pel_test_utils_ldadd) \
Aatir Manzur51c92632019-09-06 13:30:48 -0500241 $(top_builddir)/extensions/openpower-pels/user_data.o
242user_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler6852d722019-09-30 15:35:53 -0500243
244ascii_string_test_SOURCES = %reldir%/ascii_string_test.cpp
245ascii_string_test_CPPFLAGS = $(test_cppflags)
246ascii_string_test_CXXFLAGS = $(test_cxxflags)
247ascii_string_test_LDADD = \
248 $(test_ldadd) \
249 $(top_builddir)/extensions/openpower-pels/ascii_string.o
250ascii_string_test_LDFLAGS = $(test_ldflags)
Matt Spinlera906c942019-10-08 13:42:05 -0500251
252fru_identity_test_SOURCES = %reldir%/fru_identity_test.cpp
253fru_identity_test_CPPFLAGS = $(test_cppflags)
254fru_identity_test_CXXFLAGS = $(test_cxxflags)
255fru_identity_test_LDADD = \
256 $(test_ldadd) \
Matt Spinler468aab52020-08-13 11:04:31 -0500257 $(FMT_LIBS) \
Matt Spinlerba0ee002020-03-13 11:24:14 -0500258 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
259 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinlera906c942019-10-08 13:42:05 -0500260fru_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler5b3a11d2019-10-08 14:13:31 -0500261
262pce_identity_test_SOURCES = %reldir%/pce_identity_test.cpp
263pce_identity_test_CPPFLAGS = $(test_cppflags)
264pce_identity_test_CXXFLAGS = $(test_cxxflags)
265pce_identity_test_LDADD = \
266 $(test_ldadd) \
267 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
268 $(top_builddir)/extensions/openpower-pels/mtms.o
269pce_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler90b4a0a2019-10-09 10:08:43 -0500270
271mru_test_SOURCES = %reldir%/mru_test.cpp
272mru_test_CPPFLAGS = $(test_cppflags)
273mru_test_CXXFLAGS = $(test_cxxflags)
274mru_test_LDADD = \
275 $(test_ldadd) \
276 $(top_builddir)/extensions/openpower-pels/mru.o
277mru_test_LDFLAGS = $(test_ldflags)
Matt Spinler6c9662c2019-10-09 11:27:20 -0500278
279src_callout_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500280 %reldir%/src_callout_test.cpp
Matt Spinler6c9662c2019-10-09 11:27:20 -0500281src_callout_test_CPPFLAGS = $(test_cppflags)
282src_callout_test_CXXFLAGS = $(test_cxxflags)
283src_callout_test_LDADD = \
284 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500285 $(pel_test_utils_ldadd) \
Matt Spinler468aab52020-08-13 11:04:31 -0500286 $(FMT_LIBS) \
Matt Spinler6c9662c2019-10-09 11:27:20 -0500287 $(top_builddir)/extensions/openpower-pels/callout.o \
288 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
289 $(top_builddir)/extensions/openpower-pels/mru.o \
290 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerba0ee002020-03-13 11:24:14 -0500291 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
292 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinler6c9662c2019-10-09 11:27:20 -0500293src_callout_test_LDFLAGS = $(test_ldflags)
Matt Spinler32f13c92019-10-09 12:48:25 -0500294
295src_callouts_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500296 %reldir%/src_callouts_test.cpp
Matt Spinler32f13c92019-10-09 12:48:25 -0500297src_callouts_test_CPPFLAGS = $(test_cppflags)
298src_callouts_test_CXXFLAGS = $(test_cxxflags)
299src_callouts_test_LDADD = \
300 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500301 $(pel_test_utils_ldadd) \
Matt Spinler468aab52020-08-13 11:04:31 -0500302 $(FMT_LIBS) \
Matt Spinler32f13c92019-10-09 12:48:25 -0500303 $(top_builddir)/extensions/openpower-pels/callout.o \
304 $(top_builddir)/extensions/openpower-pels/callouts.o \
305 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
306 $(top_builddir)/extensions/openpower-pels/mru.o \
307 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerba0ee002020-03-13 11:24:14 -0500308 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
309 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinler32f13c92019-10-09 12:48:25 -0500310src_callouts_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf9bae182019-10-09 13:37:38 -0500311
312src_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500313 %reldir%/src_test.cpp
Matt Spinlerf9bae182019-10-09 13:37:38 -0500314src_test_CPPFLAGS = $(test_cppflags)
315src_test_CXXFLAGS = $(test_cxxflags)
316src_test_LDADD = \
317 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500318 $(pel_test_utils_ldadd) \
Matt Spinler468aab52020-08-13 11:04:31 -0500319 $(pel_objects)
Matt Spinlerf9bae182019-10-09 13:37:38 -0500320src_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf1e85e22019-11-01 11:31:31 -0500321
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600322extended_user_header_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500323 %reldir%/extended_user_header_test.cpp
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600324extended_user_header_test_CPPFLAGS = $(test_cppflags)
325extended_user_header_test_CXXFLAGS = $(test_cxxflags)
326extended_user_header_test_LDADD = \
327 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500328 $(pel_test_utils_ldadd) \
Matt Spinler468aab52020-08-13 11:04:31 -0500329 $(pel_objects)
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600330extended_user_header_test_LDFLAGS = $(test_ldflags)
331
Matt Spinlerf1e85e22019-11-01 11:31:31 -0500332pel_rules_test_SOURCES = %reldir%/pel_rules_test.cpp
333pel_rules_test_CPPFLAGS = $(test_cppflags)
334pel_rules_test_CXXFLAGS = $(test_cxxflags)
335pel_rules_test_LDADD = \
336 $(test_ldflags) \
337 $(top_builddir)/extensions/openpower-pels/pel_rules.o
338pel_rules_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf60ac272019-12-11 13:47:50 -0600339
340host_notifier_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500341 %reldir%/host_notifier_test.cpp
Matt Spinlerf60ac272019-12-11 13:47:50 -0600342host_notifier_test_CPPFLAGS = $(test_cppflags)
343host_notifier_test_CXXFLAGS = $(test_cxxflags) $(SDEVENTPLUS_CFLAGS)
344host_notifier_test_LDADD = \
345 $(test_ldflags) \
346 $(pel_objects) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500347 $(pel_test_utils_ldadd) \
Matt Spinlerf60ac272019-12-11 13:47:50 -0600348 $(top_builddir)/extensions/openpower-pels/host_notifier.o \
349 $(top_builddir)/extensions/openpower-pels/repository.o
350host_notifier_test_LDFLAGS = $(test_ldflags) $(SDEVENTPLUS_LIBS)
Harisuddin Mohamed Isae2d1bf32020-02-06 17:32:38 +0800351
352json_utils_test_SOURCES = %reldir%/json_utils_test.cpp
353json_utils_test_CPPFLAGS = $(test_cppflags)
354json_utils_test_CXXFLAGS = $(test_cxxflags)
355json_utils_test_LDADD = \
356 $(test_ldadd) \
357 $(top_builddir)/extensions/openpower-pels/json_utils.o
358json_utils_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf682b402019-12-18 13:48:08 -0600359
360event_logger_test_SOURCES = \
361 %reldir%/event_logger_test.cpp
362event_logger_test_CPPFLAGS = $(test_cppflags)
363event_logger_test_CXXFLAGS = $(test_cxxflags) $(SDEVENTPLUS_CFLAGS)
364event_logger_test_LDADD = \
365 $(test_ldadd)
366event_logger_test_LDFLAGS = $(test_ldflags) $(SDEVENTPLUS_LIBS)
Matt Spinler18c42b02020-06-02 15:59:50 -0500367
368device_callouts_test_SOURCES = \
369 %reldir%/device_callouts_test.cpp
370device_callouts_test_CPPFLAGS = $(test_cppflags)
371device_callouts_test_CXXFLAGS = $(test_cxxflags)
372device_callouts_test_LDADD = \
373 $(test_ldadd) \
374 $(pel_test_utils_ldadd) \
375 $(top_builddir)/extensions/openpower-pels/device_callouts.o
376device_callouts_test_LDFLAGS = $(test_ldflags)
Matt Spinler05f0c6d2020-08-05 14:21:06 -0500377
378service_indicators_test_SOURCES = \
379 %reldir%/service_indicators_test.cpp
380service_indicators_test_CPPFLAGS = $(test_cppflags)
381service_indicators_test_CXXFLAGS = $(test_cxxflags)
382service_indicators_test_LDADD = \
383 $(test_ldflags) \
384 $(pel_objects) \
385 $(pel_test_utils_ldadd) \
386 $(top_builddir)/extensions/openpower-pels/service_indicators.o
387service_indicators_test_LDFLAGS = $(test_ldflags)
Matt Spinler386a61e2020-08-13 15:51:12 -0500388
389extended_user_data_test_SOURCES = \
390 %reldir%/extended_user_data_test.cpp
391extended_user_data_test_CPPFLAGS = $(test_cppflags)
392extended_user_data_test_CXXFLAGS = $(test_cxxflags)
393extended_user_data_test_LDADD = \
394 $(test_ldadd) \
395 $(pel_test_utils_ldadd) \
396 $(FMT_LIBS) \
397 $(top_builddir)/extensions/openpower-pels/extended_user_data.o
398extended_user_data_test_LDFLAGS = $(test_ldflags)