blob: ee7f99f16e726dea3c3470c0fdfa7cd3c0cfe7c3 [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 Spinlerc63e2e82019-12-02 15:50:12 -06009 extended_user_header_test \
Matt Spinler09d64002019-09-11 14:29:46 -050010 failing_mtms_test \
Matt Spinlera906c942019-10-08 13:42:05 -050011 fru_identity_test \
Matt Spinler14d671f2019-09-25 13:11:22 -050012 generic_section_test \
Matt Spinlerf60ac272019-12-11 13:47:50 -060013 host_notifier_test \
Harisuddin Mohamed Isae2d1bf32020-02-06 17:32:38 +080014 json_utils_test \
Matt Spinlerdf13bdb2019-07-10 16:54:13 -050015 log_id_test \
Matt Spinler90b4a0a2019-10-09 10:08:43 -050016 mru_test \
Matt Spinlerb6664332019-09-10 15:24:10 -050017 mtms_test \
Matt Spinler5b3a11d2019-10-08 14:13:31 -050018 pce_identity_test \
Matt Spinlerf1e85e22019-11-01 11:31:31 -050019 pel_manager_test \
20 pel_rules_test \
Matt Spinlercb6b0592019-07-16 15:58:51 -050021 pel_test \
Matt Spinler835a8692019-08-27 13:56:05 -050022 pel_values_test \
Matt Spinlerd3335df2019-07-10 11:04:21 -050023 private_header_test \
Matt Spinler07eefc52019-09-26 11:18:26 -050024 real_pel_test \
Matt Spinler367144c2019-09-19 15:33:52 -050025 registry_test \
Matt Spinler89fa0822019-07-17 13:54:30 -050026 repository_test \
Matt Spinler1b5c72b2019-07-10 10:32:06 -050027 section_header_test \
Matt Spinler05f0c6d2020-08-05 14:21:06 -050028 service_indicators_test \
Matt Spinler8c686cc2019-09-20 13:46:02 -050029 severity_test \
Matt Spinlerf9bae182019-10-09 13:37:38 -050030 src_test \
Matt Spinler6c9662c2019-10-09 11:27:20 -050031 src_callout_test \
Matt Spinler32f13c92019-10-09 12:48:25 -050032 src_callouts_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050033 stream_test \
Aatir Manzur51c92632019-09-06 13:30:48 -050034 user_data_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050035 user_header_test
Matt Spinler15ee6ae2019-07-08 16:50:06 -050036
Matt Spinlerd3335df2019-07-10 11:04:21 -050037pel_objects = \
Matt Spinlerf9bae182019-10-09 13:37:38 -050038 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050039 $(top_builddir)/extensions/openpower-pels/callout.o \
40 $(top_builddir)/extensions/openpower-pels/callouts.o \
Matt Spinler18c42b02020-06-02 15:59:50 -050041 $(top_builddir)/extensions/openpower-pels/device_callouts.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -060042 $(top_builddir)/extensions/openpower-pels/extended_user_header.o \
Matt Spinler131870c2019-09-25 13:29:04 -050043 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050044 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
Matt Spinler131870c2019-09-25 13:29:04 -050045 $(top_builddir)/extensions/openpower-pels/generic.o \
Harisuddin Mohamed Isa600d15a2019-12-20 12:42:26 +080046 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050047 $(top_builddir)/extensions/openpower-pels/log_id.o \
Matt Spinler131870c2019-09-25 13:29:04 -050048 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050049 $(top_builddir)/extensions/openpower-pels/mru.o \
50 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050051 $(top_builddir)/extensions/openpower-pels/pel.o \
Matt Spinlerf1e85e22019-11-01 11:31:31 -050052 $(top_builddir)/extensions/openpower-pels/pel_rules.o \
Matt Spinler367144c2019-09-19 15:33:52 -050053 $(top_builddir)/extensions/openpower-pels/pel_values.o \
Matt Spinler03c1d912019-07-10 14:12:15 -050054 $(top_builddir)/extensions/openpower-pels/private_header.o \
Matt Spinler367144c2019-09-19 15:33:52 -050055 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinler131870c2019-09-25 13:29:04 -050056 $(top_builddir)/extensions/openpower-pels/section_factory.o \
Matt Spinler8c686cc2019-09-20 13:46:02 -050057 $(top_builddir)/extensions/openpower-pels/severity.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050058 $(top_builddir)/extensions/openpower-pels/src.o \
Aatir Manzur51c92632019-09-06 13:30:48 -050059 $(top_builddir)/extensions/openpower-pels/user_data.o \
Matt Spinler22421b92020-07-17 09:41:08 -050060 $(top_builddir)/extensions/openpower-pels/user_header.o \
61 $(FMT_LIBS)
Matt Spinlerd3335df2019-07-10 11:04:21 -050062
Matt Spinlere4e11dc2020-06-02 09:54:10 -050063pel_test_utils_ldadd = \
Matt Spinler454f6562020-07-07 11:22:47 -050064 $(top_builddir)/extensions/openpower-pels/bcd_time.o \
Matt Spinlere4e11dc2020-06-02 09:54:10 -050065 $(top_builddir)/test/openpower-pels/pel_utils.o \
66 $(top_builddir)/test/openpower-pels/paths.o
67
Matt Spinler15ee6ae2019-07-08 16:50:06 -050068additional_data_test_SOURCES = %reldir%/additional_data_test.cpp
69additional_data_test_CPPFLAGS = $(test_cppflags)
70additional_data_test_CXXFLAGS = $(test_cxxflags)
71additional_data_test_LDADD = $(test_ldadd)
72additional_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler113ad282019-07-09 14:44:13 -050073
74stream_test_SOURCES = %reldir%/stream_test.cpp
75stream_test_CPPFLAGS = $(test_cppflags)
76stream_test_CXXFLAGS = $(test_cxxflags)
77stream_test_LDADD = $(test_ldadd)
Matt Spinlerdf797f22019-07-09 15:39:51 -050078stream_test_LDFLAGS = $(test_ldflags)
79
80bcd_time_test_SOURCES = \
81 %reldir%/bcd_time_test.cpp
82bcd_time_test_CPPFLAGS = $(test_cppflags)
83bcd_time_test_CXXFLAGS = $(test_cxxflags)
84bcd_time_test_LDADD = \
85 $(test_ldadd) \
86 $(top_builddir)/extensions/openpower-pels/bcd_time.o
Matt Spinler1b5c72b2019-07-10 10:32:06 -050087bcd_time_test_LDFLAGS = $(test_ldflags)
88
89section_header_test_SOURCES = \
90 %reldir%/section_header_test.cpp
91section_header_test_CPPFLAGS = $(test_cppflags)
92section_header_test_CXXFLAGS = $(test_cxxflags)
93section_header_test_LDADD = $(test_ldadd)
Matt Spinlerd3335df2019-07-10 11:04:21 -050094section_header_test_LDFLAGS = $(test_ldflags)
95
96private_header_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -050097 %reldir%/private_header_test.cpp
Matt Spinlerd3335df2019-07-10 11:04:21 -050098private_header_test_CPPFLAGS = $(test_cppflags)
99private_header_test_CXXFLAGS = $(test_cxxflags)
100private_header_test_LDADD = \
101 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500102 $(pel_test_utils_ldadd) \
Matt Spinlerd3335df2019-07-10 11:04:21 -0500103 $(pel_objects)
104private_header_test_LDFLAGS = $(test_ldflags)
Matt Spinler03c1d912019-07-10 14:12:15 -0500105
106user_header_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500107 %reldir%/user_header_test.cpp
Matt Spinler03c1d912019-07-10 14:12:15 -0500108user_header_test_CPPFLAGS = $(test_cppflags)
109user_header_test_CXXFLAGS = $(test_cxxflags)
110user_header_test_LDADD = \
111 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500112 $(pel_test_utils_ldadd) \
Matt Spinler03c1d912019-07-10 14:12:15 -0500113 $(pel_objects)
114user_header_test_LDFLAGS = $(test_ldflags)
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500115
116log_id_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500117 %reldir%/log_id_test.cpp
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500118log_id_test_CPPFLAGS = $(test_cppflags)
119log_id_test_CXXFLAGS = $(test_cxxflags)
120log_id_test_LDADD = \
121 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500122 $(pel_test_utils_ldadd) \
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500123 $(top_builddir)/extensions/openpower-pels/log_id.o
124log_id_test_LDFLAGS = $(test_ldflags)
Matt Spinlercb6b0592019-07-16 15:58:51 -0500125
126pel_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500127 %reldir%/pel_test.cpp
Matt Spinlercb6b0592019-07-16 15:58:51 -0500128pel_test_CPPFLAGS = $(test_cppflags)
129pel_test_CXXFLAGS = $(test_cxxflags)
130pel_test_LDADD = \
131 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500132 $(pel_test_utils_ldadd) \
Matt Spinlercb6b0592019-07-16 15:58:51 -0500133 $(pel_objects)
134pel_test_LDFLAGS = $(test_ldflags)
Matt Spinler89fa0822019-07-17 13:54:30 -0500135
Matt Spinler07eefc52019-09-26 11:18:26 -0500136real_pel_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500137 %reldir%/real_pel_test.cpp
Matt Spinler07eefc52019-09-26 11:18:26 -0500138real_pel_test_CPPFLAGS = $(test_cppflags)
139real_pel_test_CXXFLAGS = $(test_cxxflags)
140real_pel_test_LDADD = \
141 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500142 $(pel_test_utils_ldadd) \
Matt Spinler07eefc52019-09-26 11:18:26 -0500143 $(pel_objects)
144real_pel_test_LDFLAGS = $(test_ldflags)
145
Matt Spinler89fa0822019-07-17 13:54:30 -0500146repository_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500147 %reldir%/repository_test.cpp
Matt Spinler89fa0822019-07-17 13:54:30 -0500148repository_test_CPPFLAGS = $(test_cppflags)
149repository_test_CXXFLAGS = $(test_cxxflags)
150repository_test_LDADD = \
151 $(test_ldadd) \
152 $(pel_objects) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500153 $(pel_test_utils_ldadd) \
Matt Spinler89fa0822019-07-17 13:54:30 -0500154 $(top_builddir)/extensions/openpower-pels/repository.o
155repository_test_LDFLAGS = $(test_ldflags)
156
157pel_manager_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500158 %reldir%/pel_manager_test.cpp
Matt Spinler89fa0822019-07-17 13:54:30 -0500159pel_manager_test_CPPFLAGS = $(test_cppflags)
Matt Spinlera34ab722019-12-16 10:39:32 -0600160pel_manager_test_CXXFLAGS = \
161 $(test_cxxflags) \
162 $(SDEVENTPLUS_CFLAGS)
Matt Spinler89fa0822019-07-17 13:54:30 -0500163pel_manager_test_LDADD = \
164 $(test_ldadd) \
165 $(pel_objects) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500166 $(pel_test_utils_ldadd) \
Matt Spinlerc8705e22019-09-11 12:36:07 -0500167 $(top_builddir)/extensions/openpower-pels/data_interface.o \
Matt Spinlerf60ac272019-12-11 13:47:50 -0600168 $(top_builddir)/extensions/openpower-pels/host_notifier.o \
Matt Spinler89fa0822019-07-17 13:54:30 -0500169 $(top_builddir)/extensions/openpower-pels/manager.o \
Matt Spinler1962e082020-08-05 13:44:53 -0500170 $(top_builddir)/extensions/openpower-pels/repository.o \
171 $(top_builddir)/extensions/openpower-pels/service_indicators.o
Matt Spinlera34ab722019-12-16 10:39:32 -0600172pel_manager_test_LDFLAGS = \
173 $(test_ldflags) \
174 $(SDEVENTPLUS_LIBS)
Matt Spinlerb6664332019-09-10 15:24:10 -0500175
Matt Spinler367144c2019-09-19 15:33:52 -0500176registry_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500177 %reldir%/registry_test.cpp
Matt Spinler367144c2019-09-19 15:33:52 -0500178registry_test_CPPFLAGS = $(test_cppflags)
179registry_test_CXXFLAGS = $(test_cxxflags)
180registry_test_LDADD = \
181 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500182 $(pel_test_utils_ldadd) \
Matt Spinler367144c2019-09-19 15:33:52 -0500183 $(top_builddir)/extensions/openpower-pels/registry.o \
184 $(top_builddir)/extensions/openpower-pels/pel_values.o
185registry_test_LDFLAGS = $(test_ldflags)
186
Matt Spinler8c686cc2019-09-20 13:46:02 -0500187severity_test_SOURCES = %reldir%/severity_test.cpp
188severity_test_CPPFLAGS = $(test_cppflags)
189severity_test_CXXFLAGS = $(test_cxxflags)
190severity_test_LDADD = \
191 $(test_ldflags) \
192 $(top_builddir)/extensions/openpower-pels/severity.o
193severity_test_LDFLAGS = $(test_ldflags)
194
Matt Spinlerb6664332019-09-10 15:24:10 -0500195mtms_test_SOURCES = %reldir%/mtms_test.cpp
196mtms_test_CPPFLAGS = $(test_cppflags)
197mtms_test_CXXFLAGS = $(test_cxxflags)
198mtms_test_LDADD = \
199 $(test_ldadd) \
200 $(top_builddir)/extensions/openpower-pels/mtms.o
201mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler09d64002019-09-11 14:29:46 -0500202
203failing_mtms_test_SOURCES = %reldir%/failing_mtms_test.cpp
204failing_mtms_test_CPPFLAGS = $(test_cppflags)
205failing_mtms_test_CXXFLAGS = $(test_cxxflags)
206failing_mtms_test_LDADD = \
207 $(test_ldadd) \
208 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
Harisuddin Mohamed Isae2d1bf32020-02-06 17:32:38 +0800209 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Harisuddin Mohamed Isabebeb942020-03-12 17:12:24 +0800210 $(top_builddir)/extensions/openpower-pels/mtms.o \
211 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinler09d64002019-09-11 14:29:46 -0500212failing_mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler835a8692019-08-27 13:56:05 -0500213
214pel_values_test_SOURCES = %reldir%/pel_values_test.cpp
215pel_values_test_CPPFLAGS = $(test_cppflags)
216pel_values_test_CXXFLAGS = $(test_cxxflags)
217pel_values_test_LDADD = \
218 $(test_ldflags) \
219 $(top_builddir)/extensions/openpower-pels/pel_values.o
220pel_values_test_LDFLAGS = $(test_ldflags)
Matt Spinler14d671f2019-09-25 13:11:22 -0500221
222generic_section_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500223 %reldir%/generic_section_test.cpp
Matt Spinler14d671f2019-09-25 13:11:22 -0500224generic_section_test_CPPFLAGS = $(test_cppflags)
225generic_section_test_CXXFLAGS = $(test_cxxflags)
226generic_section_test_LDADD = \
227 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500228 $(pel_test_utils_ldadd) \
Matt Spinler14d671f2019-09-25 13:11:22 -0500229 $(top_builddir)/extensions/openpower-pels/generic.o
230generic_section_test_LDFLAGS = $(test_ldflags)
Aatir Manzur51c92632019-09-06 13:30:48 -0500231
232user_data_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500233 %reldir%/user_data_test.cpp
Aatir Manzur51c92632019-09-06 13:30:48 -0500234user_data_test_CPPFLAGS = $(test_cppflags)
235user_data_test_CXXFLAGS = $(test_cxxflags)
236user_data_test_LDADD = \
237 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500238 $(pel_test_utils_ldadd) \
Aatir Manzur51c92632019-09-06 13:30:48 -0500239 $(top_builddir)/extensions/openpower-pels/user_data.o
240user_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler6852d722019-09-30 15:35:53 -0500241
242ascii_string_test_SOURCES = %reldir%/ascii_string_test.cpp
243ascii_string_test_CPPFLAGS = $(test_cppflags)
244ascii_string_test_CXXFLAGS = $(test_cxxflags)
245ascii_string_test_LDADD = \
246 $(test_ldadd) \
247 $(top_builddir)/extensions/openpower-pels/ascii_string.o
248ascii_string_test_LDFLAGS = $(test_ldflags)
Matt Spinlera906c942019-10-08 13:42:05 -0500249
250fru_identity_test_SOURCES = %reldir%/fru_identity_test.cpp
251fru_identity_test_CPPFLAGS = $(test_cppflags)
252fru_identity_test_CXXFLAGS = $(test_cxxflags)
253fru_identity_test_LDADD = \
254 $(test_ldadd) \
Matt Spinlerba0ee002020-03-13 11:24:14 -0500255 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
256 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinlera906c942019-10-08 13:42:05 -0500257fru_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler5b3a11d2019-10-08 14:13:31 -0500258
259pce_identity_test_SOURCES = %reldir%/pce_identity_test.cpp
260pce_identity_test_CPPFLAGS = $(test_cppflags)
261pce_identity_test_CXXFLAGS = $(test_cxxflags)
262pce_identity_test_LDADD = \
263 $(test_ldadd) \
264 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
265 $(top_builddir)/extensions/openpower-pels/mtms.o
266pce_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler90b4a0a2019-10-09 10:08:43 -0500267
268mru_test_SOURCES = %reldir%/mru_test.cpp
269mru_test_CPPFLAGS = $(test_cppflags)
270mru_test_CXXFLAGS = $(test_cxxflags)
271mru_test_LDADD = \
272 $(test_ldadd) \
273 $(top_builddir)/extensions/openpower-pels/mru.o
274mru_test_LDFLAGS = $(test_ldflags)
Matt Spinler6c9662c2019-10-09 11:27:20 -0500275
276src_callout_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500277 %reldir%/src_callout_test.cpp
Matt Spinler6c9662c2019-10-09 11:27:20 -0500278src_callout_test_CPPFLAGS = $(test_cppflags)
279src_callout_test_CXXFLAGS = $(test_cxxflags)
280src_callout_test_LDADD = \
281 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500282 $(pel_test_utils_ldadd) \
Matt Spinler6c9662c2019-10-09 11:27:20 -0500283 $(top_builddir)/extensions/openpower-pels/callout.o \
284 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
285 $(top_builddir)/extensions/openpower-pels/mru.o \
286 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerba0ee002020-03-13 11:24:14 -0500287 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
288 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinler6c9662c2019-10-09 11:27:20 -0500289src_callout_test_LDFLAGS = $(test_ldflags)
Matt Spinler32f13c92019-10-09 12:48:25 -0500290
291src_callouts_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500292 %reldir%/src_callouts_test.cpp
Matt Spinler32f13c92019-10-09 12:48:25 -0500293src_callouts_test_CPPFLAGS = $(test_cppflags)
294src_callouts_test_CXXFLAGS = $(test_cxxflags)
295src_callouts_test_LDADD = \
296 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500297 $(pel_test_utils_ldadd) \
Matt Spinler32f13c92019-10-09 12:48:25 -0500298 $(top_builddir)/extensions/openpower-pels/callout.o \
299 $(top_builddir)/extensions/openpower-pels/callouts.o \
300 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
301 $(top_builddir)/extensions/openpower-pels/mru.o \
302 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerba0ee002020-03-13 11:24:14 -0500303 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
304 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinler32f13c92019-10-09 12:48:25 -0500305src_callouts_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf9bae182019-10-09 13:37:38 -0500306
307src_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500308 %reldir%/src_test.cpp
Matt Spinlerf9bae182019-10-09 13:37:38 -0500309src_test_CPPFLAGS = $(test_cppflags)
310src_test_CXXFLAGS = $(test_cxxflags)
311src_test_LDADD = \
312 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500313 $(pel_test_utils_ldadd) \
Matt Spinlerf9bae182019-10-09 13:37:38 -0500314 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
315 $(top_builddir)/extensions/openpower-pels/callout.o \
316 $(top_builddir)/extensions/openpower-pels/callouts.o \
Matt Spinler18c42b02020-06-02 15:59:50 -0500317 $(top_builddir)/extensions/openpower-pels/device_callouts.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -0500318 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800319 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -0500320 $(top_builddir)/extensions/openpower-pels/mru.o \
321 $(top_builddir)/extensions/openpower-pels/mtms.o \
322 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800323 $(top_builddir)/extensions/openpower-pels/pel_values.o \
324 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -0500325 $(top_builddir)/extensions/openpower-pels/src.o
326src_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf1e85e22019-11-01 11:31:31 -0500327
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600328extended_user_header_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500329 %reldir%/extended_user_header_test.cpp
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600330extended_user_header_test_CPPFLAGS = $(test_cppflags)
331extended_user_header_test_CXXFLAGS = $(test_cxxflags)
332extended_user_header_test_LDADD = \
333 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500334 $(pel_test_utils_ldadd) \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600335 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600336 $(top_builddir)/extensions/openpower-pels/callout.o \
337 $(top_builddir)/extensions/openpower-pels/callouts.o \
Matt Spinler18c42b02020-06-02 15:59:50 -0500338 $(top_builddir)/extensions/openpower-pels/device_callouts.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600339 $(top_builddir)/extensions/openpower-pels/data_interface.o \
340 $(top_builddir)/extensions/openpower-pels/extended_user_header.o \
341 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800342 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600343 $(top_builddir)/extensions/openpower-pels/mru.o \
344 $(top_builddir)/extensions/openpower-pels/mtms.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800345 $(top_builddir)/extensions/openpower-pels/pel_values.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600346 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800347 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600348 $(top_builddir)/extensions/openpower-pels/src.o
349extended_user_header_test_LDFLAGS = $(test_ldflags)
350
Matt Spinlerf1e85e22019-11-01 11:31:31 -0500351pel_rules_test_SOURCES = %reldir%/pel_rules_test.cpp
352pel_rules_test_CPPFLAGS = $(test_cppflags)
353pel_rules_test_CXXFLAGS = $(test_cxxflags)
354pel_rules_test_LDADD = \
355 $(test_ldflags) \
356 $(top_builddir)/extensions/openpower-pels/pel_rules.o
357pel_rules_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf60ac272019-12-11 13:47:50 -0600358
359host_notifier_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500360 %reldir%/host_notifier_test.cpp
Matt Spinlerf60ac272019-12-11 13:47:50 -0600361host_notifier_test_CPPFLAGS = $(test_cppflags)
362host_notifier_test_CXXFLAGS = $(test_cxxflags) $(SDEVENTPLUS_CFLAGS)
363host_notifier_test_LDADD = \
364 $(test_ldflags) \
365 $(pel_objects) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500366 $(pel_test_utils_ldadd) \
Matt Spinlerf60ac272019-12-11 13:47:50 -0600367 $(top_builddir)/extensions/openpower-pels/host_notifier.o \
368 $(top_builddir)/extensions/openpower-pels/repository.o
369host_notifier_test_LDFLAGS = $(test_ldflags) $(SDEVENTPLUS_LIBS)
Harisuddin Mohamed Isae2d1bf32020-02-06 17:32:38 +0800370
371json_utils_test_SOURCES = %reldir%/json_utils_test.cpp
372json_utils_test_CPPFLAGS = $(test_cppflags)
373json_utils_test_CXXFLAGS = $(test_cxxflags)
374json_utils_test_LDADD = \
375 $(test_ldadd) \
376 $(top_builddir)/extensions/openpower-pels/json_utils.o
377json_utils_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf682b402019-12-18 13:48:08 -0600378
379event_logger_test_SOURCES = \
380 %reldir%/event_logger_test.cpp
381event_logger_test_CPPFLAGS = $(test_cppflags)
382event_logger_test_CXXFLAGS = $(test_cxxflags) $(SDEVENTPLUS_CFLAGS)
383event_logger_test_LDADD = \
384 $(test_ldadd)
385event_logger_test_LDFLAGS = $(test_ldflags) $(SDEVENTPLUS_LIBS)
Matt Spinler18c42b02020-06-02 15:59:50 -0500386
387device_callouts_test_SOURCES = \
388 %reldir%/device_callouts_test.cpp
389device_callouts_test_CPPFLAGS = $(test_cppflags)
390device_callouts_test_CXXFLAGS = $(test_cxxflags)
391device_callouts_test_LDADD = \
392 $(test_ldadd) \
393 $(pel_test_utils_ldadd) \
394 $(top_builddir)/extensions/openpower-pels/device_callouts.o
395device_callouts_test_LDFLAGS = $(test_ldflags)
Matt Spinler05f0c6d2020-08-05 14:21:06 -0500396
397service_indicators_test_SOURCES = \
398 %reldir%/service_indicators_test.cpp
399service_indicators_test_CPPFLAGS = $(test_cppflags)
400service_indicators_test_CXXFLAGS = $(test_cxxflags)
401service_indicators_test_LDADD = \
402 $(test_ldflags) \
403 $(pel_objects) \
404 $(pel_test_utils_ldadd) \
405 $(top_builddir)/extensions/openpower-pels/service_indicators.o
406service_indicators_test_LDFLAGS = $(test_ldflags)