blob: d85f215d6fbbe786be9d4c6cb3bdfd95127b25c9 [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 Spinlerdf13bdb2019-07-10 16:54:13 -050011 log_id_test \
Matt Spinler90b4a0a2019-10-09 10:08:43 -050012 mru_test \
Matt Spinlerb6664332019-09-10 15:24:10 -050013 mtms_test \
Matt Spinler5b3a11d2019-10-08 14:13:31 -050014 pce_identity_test \
Matt Spinlerf1e85e22019-11-01 11:31:31 -050015 pel_manager_test \
16 pel_rules_test \
Matt Spinlercb6b0592019-07-16 15:58:51 -050017 pel_test \
Matt Spinler835a8692019-08-27 13:56:05 -050018 pel_values_test \
Matt Spinlerd3335df2019-07-10 11:04:21 -050019 private_header_test \
Matt Spinler07eefc52019-09-26 11:18:26 -050020 real_pel_test \
Matt Spinler367144c2019-09-19 15:33:52 -050021 registry_test \
Matt Spinler89fa0822019-07-17 13:54:30 -050022 repository_test \
Matt Spinler1b5c72b2019-07-10 10:32:06 -050023 section_header_test \
Matt Spinler8c686cc2019-09-20 13:46:02 -050024 severity_test \
Matt Spinlerf9bae182019-10-09 13:37:38 -050025 src_test \
Matt Spinler6c9662c2019-10-09 11:27:20 -050026 src_callout_test \
Matt Spinler32f13c92019-10-09 12:48:25 -050027 src_callouts_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050028 stream_test \
Aatir Manzur51c92632019-09-06 13:30:48 -050029 user_data_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050030 user_header_test
Matt Spinler15ee6ae2019-07-08 16:50:06 -050031
Matt Spinlerd3335df2019-07-10 11:04:21 -050032pel_objects = \
Matt Spinlerf9bae182019-10-09 13:37:38 -050033 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
Matt Spinlerd3335df2019-07-10 11:04:21 -050034 $(top_builddir)/extensions/openpower-pels/bcd_time.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050035 $(top_builddir)/extensions/openpower-pels/callout.o \
36 $(top_builddir)/extensions/openpower-pels/callouts.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -060037 $(top_builddir)/extensions/openpower-pels/extended_user_header.o \
Matt Spinler131870c2019-09-25 13:29:04 -050038 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050039 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
Matt Spinler131870c2019-09-25 13:29:04 -050040 $(top_builddir)/extensions/openpower-pels/generic.o \
Harisuddin Mohamed Isa600d15a2019-12-20 12:42:26 +080041 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050042 $(top_builddir)/extensions/openpower-pels/log_id.o \
Matt Spinler131870c2019-09-25 13:29:04 -050043 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050044 $(top_builddir)/extensions/openpower-pels/mru.o \
45 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050046 $(top_builddir)/extensions/openpower-pels/pel.o \
Matt Spinlerf1e85e22019-11-01 11:31:31 -050047 $(top_builddir)/extensions/openpower-pels/pel_rules.o \
Matt Spinler367144c2019-09-19 15:33:52 -050048 $(top_builddir)/extensions/openpower-pels/pel_values.o \
Matt Spinler03c1d912019-07-10 14:12:15 -050049 $(top_builddir)/extensions/openpower-pels/private_header.o \
Matt Spinler367144c2019-09-19 15:33:52 -050050 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinler131870c2019-09-25 13:29:04 -050051 $(top_builddir)/extensions/openpower-pels/section_factory.o \
Matt Spinler8c686cc2019-09-20 13:46:02 -050052 $(top_builddir)/extensions/openpower-pels/severity.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050053 $(top_builddir)/extensions/openpower-pels/src.o \
Aatir Manzur51c92632019-09-06 13:30:48 -050054 $(top_builddir)/extensions/openpower-pels/user_data.o \
Matt Spinler03c1d912019-07-10 14:12:15 -050055 $(top_builddir)/extensions/openpower-pels/user_header.o
Matt Spinlerd3335df2019-07-10 11:04:21 -050056
Matt Spinler15ee6ae2019-07-08 16:50:06 -050057additional_data_test_SOURCES = %reldir%/additional_data_test.cpp
58additional_data_test_CPPFLAGS = $(test_cppflags)
59additional_data_test_CXXFLAGS = $(test_cxxflags)
60additional_data_test_LDADD = $(test_ldadd)
61additional_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler113ad282019-07-09 14:44:13 -050062
63stream_test_SOURCES = %reldir%/stream_test.cpp
64stream_test_CPPFLAGS = $(test_cppflags)
65stream_test_CXXFLAGS = $(test_cxxflags)
66stream_test_LDADD = $(test_ldadd)
Matt Spinlerdf797f22019-07-09 15:39:51 -050067stream_test_LDFLAGS = $(test_ldflags)
68
69bcd_time_test_SOURCES = \
70 %reldir%/bcd_time_test.cpp
71bcd_time_test_CPPFLAGS = $(test_cppflags)
72bcd_time_test_CXXFLAGS = $(test_cxxflags)
73bcd_time_test_LDADD = \
74 $(test_ldadd) \
75 $(top_builddir)/extensions/openpower-pels/bcd_time.o
Matt Spinler1b5c72b2019-07-10 10:32:06 -050076bcd_time_test_LDFLAGS = $(test_ldflags)
77
78section_header_test_SOURCES = \
79 %reldir%/section_header_test.cpp
80section_header_test_CPPFLAGS = $(test_cppflags)
81section_header_test_CXXFLAGS = $(test_cxxflags)
82section_header_test_LDADD = $(test_ldadd)
Matt Spinlerd3335df2019-07-10 11:04:21 -050083section_header_test_LDFLAGS = $(test_ldflags)
84
85private_header_test_SOURCES = \
Matt Spinlercb6b0592019-07-16 15:58:51 -050086 %reldir%/private_header_test.cpp %reldir%/pel_utils.cpp %reldir%/paths.cpp
Matt Spinlerd3335df2019-07-10 11:04:21 -050087private_header_test_CPPFLAGS = $(test_cppflags)
88private_header_test_CXXFLAGS = $(test_cxxflags)
89private_header_test_LDADD = \
90 $(test_ldadd) \
91 $(pel_objects)
92private_header_test_LDFLAGS = $(test_ldflags)
Matt Spinler03c1d912019-07-10 14:12:15 -050093
94user_header_test_SOURCES = \
Matt Spinlercb6b0592019-07-16 15:58:51 -050095 %reldir%/user_header_test.cpp %reldir%/pel_utils.cpp %reldir%/paths.cpp
Matt Spinler03c1d912019-07-10 14:12:15 -050096user_header_test_CPPFLAGS = $(test_cppflags)
97user_header_test_CXXFLAGS = $(test_cxxflags)
98user_header_test_LDADD = \
99 $(test_ldadd) \
100 $(pel_objects)
101user_header_test_LDFLAGS = $(test_ldflags)
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500102
103log_id_test_SOURCES = \
104 %reldir%/log_id_test.cpp %reldir%/paths.cpp
105log_id_test_CPPFLAGS = $(test_cppflags)
106log_id_test_CXXFLAGS = $(test_cxxflags)
107log_id_test_LDADD = \
108 $(test_ldadd) \
109 $(top_builddir)/extensions/openpower-pels/log_id.o
110log_id_test_LDFLAGS = $(test_ldflags)
Matt Spinlercb6b0592019-07-16 15:58:51 -0500111
112pel_test_SOURCES = \
113 %reldir%/pel_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
114pel_test_CPPFLAGS = $(test_cppflags)
115pel_test_CXXFLAGS = $(test_cxxflags)
116pel_test_LDADD = \
117 $(test_ldadd) \
118 $(pel_objects)
119pel_test_LDFLAGS = $(test_ldflags)
Matt Spinler89fa0822019-07-17 13:54:30 -0500120
Matt Spinler07eefc52019-09-26 11:18:26 -0500121real_pel_test_SOURCES = \
122 %reldir%/real_pel_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
123real_pel_test_CPPFLAGS = $(test_cppflags)
124real_pel_test_CXXFLAGS = $(test_cxxflags)
125real_pel_test_LDADD = \
126 $(test_ldadd) \
127 $(pel_objects)
128real_pel_test_LDFLAGS = $(test_ldflags)
129
Matt Spinler89fa0822019-07-17 13:54:30 -0500130repository_test_SOURCES = \
131 %reldir%/repository_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
132repository_test_CPPFLAGS = $(test_cppflags)
133repository_test_CXXFLAGS = $(test_cxxflags)
134repository_test_LDADD = \
135 $(test_ldadd) \
136 $(pel_objects) \
137 $(top_builddir)/extensions/openpower-pels/repository.o
138repository_test_LDFLAGS = $(test_ldflags)
139
140pel_manager_test_SOURCES = \
141 %reldir%/pel_manager_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
142pel_manager_test_CPPFLAGS = $(test_cppflags)
143pel_manager_test_CXXFLAGS = $(test_cxxflags)
144pel_manager_test_LDADD = \
145 $(test_ldadd) \
146 $(pel_objects) \
Matt Spinlerc8705e22019-09-11 12:36:07 -0500147 $(top_builddir)/extensions/openpower-pels/data_interface.o \
Matt Spinler89fa0822019-07-17 13:54:30 -0500148 $(top_builddir)/extensions/openpower-pels/manager.o \
149 $(top_builddir)/extensions/openpower-pels/repository.o
Matt Spinlerb6664332019-09-10 15:24:10 -0500150pel_manager_test_LDFLAGS = $(test_ldflags)
151
Matt Spinler367144c2019-09-19 15:33:52 -0500152registry_test_SOURCES = \
153 %reldir%/registry_test.cpp %reldir%/paths.cpp
154registry_test_CPPFLAGS = $(test_cppflags)
155registry_test_CXXFLAGS = $(test_cxxflags)
156registry_test_LDADD = \
157 $(test_ldadd) \
158 $(top_builddir)/extensions/openpower-pels/registry.o \
159 $(top_builddir)/extensions/openpower-pels/pel_values.o
160registry_test_LDFLAGS = $(test_ldflags)
161
Matt Spinler8c686cc2019-09-20 13:46:02 -0500162severity_test_SOURCES = %reldir%/severity_test.cpp
163severity_test_CPPFLAGS = $(test_cppflags)
164severity_test_CXXFLAGS = $(test_cxxflags)
165severity_test_LDADD = \
166 $(test_ldflags) \
167 $(top_builddir)/extensions/openpower-pels/severity.o
168severity_test_LDFLAGS = $(test_ldflags)
169
Matt Spinlerb6664332019-09-10 15:24:10 -0500170mtms_test_SOURCES = %reldir%/mtms_test.cpp
171mtms_test_CPPFLAGS = $(test_cppflags)
172mtms_test_CXXFLAGS = $(test_cxxflags)
173mtms_test_LDADD = \
174 $(test_ldadd) \
175 $(top_builddir)/extensions/openpower-pels/mtms.o
176mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler09d64002019-09-11 14:29:46 -0500177
178failing_mtms_test_SOURCES = %reldir%/failing_mtms_test.cpp
179failing_mtms_test_CPPFLAGS = $(test_cppflags)
180failing_mtms_test_CXXFLAGS = $(test_cxxflags)
181failing_mtms_test_LDADD = \
182 $(test_ldadd) \
183 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
184 $(top_builddir)/extensions/openpower-pels/mtms.o
185failing_mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler835a8692019-08-27 13:56:05 -0500186
187pel_values_test_SOURCES = %reldir%/pel_values_test.cpp
188pel_values_test_CPPFLAGS = $(test_cppflags)
189pel_values_test_CXXFLAGS = $(test_cxxflags)
190pel_values_test_LDADD = \
191 $(test_ldflags) \
192 $(top_builddir)/extensions/openpower-pels/pel_values.o
193pel_values_test_LDFLAGS = $(test_ldflags)
Matt Spinler14d671f2019-09-25 13:11:22 -0500194
195generic_section_test_SOURCES = \
196 %reldir%/generic_section_test.cpp %reldir%/pel_utils.cpp
197generic_section_test_CPPFLAGS = $(test_cppflags)
198generic_section_test_CXXFLAGS = $(test_cxxflags)
199generic_section_test_LDADD = \
200 $(test_ldadd) \
201 $(top_builddir)/extensions/openpower-pels/generic.o
202generic_section_test_LDFLAGS = $(test_ldflags)
Aatir Manzur51c92632019-09-06 13:30:48 -0500203
204user_data_test_SOURCES = \
205 %reldir%/user_data_test.cpp %reldir%/pel_utils.cpp
206user_data_test_CPPFLAGS = $(test_cppflags)
207user_data_test_CXXFLAGS = $(test_cxxflags)
208user_data_test_LDADD = \
209 $(test_ldadd) \
210 $(top_builddir)/extensions/openpower-pels/user_data.o
211user_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler6852d722019-09-30 15:35:53 -0500212
213ascii_string_test_SOURCES = %reldir%/ascii_string_test.cpp
214ascii_string_test_CPPFLAGS = $(test_cppflags)
215ascii_string_test_CXXFLAGS = $(test_cxxflags)
216ascii_string_test_LDADD = \
217 $(test_ldadd) \
218 $(top_builddir)/extensions/openpower-pels/ascii_string.o
219ascii_string_test_LDFLAGS = $(test_ldflags)
Matt Spinlera906c942019-10-08 13:42:05 -0500220
221fru_identity_test_SOURCES = %reldir%/fru_identity_test.cpp
222fru_identity_test_CPPFLAGS = $(test_cppflags)
223fru_identity_test_CXXFLAGS = $(test_cxxflags)
224fru_identity_test_LDADD = \
225 $(test_ldadd) \
226 $(top_builddir)/extensions/openpower-pels/fru_identity.o
227fru_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler5b3a11d2019-10-08 14:13:31 -0500228
229pce_identity_test_SOURCES = %reldir%/pce_identity_test.cpp
230pce_identity_test_CPPFLAGS = $(test_cppflags)
231pce_identity_test_CXXFLAGS = $(test_cxxflags)
232pce_identity_test_LDADD = \
233 $(test_ldadd) \
234 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
235 $(top_builddir)/extensions/openpower-pels/mtms.o
236pce_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler90b4a0a2019-10-09 10:08:43 -0500237
238mru_test_SOURCES = %reldir%/mru_test.cpp
239mru_test_CPPFLAGS = $(test_cppflags)
240mru_test_CXXFLAGS = $(test_cxxflags)
241mru_test_LDADD = \
242 $(test_ldadd) \
243 $(top_builddir)/extensions/openpower-pels/mru.o
244mru_test_LDFLAGS = $(test_ldflags)
Matt Spinler6c9662c2019-10-09 11:27:20 -0500245
246src_callout_test_SOURCES = \
247 %reldir%/src_callout_test.cpp \
248 %reldir%/pel_utils.cpp
249src_callout_test_CPPFLAGS = $(test_cppflags)
250src_callout_test_CXXFLAGS = $(test_cxxflags)
251src_callout_test_LDADD = \
252 $(test_ldadd) \
253 $(top_builddir)/extensions/openpower-pels/callout.o \
254 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
255 $(top_builddir)/extensions/openpower-pels/mru.o \
256 $(top_builddir)/extensions/openpower-pels/mtms.o \
257 $(top_builddir)/extensions/openpower-pels/pce_identity.o
258src_callout_test_LDFLAGS = $(test_ldflags)
Matt Spinler32f13c92019-10-09 12:48:25 -0500259
260src_callouts_test_SOURCES = \
261 %reldir%/src_callouts_test.cpp \
262 %reldir%/pel_utils.cpp
263src_callouts_test_CPPFLAGS = $(test_cppflags)
264src_callouts_test_CXXFLAGS = $(test_cxxflags)
265src_callouts_test_LDADD = \
266 $(test_ldadd) \
267 $(top_builddir)/extensions/openpower-pels/callout.o \
268 $(top_builddir)/extensions/openpower-pels/callouts.o \
269 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
270 $(top_builddir)/extensions/openpower-pels/mru.o \
271 $(top_builddir)/extensions/openpower-pels/mtms.o \
272 $(top_builddir)/extensions/openpower-pels/pce_identity.o
273src_callouts_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf9bae182019-10-09 13:37:38 -0500274
275src_test_SOURCES = \
276 %reldir%/src_test.cpp \
277 %reldir%/pel_utils.cpp
278src_test_CPPFLAGS = $(test_cppflags)
279src_test_CXXFLAGS = $(test_cxxflags)
280src_test_LDADD = \
281 $(test_ldadd) \
282 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
283 $(top_builddir)/extensions/openpower-pels/callout.o \
284 $(top_builddir)/extensions/openpower-pels/callouts.o \
285 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
286 $(top_builddir)/extensions/openpower-pels/mru.o \
287 $(top_builddir)/extensions/openpower-pels/mtms.o \
288 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
289 $(top_builddir)/extensions/openpower-pels/src.o
290src_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf1e85e22019-11-01 11:31:31 -0500291
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600292extended_user_header_test_SOURCES = \
293 %reldir%/extended_user_header_test.cpp \
294 %reldir%/pel_utils.cpp
295extended_user_header_test_CPPFLAGS = $(test_cppflags)
296extended_user_header_test_CXXFLAGS = $(test_cxxflags)
297extended_user_header_test_LDADD = \
298 $(test_ldadd) \
299 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
300 $(top_builddir)/extensions/openpower-pels/bcd_time.o \
301 $(top_builddir)/extensions/openpower-pels/callout.o \
302 $(top_builddir)/extensions/openpower-pels/callouts.o \
303 $(top_builddir)/extensions/openpower-pels/data_interface.o \
304 $(top_builddir)/extensions/openpower-pels/extended_user_header.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 \
308 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
309 $(top_builddir)/extensions/openpower-pels/src.o
310extended_user_header_test_LDFLAGS = $(test_ldflags)
311
Matt Spinlerf1e85e22019-11-01 11:31:31 -0500312pel_rules_test_SOURCES = %reldir%/pel_rules_test.cpp
313pel_rules_test_CPPFLAGS = $(test_cppflags)
314pel_rules_test_CXXFLAGS = $(test_cxxflags)
315pel_rules_test_LDADD = \
316 $(test_ldflags) \
317 $(top_builddir)/extensions/openpower-pels/pel_rules.o
318pel_rules_test_LDFLAGS = $(test_ldflags)