blob: 2bed701a76cfad67a44ed6e0604b4edd0b97c809 [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 Spinlerc63e2e82019-12-02 15:50:12 -06007 extended_user_header_test \
Matt Spinler09d64002019-09-11 14:29:46 -05008 failing_mtms_test \
Matt Spinlera906c942019-10-08 13:42:05 -05009 fru_identity_test \
Matt Spinler14d671f2019-09-25 13:11:22 -050010 generic_section_test \
Matt Spinlerf60ac272019-12-11 13:47:50 -060011 host_notifier_test \
Matt Spinlerdf13bdb2019-07-10 16:54:13 -050012 log_id_test \
Matt Spinler90b4a0a2019-10-09 10:08:43 -050013 mru_test \
Matt Spinlerb6664332019-09-10 15:24:10 -050014 mtms_test \
Matt Spinler5b3a11d2019-10-08 14:13:31 -050015 pce_identity_test \
Matt Spinlerf1e85e22019-11-01 11:31:31 -050016 pel_manager_test \
17 pel_rules_test \
Matt Spinlercb6b0592019-07-16 15:58:51 -050018 pel_test \
Matt Spinler835a8692019-08-27 13:56:05 -050019 pel_values_test \
Matt Spinlerd3335df2019-07-10 11:04:21 -050020 private_header_test \
Matt Spinler07eefc52019-09-26 11:18:26 -050021 real_pel_test \
Matt Spinler367144c2019-09-19 15:33:52 -050022 registry_test \
Matt Spinler89fa0822019-07-17 13:54:30 -050023 repository_test \
Matt Spinler1b5c72b2019-07-10 10:32:06 -050024 section_header_test \
Matt Spinler8c686cc2019-09-20 13:46:02 -050025 severity_test \
Matt Spinlerf9bae182019-10-09 13:37:38 -050026 src_test \
Matt Spinler6c9662c2019-10-09 11:27:20 -050027 src_callout_test \
Matt Spinler32f13c92019-10-09 12:48:25 -050028 src_callouts_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050029 stream_test \
Aatir Manzur51c92632019-09-06 13:30:48 -050030 user_data_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050031 user_header_test
Matt Spinler15ee6ae2019-07-08 16:50:06 -050032
Matt Spinlerd3335df2019-07-10 11:04:21 -050033pel_objects = \
Matt Spinlerf9bae182019-10-09 13:37:38 -050034 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
Matt Spinlerd3335df2019-07-10 11:04:21 -050035 $(top_builddir)/extensions/openpower-pels/bcd_time.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050036 $(top_builddir)/extensions/openpower-pels/callout.o \
37 $(top_builddir)/extensions/openpower-pels/callouts.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -060038 $(top_builddir)/extensions/openpower-pels/extended_user_header.o \
Matt Spinler131870c2019-09-25 13:29:04 -050039 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050040 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
Matt Spinler131870c2019-09-25 13:29:04 -050041 $(top_builddir)/extensions/openpower-pels/generic.o \
Harisuddin Mohamed Isa600d15a2019-12-20 12:42:26 +080042 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050043 $(top_builddir)/extensions/openpower-pels/log_id.o \
Matt Spinler131870c2019-09-25 13:29:04 -050044 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050045 $(top_builddir)/extensions/openpower-pels/mru.o \
46 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050047 $(top_builddir)/extensions/openpower-pels/pel.o \
Matt Spinlerf1e85e22019-11-01 11:31:31 -050048 $(top_builddir)/extensions/openpower-pels/pel_rules.o \
Matt Spinler367144c2019-09-19 15:33:52 -050049 $(top_builddir)/extensions/openpower-pels/pel_values.o \
Matt Spinler03c1d912019-07-10 14:12:15 -050050 $(top_builddir)/extensions/openpower-pels/private_header.o \
Matt Spinler367144c2019-09-19 15:33:52 -050051 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinler131870c2019-09-25 13:29:04 -050052 $(top_builddir)/extensions/openpower-pels/section_factory.o \
Matt Spinler8c686cc2019-09-20 13:46:02 -050053 $(top_builddir)/extensions/openpower-pels/severity.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050054 $(top_builddir)/extensions/openpower-pels/src.o \
Aatir Manzur51c92632019-09-06 13:30:48 -050055 $(top_builddir)/extensions/openpower-pels/user_data.o \
Matt Spinler03c1d912019-07-10 14:12:15 -050056 $(top_builddir)/extensions/openpower-pels/user_header.o
Matt Spinlerd3335df2019-07-10 11:04:21 -050057
Matt Spinler15ee6ae2019-07-08 16:50:06 -050058additional_data_test_SOURCES = %reldir%/additional_data_test.cpp
59additional_data_test_CPPFLAGS = $(test_cppflags)
60additional_data_test_CXXFLAGS = $(test_cxxflags)
61additional_data_test_LDADD = $(test_ldadd)
62additional_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler113ad282019-07-09 14:44:13 -050063
64stream_test_SOURCES = %reldir%/stream_test.cpp
65stream_test_CPPFLAGS = $(test_cppflags)
66stream_test_CXXFLAGS = $(test_cxxflags)
67stream_test_LDADD = $(test_ldadd)
Matt Spinlerdf797f22019-07-09 15:39:51 -050068stream_test_LDFLAGS = $(test_ldflags)
69
70bcd_time_test_SOURCES = \
71 %reldir%/bcd_time_test.cpp
72bcd_time_test_CPPFLAGS = $(test_cppflags)
73bcd_time_test_CXXFLAGS = $(test_cxxflags)
74bcd_time_test_LDADD = \
75 $(test_ldadd) \
76 $(top_builddir)/extensions/openpower-pels/bcd_time.o
Matt Spinler1b5c72b2019-07-10 10:32:06 -050077bcd_time_test_LDFLAGS = $(test_ldflags)
78
79section_header_test_SOURCES = \
80 %reldir%/section_header_test.cpp
81section_header_test_CPPFLAGS = $(test_cppflags)
82section_header_test_CXXFLAGS = $(test_cxxflags)
83section_header_test_LDADD = $(test_ldadd)
Matt Spinlerd3335df2019-07-10 11:04:21 -050084section_header_test_LDFLAGS = $(test_ldflags)
85
86private_header_test_SOURCES = \
Matt Spinlercb6b0592019-07-16 15:58:51 -050087 %reldir%/private_header_test.cpp %reldir%/pel_utils.cpp %reldir%/paths.cpp
Matt Spinlerd3335df2019-07-10 11:04:21 -050088private_header_test_CPPFLAGS = $(test_cppflags)
89private_header_test_CXXFLAGS = $(test_cxxflags)
90private_header_test_LDADD = \
91 $(test_ldadd) \
92 $(pel_objects)
93private_header_test_LDFLAGS = $(test_ldflags)
Matt Spinler03c1d912019-07-10 14:12:15 -050094
95user_header_test_SOURCES = \
Matt Spinlercb6b0592019-07-16 15:58:51 -050096 %reldir%/user_header_test.cpp %reldir%/pel_utils.cpp %reldir%/paths.cpp
Matt Spinler03c1d912019-07-10 14:12:15 -050097user_header_test_CPPFLAGS = $(test_cppflags)
98user_header_test_CXXFLAGS = $(test_cxxflags)
99user_header_test_LDADD = \
100 $(test_ldadd) \
101 $(pel_objects)
102user_header_test_LDFLAGS = $(test_ldflags)
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500103
104log_id_test_SOURCES = \
105 %reldir%/log_id_test.cpp %reldir%/paths.cpp
106log_id_test_CPPFLAGS = $(test_cppflags)
107log_id_test_CXXFLAGS = $(test_cxxflags)
108log_id_test_LDADD = \
109 $(test_ldadd) \
110 $(top_builddir)/extensions/openpower-pels/log_id.o
111log_id_test_LDFLAGS = $(test_ldflags)
Matt Spinlercb6b0592019-07-16 15:58:51 -0500112
113pel_test_SOURCES = \
114 %reldir%/pel_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
115pel_test_CPPFLAGS = $(test_cppflags)
116pel_test_CXXFLAGS = $(test_cxxflags)
117pel_test_LDADD = \
118 $(test_ldadd) \
119 $(pel_objects)
120pel_test_LDFLAGS = $(test_ldflags)
Matt Spinler89fa0822019-07-17 13:54:30 -0500121
Matt Spinler07eefc52019-09-26 11:18:26 -0500122real_pel_test_SOURCES = \
123 %reldir%/real_pel_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
124real_pel_test_CPPFLAGS = $(test_cppflags)
125real_pel_test_CXXFLAGS = $(test_cxxflags)
126real_pel_test_LDADD = \
127 $(test_ldadd) \
128 $(pel_objects)
129real_pel_test_LDFLAGS = $(test_ldflags)
130
Matt Spinler89fa0822019-07-17 13:54:30 -0500131repository_test_SOURCES = \
132 %reldir%/repository_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
133repository_test_CPPFLAGS = $(test_cppflags)
134repository_test_CXXFLAGS = $(test_cxxflags)
135repository_test_LDADD = \
136 $(test_ldadd) \
137 $(pel_objects) \
138 $(top_builddir)/extensions/openpower-pels/repository.o
139repository_test_LDFLAGS = $(test_ldflags)
140
141pel_manager_test_SOURCES = \
142 %reldir%/pel_manager_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
143pel_manager_test_CPPFLAGS = $(test_cppflags)
Matt Spinlera34ab722019-12-16 10:39:32 -0600144pel_manager_test_CXXFLAGS = \
145 $(test_cxxflags) \
146 $(SDEVENTPLUS_CFLAGS)
Matt Spinler89fa0822019-07-17 13:54:30 -0500147pel_manager_test_LDADD = \
148 $(test_ldadd) \
149 $(pel_objects) \
Matt Spinlerc8705e22019-09-11 12:36:07 -0500150 $(top_builddir)/extensions/openpower-pels/data_interface.o \
Matt Spinlerf60ac272019-12-11 13:47:50 -0600151 $(top_builddir)/extensions/openpower-pels/host_notifier.o \
Matt Spinler89fa0822019-07-17 13:54:30 -0500152 $(top_builddir)/extensions/openpower-pels/manager.o \
153 $(top_builddir)/extensions/openpower-pels/repository.o
Matt Spinlera34ab722019-12-16 10:39:32 -0600154pel_manager_test_LDFLAGS = \
155 $(test_ldflags) \
156 $(SDEVENTPLUS_LIBS)
Matt Spinlerb6664332019-09-10 15:24:10 -0500157
Matt Spinler367144c2019-09-19 15:33:52 -0500158registry_test_SOURCES = \
159 %reldir%/registry_test.cpp %reldir%/paths.cpp
160registry_test_CPPFLAGS = $(test_cppflags)
161registry_test_CXXFLAGS = $(test_cxxflags)
162registry_test_LDADD = \
163 $(test_ldadd) \
164 $(top_builddir)/extensions/openpower-pels/registry.o \
165 $(top_builddir)/extensions/openpower-pels/pel_values.o
166registry_test_LDFLAGS = $(test_ldflags)
167
Matt Spinler8c686cc2019-09-20 13:46:02 -0500168severity_test_SOURCES = %reldir%/severity_test.cpp
169severity_test_CPPFLAGS = $(test_cppflags)
170severity_test_CXXFLAGS = $(test_cxxflags)
171severity_test_LDADD = \
172 $(test_ldflags) \
173 $(top_builddir)/extensions/openpower-pels/severity.o
174severity_test_LDFLAGS = $(test_ldflags)
175
Matt Spinlerb6664332019-09-10 15:24:10 -0500176mtms_test_SOURCES = %reldir%/mtms_test.cpp
177mtms_test_CPPFLAGS = $(test_cppflags)
178mtms_test_CXXFLAGS = $(test_cxxflags)
179mtms_test_LDADD = \
180 $(test_ldadd) \
181 $(top_builddir)/extensions/openpower-pels/mtms.o
182mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler09d64002019-09-11 14:29:46 -0500183
184failing_mtms_test_SOURCES = %reldir%/failing_mtms_test.cpp
185failing_mtms_test_CPPFLAGS = $(test_cppflags)
186failing_mtms_test_CXXFLAGS = $(test_cxxflags)
187failing_mtms_test_LDADD = \
188 $(test_ldadd) \
189 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
190 $(top_builddir)/extensions/openpower-pels/mtms.o
191failing_mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler835a8692019-08-27 13:56:05 -0500192
193pel_values_test_SOURCES = %reldir%/pel_values_test.cpp
194pel_values_test_CPPFLAGS = $(test_cppflags)
195pel_values_test_CXXFLAGS = $(test_cxxflags)
196pel_values_test_LDADD = \
197 $(test_ldflags) \
198 $(top_builddir)/extensions/openpower-pels/pel_values.o
199pel_values_test_LDFLAGS = $(test_ldflags)
Matt Spinler14d671f2019-09-25 13:11:22 -0500200
201generic_section_test_SOURCES = \
202 %reldir%/generic_section_test.cpp %reldir%/pel_utils.cpp
203generic_section_test_CPPFLAGS = $(test_cppflags)
204generic_section_test_CXXFLAGS = $(test_cxxflags)
205generic_section_test_LDADD = \
206 $(test_ldadd) \
207 $(top_builddir)/extensions/openpower-pels/generic.o
208generic_section_test_LDFLAGS = $(test_ldflags)
Aatir Manzur51c92632019-09-06 13:30:48 -0500209
210user_data_test_SOURCES = \
211 %reldir%/user_data_test.cpp %reldir%/pel_utils.cpp
212user_data_test_CPPFLAGS = $(test_cppflags)
213user_data_test_CXXFLAGS = $(test_cxxflags)
214user_data_test_LDADD = \
215 $(test_ldadd) \
216 $(top_builddir)/extensions/openpower-pels/user_data.o
217user_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler6852d722019-09-30 15:35:53 -0500218
219ascii_string_test_SOURCES = %reldir%/ascii_string_test.cpp
220ascii_string_test_CPPFLAGS = $(test_cppflags)
221ascii_string_test_CXXFLAGS = $(test_cxxflags)
222ascii_string_test_LDADD = \
223 $(test_ldadd) \
224 $(top_builddir)/extensions/openpower-pels/ascii_string.o
225ascii_string_test_LDFLAGS = $(test_ldflags)
Matt Spinlera906c942019-10-08 13:42:05 -0500226
227fru_identity_test_SOURCES = %reldir%/fru_identity_test.cpp
228fru_identity_test_CPPFLAGS = $(test_cppflags)
229fru_identity_test_CXXFLAGS = $(test_cxxflags)
230fru_identity_test_LDADD = \
231 $(test_ldadd) \
232 $(top_builddir)/extensions/openpower-pels/fru_identity.o
233fru_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler5b3a11d2019-10-08 14:13:31 -0500234
235pce_identity_test_SOURCES = %reldir%/pce_identity_test.cpp
236pce_identity_test_CPPFLAGS = $(test_cppflags)
237pce_identity_test_CXXFLAGS = $(test_cxxflags)
238pce_identity_test_LDADD = \
239 $(test_ldadd) \
240 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
241 $(top_builddir)/extensions/openpower-pels/mtms.o
242pce_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler90b4a0a2019-10-09 10:08:43 -0500243
244mru_test_SOURCES = %reldir%/mru_test.cpp
245mru_test_CPPFLAGS = $(test_cppflags)
246mru_test_CXXFLAGS = $(test_cxxflags)
247mru_test_LDADD = \
248 $(test_ldadd) \
249 $(top_builddir)/extensions/openpower-pels/mru.o
250mru_test_LDFLAGS = $(test_ldflags)
Matt Spinler6c9662c2019-10-09 11:27:20 -0500251
252src_callout_test_SOURCES = \
253 %reldir%/src_callout_test.cpp \
254 %reldir%/pel_utils.cpp
255src_callout_test_CPPFLAGS = $(test_cppflags)
256src_callout_test_CXXFLAGS = $(test_cxxflags)
257src_callout_test_LDADD = \
258 $(test_ldadd) \
259 $(top_builddir)/extensions/openpower-pels/callout.o \
260 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
261 $(top_builddir)/extensions/openpower-pels/mru.o \
262 $(top_builddir)/extensions/openpower-pels/mtms.o \
263 $(top_builddir)/extensions/openpower-pels/pce_identity.o
264src_callout_test_LDFLAGS = $(test_ldflags)
Matt Spinler32f13c92019-10-09 12:48:25 -0500265
266src_callouts_test_SOURCES = \
267 %reldir%/src_callouts_test.cpp \
268 %reldir%/pel_utils.cpp
269src_callouts_test_CPPFLAGS = $(test_cppflags)
270src_callouts_test_CXXFLAGS = $(test_cxxflags)
271src_callouts_test_LDADD = \
272 $(test_ldadd) \
273 $(top_builddir)/extensions/openpower-pels/callout.o \
274 $(top_builddir)/extensions/openpower-pels/callouts.o \
275 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
276 $(top_builddir)/extensions/openpower-pels/mru.o \
277 $(top_builddir)/extensions/openpower-pels/mtms.o \
278 $(top_builddir)/extensions/openpower-pels/pce_identity.o
279src_callouts_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf9bae182019-10-09 13:37:38 -0500280
281src_test_SOURCES = \
282 %reldir%/src_test.cpp \
283 %reldir%/pel_utils.cpp
284src_test_CPPFLAGS = $(test_cppflags)
285src_test_CXXFLAGS = $(test_cxxflags)
286src_test_LDADD = \
287 $(test_ldadd) \
288 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
289 $(top_builddir)/extensions/openpower-pels/callout.o \
290 $(top_builddir)/extensions/openpower-pels/callouts.o \
291 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800292 $(top_builddir)/extensions/openpower-pels/json_utils.o \
293 $(top_builddir)/extensions/openpower-pels/paths.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -0500294 $(top_builddir)/extensions/openpower-pels/mru.o \
295 $(top_builddir)/extensions/openpower-pels/mtms.o \
296 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800297 $(top_builddir)/extensions/openpower-pels/pel_values.o \
298 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -0500299 $(top_builddir)/extensions/openpower-pels/src.o
300src_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf1e85e22019-11-01 11:31:31 -0500301
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600302extended_user_header_test_SOURCES = \
303 %reldir%/extended_user_header_test.cpp \
304 %reldir%/pel_utils.cpp
305extended_user_header_test_CPPFLAGS = $(test_cppflags)
306extended_user_header_test_CXXFLAGS = $(test_cxxflags)
307extended_user_header_test_LDADD = \
308 $(test_ldadd) \
309 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
310 $(top_builddir)/extensions/openpower-pels/bcd_time.o \
311 $(top_builddir)/extensions/openpower-pels/callout.o \
312 $(top_builddir)/extensions/openpower-pels/callouts.o \
313 $(top_builddir)/extensions/openpower-pels/data_interface.o \
314 $(top_builddir)/extensions/openpower-pels/extended_user_header.o \
315 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800316 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600317 $(top_builddir)/extensions/openpower-pels/mru.o \
318 $(top_builddir)/extensions/openpower-pels/mtms.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800319 $(top_builddir)/extensions/openpower-pels/paths.o \
320 $(top_builddir)/extensions/openpower-pels/pel_values.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600321 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800322 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600323 $(top_builddir)/extensions/openpower-pels/src.o
324extended_user_header_test_LDFLAGS = $(test_ldflags)
325
Matt Spinlerf1e85e22019-11-01 11:31:31 -0500326pel_rules_test_SOURCES = %reldir%/pel_rules_test.cpp
327pel_rules_test_CPPFLAGS = $(test_cppflags)
328pel_rules_test_CXXFLAGS = $(test_cxxflags)
329pel_rules_test_LDADD = \
330 $(test_ldflags) \
331 $(top_builddir)/extensions/openpower-pels/pel_rules.o
332pel_rules_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf60ac272019-12-11 13:47:50 -0600333
334host_notifier_test_SOURCES = \
335 %reldir%/host_notifier_test.cpp \
336 %reldir%/paths.cpp \
337 %reldir%/pel_utils.cpp
338host_notifier_test_CPPFLAGS = $(test_cppflags)
339host_notifier_test_CXXFLAGS = $(test_cxxflags) $(SDEVENTPLUS_CFLAGS)
340host_notifier_test_LDADD = \
341 $(test_ldflags) \
342 $(pel_objects) \
343 $(top_builddir)/extensions/openpower-pels/host_notifier.o \
344 $(top_builddir)/extensions/openpower-pels/repository.o
345host_notifier_test_LDFLAGS = $(test_ldflags) $(SDEVENTPLUS_LIBS)