blob: 2ce9498878c502b810445a43e57d68b92b77a828 [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)
144pel_manager_test_CXXFLAGS = $(test_cxxflags)
145pel_manager_test_LDADD = \
146 $(test_ldadd) \
147 $(pel_objects) \
Matt Spinlerc8705e22019-09-11 12:36:07 -0500148 $(top_builddir)/extensions/openpower-pels/data_interface.o \
Matt Spinlerf60ac272019-12-11 13:47:50 -0600149 $(top_builddir)/extensions/openpower-pels/host_notifier.o \
Matt Spinler89fa0822019-07-17 13:54:30 -0500150 $(top_builddir)/extensions/openpower-pels/manager.o \
151 $(top_builddir)/extensions/openpower-pels/repository.o
Matt Spinlerb6664332019-09-10 15:24:10 -0500152pel_manager_test_LDFLAGS = $(test_ldflags)
153
Matt Spinler367144c2019-09-19 15:33:52 -0500154registry_test_SOURCES = \
155 %reldir%/registry_test.cpp %reldir%/paths.cpp
156registry_test_CPPFLAGS = $(test_cppflags)
157registry_test_CXXFLAGS = $(test_cxxflags)
158registry_test_LDADD = \
159 $(test_ldadd) \
160 $(top_builddir)/extensions/openpower-pels/registry.o \
161 $(top_builddir)/extensions/openpower-pels/pel_values.o
162registry_test_LDFLAGS = $(test_ldflags)
163
Matt Spinler8c686cc2019-09-20 13:46:02 -0500164severity_test_SOURCES = %reldir%/severity_test.cpp
165severity_test_CPPFLAGS = $(test_cppflags)
166severity_test_CXXFLAGS = $(test_cxxflags)
167severity_test_LDADD = \
168 $(test_ldflags) \
169 $(top_builddir)/extensions/openpower-pels/severity.o
170severity_test_LDFLAGS = $(test_ldflags)
171
Matt Spinlerb6664332019-09-10 15:24:10 -0500172mtms_test_SOURCES = %reldir%/mtms_test.cpp
173mtms_test_CPPFLAGS = $(test_cppflags)
174mtms_test_CXXFLAGS = $(test_cxxflags)
175mtms_test_LDADD = \
176 $(test_ldadd) \
177 $(top_builddir)/extensions/openpower-pels/mtms.o
178mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler09d64002019-09-11 14:29:46 -0500179
180failing_mtms_test_SOURCES = %reldir%/failing_mtms_test.cpp
181failing_mtms_test_CPPFLAGS = $(test_cppflags)
182failing_mtms_test_CXXFLAGS = $(test_cxxflags)
183failing_mtms_test_LDADD = \
184 $(test_ldadd) \
185 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
186 $(top_builddir)/extensions/openpower-pels/mtms.o
187failing_mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler835a8692019-08-27 13:56:05 -0500188
189pel_values_test_SOURCES = %reldir%/pel_values_test.cpp
190pel_values_test_CPPFLAGS = $(test_cppflags)
191pel_values_test_CXXFLAGS = $(test_cxxflags)
192pel_values_test_LDADD = \
193 $(test_ldflags) \
194 $(top_builddir)/extensions/openpower-pels/pel_values.o
195pel_values_test_LDFLAGS = $(test_ldflags)
Matt Spinler14d671f2019-09-25 13:11:22 -0500196
197generic_section_test_SOURCES = \
198 %reldir%/generic_section_test.cpp %reldir%/pel_utils.cpp
199generic_section_test_CPPFLAGS = $(test_cppflags)
200generic_section_test_CXXFLAGS = $(test_cxxflags)
201generic_section_test_LDADD = \
202 $(test_ldadd) \
203 $(top_builddir)/extensions/openpower-pels/generic.o
204generic_section_test_LDFLAGS = $(test_ldflags)
Aatir Manzur51c92632019-09-06 13:30:48 -0500205
206user_data_test_SOURCES = \
207 %reldir%/user_data_test.cpp %reldir%/pel_utils.cpp
208user_data_test_CPPFLAGS = $(test_cppflags)
209user_data_test_CXXFLAGS = $(test_cxxflags)
210user_data_test_LDADD = \
211 $(test_ldadd) \
212 $(top_builddir)/extensions/openpower-pels/user_data.o
213user_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler6852d722019-09-30 15:35:53 -0500214
215ascii_string_test_SOURCES = %reldir%/ascii_string_test.cpp
216ascii_string_test_CPPFLAGS = $(test_cppflags)
217ascii_string_test_CXXFLAGS = $(test_cxxflags)
218ascii_string_test_LDADD = \
219 $(test_ldadd) \
220 $(top_builddir)/extensions/openpower-pels/ascii_string.o
221ascii_string_test_LDFLAGS = $(test_ldflags)
Matt Spinlera906c942019-10-08 13:42:05 -0500222
223fru_identity_test_SOURCES = %reldir%/fru_identity_test.cpp
224fru_identity_test_CPPFLAGS = $(test_cppflags)
225fru_identity_test_CXXFLAGS = $(test_cxxflags)
226fru_identity_test_LDADD = \
227 $(test_ldadd) \
228 $(top_builddir)/extensions/openpower-pels/fru_identity.o
229fru_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler5b3a11d2019-10-08 14:13:31 -0500230
231pce_identity_test_SOURCES = %reldir%/pce_identity_test.cpp
232pce_identity_test_CPPFLAGS = $(test_cppflags)
233pce_identity_test_CXXFLAGS = $(test_cxxflags)
234pce_identity_test_LDADD = \
235 $(test_ldadd) \
236 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
237 $(top_builddir)/extensions/openpower-pels/mtms.o
238pce_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler90b4a0a2019-10-09 10:08:43 -0500239
240mru_test_SOURCES = %reldir%/mru_test.cpp
241mru_test_CPPFLAGS = $(test_cppflags)
242mru_test_CXXFLAGS = $(test_cxxflags)
243mru_test_LDADD = \
244 $(test_ldadd) \
245 $(top_builddir)/extensions/openpower-pels/mru.o
246mru_test_LDFLAGS = $(test_ldflags)
Matt Spinler6c9662c2019-10-09 11:27:20 -0500247
248src_callout_test_SOURCES = \
249 %reldir%/src_callout_test.cpp \
250 %reldir%/pel_utils.cpp
251src_callout_test_CPPFLAGS = $(test_cppflags)
252src_callout_test_CXXFLAGS = $(test_cxxflags)
253src_callout_test_LDADD = \
254 $(test_ldadd) \
255 $(top_builddir)/extensions/openpower-pels/callout.o \
256 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
257 $(top_builddir)/extensions/openpower-pels/mru.o \
258 $(top_builddir)/extensions/openpower-pels/mtms.o \
259 $(top_builddir)/extensions/openpower-pels/pce_identity.o
260src_callout_test_LDFLAGS = $(test_ldflags)
Matt Spinler32f13c92019-10-09 12:48:25 -0500261
262src_callouts_test_SOURCES = \
263 %reldir%/src_callouts_test.cpp \
264 %reldir%/pel_utils.cpp
265src_callouts_test_CPPFLAGS = $(test_cppflags)
266src_callouts_test_CXXFLAGS = $(test_cxxflags)
267src_callouts_test_LDADD = \
268 $(test_ldadd) \
269 $(top_builddir)/extensions/openpower-pels/callout.o \
270 $(top_builddir)/extensions/openpower-pels/callouts.o \
271 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
272 $(top_builddir)/extensions/openpower-pels/mru.o \
273 $(top_builddir)/extensions/openpower-pels/mtms.o \
274 $(top_builddir)/extensions/openpower-pels/pce_identity.o
275src_callouts_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf9bae182019-10-09 13:37:38 -0500276
277src_test_SOURCES = \
278 %reldir%/src_test.cpp \
279 %reldir%/pel_utils.cpp
280src_test_CPPFLAGS = $(test_cppflags)
281src_test_CXXFLAGS = $(test_cxxflags)
282src_test_LDADD = \
283 $(test_ldadd) \
284 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
285 $(top_builddir)/extensions/openpower-pels/callout.o \
286 $(top_builddir)/extensions/openpower-pels/callouts.o \
287 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
288 $(top_builddir)/extensions/openpower-pels/mru.o \
289 $(top_builddir)/extensions/openpower-pels/mtms.o \
290 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
291 $(top_builddir)/extensions/openpower-pels/src.o
292src_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf1e85e22019-11-01 11:31:31 -0500293
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600294extended_user_header_test_SOURCES = \
295 %reldir%/extended_user_header_test.cpp \
296 %reldir%/pel_utils.cpp
297extended_user_header_test_CPPFLAGS = $(test_cppflags)
298extended_user_header_test_CXXFLAGS = $(test_cxxflags)
299extended_user_header_test_LDADD = \
300 $(test_ldadd) \
301 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
302 $(top_builddir)/extensions/openpower-pels/bcd_time.o \
303 $(top_builddir)/extensions/openpower-pels/callout.o \
304 $(top_builddir)/extensions/openpower-pels/callouts.o \
305 $(top_builddir)/extensions/openpower-pels/data_interface.o \
306 $(top_builddir)/extensions/openpower-pels/extended_user_header.o \
307 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
308 $(top_builddir)/extensions/openpower-pels/mru.o \
309 $(top_builddir)/extensions/openpower-pels/mtms.o \
310 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
311 $(top_builddir)/extensions/openpower-pels/src.o
312extended_user_header_test_LDFLAGS = $(test_ldflags)
313
Matt Spinlerf1e85e22019-11-01 11:31:31 -0500314pel_rules_test_SOURCES = %reldir%/pel_rules_test.cpp
315pel_rules_test_CPPFLAGS = $(test_cppflags)
316pel_rules_test_CXXFLAGS = $(test_cxxflags)
317pel_rules_test_LDADD = \
318 $(test_ldflags) \
319 $(top_builddir)/extensions/openpower-pels/pel_rules.o
320pel_rules_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf60ac272019-12-11 13:47:50 -0600321
322host_notifier_test_SOURCES = \
323 %reldir%/host_notifier_test.cpp \
324 %reldir%/paths.cpp \
325 %reldir%/pel_utils.cpp
326host_notifier_test_CPPFLAGS = $(test_cppflags)
327host_notifier_test_CXXFLAGS = $(test_cxxflags) $(SDEVENTPLUS_CFLAGS)
328host_notifier_test_LDADD = \
329 $(test_ldflags) \
330 $(pel_objects) \
331 $(top_builddir)/extensions/openpower-pels/host_notifier.o \
332 $(top_builddir)/extensions/openpower-pels/repository.o
333host_notifier_test_LDFLAGS = $(test_ldflags) $(SDEVENTPLUS_LIBS)