blob: 74287fcf063a75de3ed2de08a50b2162821d2946 [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 Spinler8c686cc2019-09-20 13:46:02 -050028 severity_test \
Matt Spinlerf9bae182019-10-09 13:37:38 -050029 src_test \
Matt Spinler6c9662c2019-10-09 11:27:20 -050030 src_callout_test \
Matt Spinler32f13c92019-10-09 12:48:25 -050031 src_callouts_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050032 stream_test \
Aatir Manzur51c92632019-09-06 13:30:48 -050033 user_data_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050034 user_header_test
Matt Spinler15ee6ae2019-07-08 16:50:06 -050035
Matt Spinlerd3335df2019-07-10 11:04:21 -050036pel_objects = \
Matt Spinlerf9bae182019-10-09 13:37:38 -050037 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050038 $(top_builddir)/extensions/openpower-pels/callout.o \
39 $(top_builddir)/extensions/openpower-pels/callouts.o \
Matt Spinler18c42b02020-06-02 15:59:50 -050040 $(top_builddir)/extensions/openpower-pels/device_callouts.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -060041 $(top_builddir)/extensions/openpower-pels/extended_user_header.o \
Matt Spinler131870c2019-09-25 13:29:04 -050042 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050043 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
Matt Spinler131870c2019-09-25 13:29:04 -050044 $(top_builddir)/extensions/openpower-pels/generic.o \
Harisuddin Mohamed Isa600d15a2019-12-20 12:42:26 +080045 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050046 $(top_builddir)/extensions/openpower-pels/log_id.o \
Matt Spinler131870c2019-09-25 13:29:04 -050047 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050048 $(top_builddir)/extensions/openpower-pels/mru.o \
49 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050050 $(top_builddir)/extensions/openpower-pels/pel.o \
Matt Spinlerf1e85e22019-11-01 11:31:31 -050051 $(top_builddir)/extensions/openpower-pels/pel_rules.o \
Matt Spinler367144c2019-09-19 15:33:52 -050052 $(top_builddir)/extensions/openpower-pels/pel_values.o \
Matt Spinler03c1d912019-07-10 14:12:15 -050053 $(top_builddir)/extensions/openpower-pels/private_header.o \
Matt Spinler367144c2019-09-19 15:33:52 -050054 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinler131870c2019-09-25 13:29:04 -050055 $(top_builddir)/extensions/openpower-pels/section_factory.o \
Matt Spinler8c686cc2019-09-20 13:46:02 -050056 $(top_builddir)/extensions/openpower-pels/severity.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050057 $(top_builddir)/extensions/openpower-pels/src.o \
Aatir Manzur51c92632019-09-06 13:30:48 -050058 $(top_builddir)/extensions/openpower-pels/user_data.o \
Matt Spinler22421b92020-07-17 09:41:08 -050059 $(top_builddir)/extensions/openpower-pels/user_header.o \
60 $(FMT_LIBS)
Matt Spinlerd3335df2019-07-10 11:04:21 -050061
Matt Spinlere4e11dc2020-06-02 09:54:10 -050062pel_test_utils_ldadd = \
Matt Spinler454f6562020-07-07 11:22:47 -050063 $(top_builddir)/extensions/openpower-pels/bcd_time.o \
Matt Spinlere4e11dc2020-06-02 09:54:10 -050064 $(top_builddir)/test/openpower-pels/pel_utils.o \
65 $(top_builddir)/test/openpower-pels/paths.o
66
Matt Spinler15ee6ae2019-07-08 16:50:06 -050067additional_data_test_SOURCES = %reldir%/additional_data_test.cpp
68additional_data_test_CPPFLAGS = $(test_cppflags)
69additional_data_test_CXXFLAGS = $(test_cxxflags)
70additional_data_test_LDADD = $(test_ldadd)
71additional_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler113ad282019-07-09 14:44:13 -050072
73stream_test_SOURCES = %reldir%/stream_test.cpp
74stream_test_CPPFLAGS = $(test_cppflags)
75stream_test_CXXFLAGS = $(test_cxxflags)
76stream_test_LDADD = $(test_ldadd)
Matt Spinlerdf797f22019-07-09 15:39:51 -050077stream_test_LDFLAGS = $(test_ldflags)
78
79bcd_time_test_SOURCES = \
80 %reldir%/bcd_time_test.cpp
81bcd_time_test_CPPFLAGS = $(test_cppflags)
82bcd_time_test_CXXFLAGS = $(test_cxxflags)
83bcd_time_test_LDADD = \
84 $(test_ldadd) \
85 $(top_builddir)/extensions/openpower-pels/bcd_time.o
Matt Spinler1b5c72b2019-07-10 10:32:06 -050086bcd_time_test_LDFLAGS = $(test_ldflags)
87
88section_header_test_SOURCES = \
89 %reldir%/section_header_test.cpp
90section_header_test_CPPFLAGS = $(test_cppflags)
91section_header_test_CXXFLAGS = $(test_cxxflags)
92section_header_test_LDADD = $(test_ldadd)
Matt Spinlerd3335df2019-07-10 11:04:21 -050093section_header_test_LDFLAGS = $(test_ldflags)
94
95private_header_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -050096 %reldir%/private_header_test.cpp
Matt Spinlerd3335df2019-07-10 11:04:21 -050097private_header_test_CPPFLAGS = $(test_cppflags)
98private_header_test_CXXFLAGS = $(test_cxxflags)
99private_header_test_LDADD = \
100 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500101 $(pel_test_utils_ldadd) \
Matt Spinlerd3335df2019-07-10 11:04:21 -0500102 $(pel_objects)
103private_header_test_LDFLAGS = $(test_ldflags)
Matt Spinler03c1d912019-07-10 14:12:15 -0500104
105user_header_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500106 %reldir%/user_header_test.cpp
Matt Spinler03c1d912019-07-10 14:12:15 -0500107user_header_test_CPPFLAGS = $(test_cppflags)
108user_header_test_CXXFLAGS = $(test_cxxflags)
109user_header_test_LDADD = \
110 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500111 $(pel_test_utils_ldadd) \
Matt Spinler03c1d912019-07-10 14:12:15 -0500112 $(pel_objects)
113user_header_test_LDFLAGS = $(test_ldflags)
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500114
115log_id_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500116 %reldir%/log_id_test.cpp
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500117log_id_test_CPPFLAGS = $(test_cppflags)
118log_id_test_CXXFLAGS = $(test_cxxflags)
119log_id_test_LDADD = \
120 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500121 $(pel_test_utils_ldadd) \
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500122 $(top_builddir)/extensions/openpower-pels/log_id.o
123log_id_test_LDFLAGS = $(test_ldflags)
Matt Spinlercb6b0592019-07-16 15:58:51 -0500124
125pel_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500126 %reldir%/pel_test.cpp
Matt Spinlercb6b0592019-07-16 15:58:51 -0500127pel_test_CPPFLAGS = $(test_cppflags)
128pel_test_CXXFLAGS = $(test_cxxflags)
129pel_test_LDADD = \
130 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500131 $(pel_test_utils_ldadd) \
Matt Spinlercb6b0592019-07-16 15:58:51 -0500132 $(pel_objects)
133pel_test_LDFLAGS = $(test_ldflags)
Matt Spinler89fa0822019-07-17 13:54:30 -0500134
Matt Spinler07eefc52019-09-26 11:18:26 -0500135real_pel_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500136 %reldir%/real_pel_test.cpp
Matt Spinler07eefc52019-09-26 11:18:26 -0500137real_pel_test_CPPFLAGS = $(test_cppflags)
138real_pel_test_CXXFLAGS = $(test_cxxflags)
139real_pel_test_LDADD = \
140 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500141 $(pel_test_utils_ldadd) \
Matt Spinler07eefc52019-09-26 11:18:26 -0500142 $(pel_objects)
143real_pel_test_LDFLAGS = $(test_ldflags)
144
Matt Spinler89fa0822019-07-17 13:54:30 -0500145repository_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500146 %reldir%/repository_test.cpp
Matt Spinler89fa0822019-07-17 13:54:30 -0500147repository_test_CPPFLAGS = $(test_cppflags)
148repository_test_CXXFLAGS = $(test_cxxflags)
149repository_test_LDADD = \
150 $(test_ldadd) \
151 $(pel_objects) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500152 $(pel_test_utils_ldadd) \
Matt Spinler89fa0822019-07-17 13:54:30 -0500153 $(top_builddir)/extensions/openpower-pels/repository.o
154repository_test_LDFLAGS = $(test_ldflags)
155
156pel_manager_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500157 %reldir%/pel_manager_test.cpp
Matt Spinler89fa0822019-07-17 13:54:30 -0500158pel_manager_test_CPPFLAGS = $(test_cppflags)
Matt Spinlera34ab722019-12-16 10:39:32 -0600159pel_manager_test_CXXFLAGS = \
160 $(test_cxxflags) \
161 $(SDEVENTPLUS_CFLAGS)
Matt Spinler89fa0822019-07-17 13:54:30 -0500162pel_manager_test_LDADD = \
163 $(test_ldadd) \
164 $(pel_objects) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500165 $(pel_test_utils_ldadd) \
Matt Spinlerc8705e22019-09-11 12:36:07 -0500166 $(top_builddir)/extensions/openpower-pels/data_interface.o \
Matt Spinlerf60ac272019-12-11 13:47:50 -0600167 $(top_builddir)/extensions/openpower-pels/host_notifier.o \
Matt Spinler89fa0822019-07-17 13:54:30 -0500168 $(top_builddir)/extensions/openpower-pels/manager.o \
169 $(top_builddir)/extensions/openpower-pels/repository.o
Matt Spinlera34ab722019-12-16 10:39:32 -0600170pel_manager_test_LDFLAGS = \
171 $(test_ldflags) \
172 $(SDEVENTPLUS_LIBS)
Matt Spinlerb6664332019-09-10 15:24:10 -0500173
Matt Spinler367144c2019-09-19 15:33:52 -0500174registry_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500175 %reldir%/registry_test.cpp
Matt Spinler367144c2019-09-19 15:33:52 -0500176registry_test_CPPFLAGS = $(test_cppflags)
177registry_test_CXXFLAGS = $(test_cxxflags)
178registry_test_LDADD = \
179 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500180 $(pel_test_utils_ldadd) \
Matt Spinler367144c2019-09-19 15:33:52 -0500181 $(top_builddir)/extensions/openpower-pels/registry.o \
182 $(top_builddir)/extensions/openpower-pels/pel_values.o
183registry_test_LDFLAGS = $(test_ldflags)
184
Matt Spinler8c686cc2019-09-20 13:46:02 -0500185severity_test_SOURCES = %reldir%/severity_test.cpp
186severity_test_CPPFLAGS = $(test_cppflags)
187severity_test_CXXFLAGS = $(test_cxxflags)
188severity_test_LDADD = \
189 $(test_ldflags) \
190 $(top_builddir)/extensions/openpower-pels/severity.o
191severity_test_LDFLAGS = $(test_ldflags)
192
Matt Spinlerb6664332019-09-10 15:24:10 -0500193mtms_test_SOURCES = %reldir%/mtms_test.cpp
194mtms_test_CPPFLAGS = $(test_cppflags)
195mtms_test_CXXFLAGS = $(test_cxxflags)
196mtms_test_LDADD = \
197 $(test_ldadd) \
198 $(top_builddir)/extensions/openpower-pels/mtms.o
199mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler09d64002019-09-11 14:29:46 -0500200
201failing_mtms_test_SOURCES = %reldir%/failing_mtms_test.cpp
202failing_mtms_test_CPPFLAGS = $(test_cppflags)
203failing_mtms_test_CXXFLAGS = $(test_cxxflags)
204failing_mtms_test_LDADD = \
205 $(test_ldadd) \
206 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
Harisuddin Mohamed Isae2d1bf32020-02-06 17:32:38 +0800207 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Harisuddin Mohamed Isabebeb942020-03-12 17:12:24 +0800208 $(top_builddir)/extensions/openpower-pels/mtms.o \
209 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinler09d64002019-09-11 14:29:46 -0500210failing_mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler835a8692019-08-27 13:56:05 -0500211
212pel_values_test_SOURCES = %reldir%/pel_values_test.cpp
213pel_values_test_CPPFLAGS = $(test_cppflags)
214pel_values_test_CXXFLAGS = $(test_cxxflags)
215pel_values_test_LDADD = \
216 $(test_ldflags) \
217 $(top_builddir)/extensions/openpower-pels/pel_values.o
218pel_values_test_LDFLAGS = $(test_ldflags)
Matt Spinler14d671f2019-09-25 13:11:22 -0500219
220generic_section_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500221 %reldir%/generic_section_test.cpp
Matt Spinler14d671f2019-09-25 13:11:22 -0500222generic_section_test_CPPFLAGS = $(test_cppflags)
223generic_section_test_CXXFLAGS = $(test_cxxflags)
224generic_section_test_LDADD = \
225 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500226 $(pel_test_utils_ldadd) \
Matt Spinler14d671f2019-09-25 13:11:22 -0500227 $(top_builddir)/extensions/openpower-pels/generic.o
228generic_section_test_LDFLAGS = $(test_ldflags)
Aatir Manzur51c92632019-09-06 13:30:48 -0500229
230user_data_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500231 %reldir%/user_data_test.cpp
Aatir Manzur51c92632019-09-06 13:30:48 -0500232user_data_test_CPPFLAGS = $(test_cppflags)
233user_data_test_CXXFLAGS = $(test_cxxflags)
234user_data_test_LDADD = \
235 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500236 $(pel_test_utils_ldadd) \
Aatir Manzur51c92632019-09-06 13:30:48 -0500237 $(top_builddir)/extensions/openpower-pels/user_data.o
238user_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler6852d722019-09-30 15:35:53 -0500239
240ascii_string_test_SOURCES = %reldir%/ascii_string_test.cpp
241ascii_string_test_CPPFLAGS = $(test_cppflags)
242ascii_string_test_CXXFLAGS = $(test_cxxflags)
243ascii_string_test_LDADD = \
244 $(test_ldadd) \
245 $(top_builddir)/extensions/openpower-pels/ascii_string.o
246ascii_string_test_LDFLAGS = $(test_ldflags)
Matt Spinlera906c942019-10-08 13:42:05 -0500247
248fru_identity_test_SOURCES = %reldir%/fru_identity_test.cpp
249fru_identity_test_CPPFLAGS = $(test_cppflags)
250fru_identity_test_CXXFLAGS = $(test_cxxflags)
251fru_identity_test_LDADD = \
252 $(test_ldadd) \
Matt Spinlerba0ee002020-03-13 11:24:14 -0500253 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
254 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinlera906c942019-10-08 13:42:05 -0500255fru_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler5b3a11d2019-10-08 14:13:31 -0500256
257pce_identity_test_SOURCES = %reldir%/pce_identity_test.cpp
258pce_identity_test_CPPFLAGS = $(test_cppflags)
259pce_identity_test_CXXFLAGS = $(test_cxxflags)
260pce_identity_test_LDADD = \
261 $(test_ldadd) \
262 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
263 $(top_builddir)/extensions/openpower-pels/mtms.o
264pce_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler90b4a0a2019-10-09 10:08:43 -0500265
266mru_test_SOURCES = %reldir%/mru_test.cpp
267mru_test_CPPFLAGS = $(test_cppflags)
268mru_test_CXXFLAGS = $(test_cxxflags)
269mru_test_LDADD = \
270 $(test_ldadd) \
271 $(top_builddir)/extensions/openpower-pels/mru.o
272mru_test_LDFLAGS = $(test_ldflags)
Matt Spinler6c9662c2019-10-09 11:27:20 -0500273
274src_callout_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500275 %reldir%/src_callout_test.cpp
Matt Spinler6c9662c2019-10-09 11:27:20 -0500276src_callout_test_CPPFLAGS = $(test_cppflags)
277src_callout_test_CXXFLAGS = $(test_cxxflags)
278src_callout_test_LDADD = \
279 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500280 $(pel_test_utils_ldadd) \
Matt Spinler6c9662c2019-10-09 11:27:20 -0500281 $(top_builddir)/extensions/openpower-pels/callout.o \
282 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
283 $(top_builddir)/extensions/openpower-pels/mru.o \
284 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerba0ee002020-03-13 11:24:14 -0500285 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
286 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinler6c9662c2019-10-09 11:27:20 -0500287src_callout_test_LDFLAGS = $(test_ldflags)
Matt Spinler32f13c92019-10-09 12:48:25 -0500288
289src_callouts_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500290 %reldir%/src_callouts_test.cpp
Matt Spinler32f13c92019-10-09 12:48:25 -0500291src_callouts_test_CPPFLAGS = $(test_cppflags)
292src_callouts_test_CXXFLAGS = $(test_cxxflags)
293src_callouts_test_LDADD = \
294 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500295 $(pel_test_utils_ldadd) \
Matt Spinler32f13c92019-10-09 12:48:25 -0500296 $(top_builddir)/extensions/openpower-pels/callout.o \
297 $(top_builddir)/extensions/openpower-pels/callouts.o \
298 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
299 $(top_builddir)/extensions/openpower-pels/mru.o \
300 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerba0ee002020-03-13 11:24:14 -0500301 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
302 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinler32f13c92019-10-09 12:48:25 -0500303src_callouts_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf9bae182019-10-09 13:37:38 -0500304
305src_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500306 %reldir%/src_test.cpp
Matt Spinlerf9bae182019-10-09 13:37:38 -0500307src_test_CPPFLAGS = $(test_cppflags)
308src_test_CXXFLAGS = $(test_cxxflags)
309src_test_LDADD = \
310 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500311 $(pel_test_utils_ldadd) \
Matt Spinlerf9bae182019-10-09 13:37:38 -0500312 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
313 $(top_builddir)/extensions/openpower-pels/callout.o \
314 $(top_builddir)/extensions/openpower-pels/callouts.o \
Matt Spinler18c42b02020-06-02 15:59:50 -0500315 $(top_builddir)/extensions/openpower-pels/device_callouts.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -0500316 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800317 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -0500318 $(top_builddir)/extensions/openpower-pels/mru.o \
319 $(top_builddir)/extensions/openpower-pels/mtms.o \
320 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800321 $(top_builddir)/extensions/openpower-pels/pel_values.o \
322 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -0500323 $(top_builddir)/extensions/openpower-pels/src.o
324src_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf1e85e22019-11-01 11:31:31 -0500325
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600326extended_user_header_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500327 %reldir%/extended_user_header_test.cpp
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600328extended_user_header_test_CPPFLAGS = $(test_cppflags)
329extended_user_header_test_CXXFLAGS = $(test_cxxflags)
330extended_user_header_test_LDADD = \
331 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500332 $(pel_test_utils_ldadd) \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600333 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600334 $(top_builddir)/extensions/openpower-pels/callout.o \
335 $(top_builddir)/extensions/openpower-pels/callouts.o \
Matt Spinler18c42b02020-06-02 15:59:50 -0500336 $(top_builddir)/extensions/openpower-pels/device_callouts.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600337 $(top_builddir)/extensions/openpower-pels/data_interface.o \
338 $(top_builddir)/extensions/openpower-pels/extended_user_header.o \
339 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800340 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600341 $(top_builddir)/extensions/openpower-pels/mru.o \
342 $(top_builddir)/extensions/openpower-pels/mtms.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800343 $(top_builddir)/extensions/openpower-pels/pel_values.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600344 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800345 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600346 $(top_builddir)/extensions/openpower-pels/src.o
347extended_user_header_test_LDFLAGS = $(test_ldflags)
348
Matt Spinlerf1e85e22019-11-01 11:31:31 -0500349pel_rules_test_SOURCES = %reldir%/pel_rules_test.cpp
350pel_rules_test_CPPFLAGS = $(test_cppflags)
351pel_rules_test_CXXFLAGS = $(test_cxxflags)
352pel_rules_test_LDADD = \
353 $(test_ldflags) \
354 $(top_builddir)/extensions/openpower-pels/pel_rules.o
355pel_rules_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf60ac272019-12-11 13:47:50 -0600356
357host_notifier_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500358 %reldir%/host_notifier_test.cpp
Matt Spinlerf60ac272019-12-11 13:47:50 -0600359host_notifier_test_CPPFLAGS = $(test_cppflags)
360host_notifier_test_CXXFLAGS = $(test_cxxflags) $(SDEVENTPLUS_CFLAGS)
361host_notifier_test_LDADD = \
362 $(test_ldflags) \
363 $(pel_objects) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500364 $(pel_test_utils_ldadd) \
Matt Spinlerf60ac272019-12-11 13:47:50 -0600365 $(top_builddir)/extensions/openpower-pels/host_notifier.o \
366 $(top_builddir)/extensions/openpower-pels/repository.o
367host_notifier_test_LDFLAGS = $(test_ldflags) $(SDEVENTPLUS_LIBS)
Harisuddin Mohamed Isae2d1bf32020-02-06 17:32:38 +0800368
369json_utils_test_SOURCES = %reldir%/json_utils_test.cpp
370json_utils_test_CPPFLAGS = $(test_cppflags)
371json_utils_test_CXXFLAGS = $(test_cxxflags)
372json_utils_test_LDADD = \
373 $(test_ldadd) \
374 $(top_builddir)/extensions/openpower-pels/json_utils.o
375json_utils_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf682b402019-12-18 13:48:08 -0600376
377event_logger_test_SOURCES = \
378 %reldir%/event_logger_test.cpp
379event_logger_test_CPPFLAGS = $(test_cppflags)
380event_logger_test_CXXFLAGS = $(test_cxxflags) $(SDEVENTPLUS_CFLAGS)
381event_logger_test_LDADD = \
382 $(test_ldadd)
383event_logger_test_LDFLAGS = $(test_ldflags) $(SDEVENTPLUS_LIBS)
Matt Spinler18c42b02020-06-02 15:59:50 -0500384
385device_callouts_test_SOURCES = \
386 %reldir%/device_callouts_test.cpp
387device_callouts_test_CPPFLAGS = $(test_cppflags)
388device_callouts_test_CXXFLAGS = $(test_cxxflags)
389device_callouts_test_LDADD = \
390 $(test_ldadd) \
391 $(pel_test_utils_ldadd) \
392 $(top_builddir)/extensions/openpower-pels/device_callouts.o
393device_callouts_test_LDFLAGS = $(test_ldflags)