blob: 7f3a589e4c4ec2f5544b1ca0d70d251c94ae4a6f [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 Spinler09d64002019-09-11 14:29:46 -05007 failing_mtms_test \
Matt Spinlera906c942019-10-08 13:42:05 -05008 fru_identity_test \
Matt Spinler14d671f2019-09-25 13:11:22 -05009 generic_section_test \
Matt Spinlerdf13bdb2019-07-10 16:54:13 -050010 log_id_test \
Matt Spinler90b4a0a2019-10-09 10:08:43 -050011 mru_test \
Matt Spinlerb6664332019-09-10 15:24:10 -050012 mtms_test \
Matt Spinler5b3a11d2019-10-08 14:13:31 -050013 pce_identity_test \
Matt Spinlerf1e85e22019-11-01 11:31:31 -050014 pel_manager_test \
15 pel_rules_test \
Matt Spinlercb6b0592019-07-16 15:58:51 -050016 pel_test \
Matt Spinler835a8692019-08-27 13:56:05 -050017 pel_values_test \
Matt Spinlerd3335df2019-07-10 11:04:21 -050018 private_header_test \
Matt Spinler07eefc52019-09-26 11:18:26 -050019 real_pel_test \
Matt Spinler367144c2019-09-19 15:33:52 -050020 registry_test \
Matt Spinler89fa0822019-07-17 13:54:30 -050021 repository_test \
Matt Spinler1b5c72b2019-07-10 10:32:06 -050022 section_header_test \
Matt Spinler8c686cc2019-09-20 13:46:02 -050023 severity_test \
Matt Spinlerf9bae182019-10-09 13:37:38 -050024 src_test \
Matt Spinler6c9662c2019-10-09 11:27:20 -050025 src_callout_test \
Matt Spinler32f13c92019-10-09 12:48:25 -050026 src_callouts_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050027 stream_test \
Aatir Manzur51c92632019-09-06 13:30:48 -050028 user_data_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050029 user_header_test
Matt Spinler15ee6ae2019-07-08 16:50:06 -050030
Matt Spinlerd3335df2019-07-10 11:04:21 -050031pel_objects = \
Matt Spinlerf9bae182019-10-09 13:37:38 -050032 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
Matt Spinlerd3335df2019-07-10 11:04:21 -050033 $(top_builddir)/extensions/openpower-pels/bcd_time.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050034 $(top_builddir)/extensions/openpower-pels/callout.o \
35 $(top_builddir)/extensions/openpower-pels/callouts.o \
Matt Spinler131870c2019-09-25 13:29:04 -050036 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050037 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
Matt Spinler131870c2019-09-25 13:29:04 -050038 $(top_builddir)/extensions/openpower-pels/generic.o \
Aatir186ce8c2019-10-20 15:13:39 -050039 $(top_builddir)/extensions/openpower-pels/hexdump.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050040 $(top_builddir)/extensions/openpower-pels/log_id.o \
Matt Spinler131870c2019-09-25 13:29:04 -050041 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050042 $(top_builddir)/extensions/openpower-pels/mru.o \
43 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050044 $(top_builddir)/extensions/openpower-pels/pel.o \
Matt Spinlerf1e85e22019-11-01 11:31:31 -050045 $(top_builddir)/extensions/openpower-pels/pel_rules.o \
Matt Spinler367144c2019-09-19 15:33:52 -050046 $(top_builddir)/extensions/openpower-pels/pel_values.o \
Matt Spinler03c1d912019-07-10 14:12:15 -050047 $(top_builddir)/extensions/openpower-pels/private_header.o \
Matt Spinler367144c2019-09-19 15:33:52 -050048 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinler131870c2019-09-25 13:29:04 -050049 $(top_builddir)/extensions/openpower-pels/section_factory.o \
Matt Spinler8c686cc2019-09-20 13:46:02 -050050 $(top_builddir)/extensions/openpower-pels/severity.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050051 $(top_builddir)/extensions/openpower-pels/src.o \
Aatir Manzur51c92632019-09-06 13:30:48 -050052 $(top_builddir)/extensions/openpower-pels/user_data.o \
Matt Spinler03c1d912019-07-10 14:12:15 -050053 $(top_builddir)/extensions/openpower-pels/user_header.o
Matt Spinlerd3335df2019-07-10 11:04:21 -050054
Matt Spinler15ee6ae2019-07-08 16:50:06 -050055additional_data_test_SOURCES = %reldir%/additional_data_test.cpp
56additional_data_test_CPPFLAGS = $(test_cppflags)
57additional_data_test_CXXFLAGS = $(test_cxxflags)
58additional_data_test_LDADD = $(test_ldadd)
59additional_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler113ad282019-07-09 14:44:13 -050060
61stream_test_SOURCES = %reldir%/stream_test.cpp
62stream_test_CPPFLAGS = $(test_cppflags)
63stream_test_CXXFLAGS = $(test_cxxflags)
64stream_test_LDADD = $(test_ldadd)
Matt Spinlerdf797f22019-07-09 15:39:51 -050065stream_test_LDFLAGS = $(test_ldflags)
66
67bcd_time_test_SOURCES = \
68 %reldir%/bcd_time_test.cpp
69bcd_time_test_CPPFLAGS = $(test_cppflags)
70bcd_time_test_CXXFLAGS = $(test_cxxflags)
71bcd_time_test_LDADD = \
72 $(test_ldadd) \
73 $(top_builddir)/extensions/openpower-pels/bcd_time.o
Matt Spinler1b5c72b2019-07-10 10:32:06 -050074bcd_time_test_LDFLAGS = $(test_ldflags)
75
76section_header_test_SOURCES = \
77 %reldir%/section_header_test.cpp
78section_header_test_CPPFLAGS = $(test_cppflags)
79section_header_test_CXXFLAGS = $(test_cxxflags)
80section_header_test_LDADD = $(test_ldadd)
Matt Spinlerd3335df2019-07-10 11:04:21 -050081section_header_test_LDFLAGS = $(test_ldflags)
82
83private_header_test_SOURCES = \
Matt Spinlercb6b0592019-07-16 15:58:51 -050084 %reldir%/private_header_test.cpp %reldir%/pel_utils.cpp %reldir%/paths.cpp
Matt Spinlerd3335df2019-07-10 11:04:21 -050085private_header_test_CPPFLAGS = $(test_cppflags)
86private_header_test_CXXFLAGS = $(test_cxxflags)
87private_header_test_LDADD = \
88 $(test_ldadd) \
89 $(pel_objects)
90private_header_test_LDFLAGS = $(test_ldflags)
Matt Spinler03c1d912019-07-10 14:12:15 -050091
92user_header_test_SOURCES = \
Matt Spinlercb6b0592019-07-16 15:58:51 -050093 %reldir%/user_header_test.cpp %reldir%/pel_utils.cpp %reldir%/paths.cpp
Matt Spinler03c1d912019-07-10 14:12:15 -050094user_header_test_CPPFLAGS = $(test_cppflags)
95user_header_test_CXXFLAGS = $(test_cxxflags)
96user_header_test_LDADD = \
97 $(test_ldadd) \
98 $(pel_objects)
99user_header_test_LDFLAGS = $(test_ldflags)
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500100
101log_id_test_SOURCES = \
102 %reldir%/log_id_test.cpp %reldir%/paths.cpp
103log_id_test_CPPFLAGS = $(test_cppflags)
104log_id_test_CXXFLAGS = $(test_cxxflags)
105log_id_test_LDADD = \
106 $(test_ldadd) \
107 $(top_builddir)/extensions/openpower-pels/log_id.o
108log_id_test_LDFLAGS = $(test_ldflags)
Matt Spinlercb6b0592019-07-16 15:58:51 -0500109
110pel_test_SOURCES = \
111 %reldir%/pel_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
112pel_test_CPPFLAGS = $(test_cppflags)
113pel_test_CXXFLAGS = $(test_cxxflags)
114pel_test_LDADD = \
115 $(test_ldadd) \
116 $(pel_objects)
117pel_test_LDFLAGS = $(test_ldflags)
Matt Spinler89fa0822019-07-17 13:54:30 -0500118
Matt Spinler07eefc52019-09-26 11:18:26 -0500119real_pel_test_SOURCES = \
120 %reldir%/real_pel_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
121real_pel_test_CPPFLAGS = $(test_cppflags)
122real_pel_test_CXXFLAGS = $(test_cxxflags)
123real_pel_test_LDADD = \
124 $(test_ldadd) \
125 $(pel_objects)
126real_pel_test_LDFLAGS = $(test_ldflags)
127
Matt Spinler89fa0822019-07-17 13:54:30 -0500128repository_test_SOURCES = \
129 %reldir%/repository_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
130repository_test_CPPFLAGS = $(test_cppflags)
131repository_test_CXXFLAGS = $(test_cxxflags)
132repository_test_LDADD = \
133 $(test_ldadd) \
134 $(pel_objects) \
135 $(top_builddir)/extensions/openpower-pels/repository.o
136repository_test_LDFLAGS = $(test_ldflags)
137
138pel_manager_test_SOURCES = \
139 %reldir%/pel_manager_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
140pel_manager_test_CPPFLAGS = $(test_cppflags)
141pel_manager_test_CXXFLAGS = $(test_cxxflags)
142pel_manager_test_LDADD = \
143 $(test_ldadd) \
144 $(pel_objects) \
Matt Spinlerc8705e22019-09-11 12:36:07 -0500145 $(top_builddir)/extensions/openpower-pels/data_interface.o \
Matt Spinler89fa0822019-07-17 13:54:30 -0500146 $(top_builddir)/extensions/openpower-pels/manager.o \
147 $(top_builddir)/extensions/openpower-pels/repository.o
Matt Spinlerb6664332019-09-10 15:24:10 -0500148pel_manager_test_LDFLAGS = $(test_ldflags)
149
Matt Spinler367144c2019-09-19 15:33:52 -0500150registry_test_SOURCES = \
151 %reldir%/registry_test.cpp %reldir%/paths.cpp
152registry_test_CPPFLAGS = $(test_cppflags)
153registry_test_CXXFLAGS = $(test_cxxflags)
154registry_test_LDADD = \
155 $(test_ldadd) \
156 $(top_builddir)/extensions/openpower-pels/registry.o \
157 $(top_builddir)/extensions/openpower-pels/pel_values.o
158registry_test_LDFLAGS = $(test_ldflags)
159
Matt Spinler8c686cc2019-09-20 13:46:02 -0500160severity_test_SOURCES = %reldir%/severity_test.cpp
161severity_test_CPPFLAGS = $(test_cppflags)
162severity_test_CXXFLAGS = $(test_cxxflags)
163severity_test_LDADD = \
164 $(test_ldflags) \
165 $(top_builddir)/extensions/openpower-pels/severity.o
166severity_test_LDFLAGS = $(test_ldflags)
167
Matt Spinlerb6664332019-09-10 15:24:10 -0500168mtms_test_SOURCES = %reldir%/mtms_test.cpp
169mtms_test_CPPFLAGS = $(test_cppflags)
170mtms_test_CXXFLAGS = $(test_cxxflags)
171mtms_test_LDADD = \
172 $(test_ldadd) \
173 $(top_builddir)/extensions/openpower-pels/mtms.o
174mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler09d64002019-09-11 14:29:46 -0500175
176failing_mtms_test_SOURCES = %reldir%/failing_mtms_test.cpp
177failing_mtms_test_CPPFLAGS = $(test_cppflags)
178failing_mtms_test_CXXFLAGS = $(test_cxxflags)
179failing_mtms_test_LDADD = \
180 $(test_ldadd) \
181 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
182 $(top_builddir)/extensions/openpower-pels/mtms.o
183failing_mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler835a8692019-08-27 13:56:05 -0500184
185pel_values_test_SOURCES = %reldir%/pel_values_test.cpp
186pel_values_test_CPPFLAGS = $(test_cppflags)
187pel_values_test_CXXFLAGS = $(test_cxxflags)
188pel_values_test_LDADD = \
189 $(test_ldflags) \
190 $(top_builddir)/extensions/openpower-pels/pel_values.o
191pel_values_test_LDFLAGS = $(test_ldflags)
Matt Spinler14d671f2019-09-25 13:11:22 -0500192
193generic_section_test_SOURCES = \
194 %reldir%/generic_section_test.cpp %reldir%/pel_utils.cpp
195generic_section_test_CPPFLAGS = $(test_cppflags)
196generic_section_test_CXXFLAGS = $(test_cxxflags)
197generic_section_test_LDADD = \
198 $(test_ldadd) \
199 $(top_builddir)/extensions/openpower-pels/generic.o
200generic_section_test_LDFLAGS = $(test_ldflags)
Aatir Manzur51c92632019-09-06 13:30:48 -0500201
202user_data_test_SOURCES = \
203 %reldir%/user_data_test.cpp %reldir%/pel_utils.cpp
204user_data_test_CPPFLAGS = $(test_cppflags)
205user_data_test_CXXFLAGS = $(test_cxxflags)
206user_data_test_LDADD = \
207 $(test_ldadd) \
208 $(top_builddir)/extensions/openpower-pels/user_data.o
209user_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler6852d722019-09-30 15:35:53 -0500210
211ascii_string_test_SOURCES = %reldir%/ascii_string_test.cpp
212ascii_string_test_CPPFLAGS = $(test_cppflags)
213ascii_string_test_CXXFLAGS = $(test_cxxflags)
214ascii_string_test_LDADD = \
215 $(test_ldadd) \
216 $(top_builddir)/extensions/openpower-pels/ascii_string.o
217ascii_string_test_LDFLAGS = $(test_ldflags)
Matt Spinlera906c942019-10-08 13:42:05 -0500218
219fru_identity_test_SOURCES = %reldir%/fru_identity_test.cpp
220fru_identity_test_CPPFLAGS = $(test_cppflags)
221fru_identity_test_CXXFLAGS = $(test_cxxflags)
222fru_identity_test_LDADD = \
223 $(test_ldadd) \
224 $(top_builddir)/extensions/openpower-pels/fru_identity.o
225fru_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler5b3a11d2019-10-08 14:13:31 -0500226
227pce_identity_test_SOURCES = %reldir%/pce_identity_test.cpp
228pce_identity_test_CPPFLAGS = $(test_cppflags)
229pce_identity_test_CXXFLAGS = $(test_cxxflags)
230pce_identity_test_LDADD = \
231 $(test_ldadd) \
232 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
233 $(top_builddir)/extensions/openpower-pels/mtms.o
234pce_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler90b4a0a2019-10-09 10:08:43 -0500235
236mru_test_SOURCES = %reldir%/mru_test.cpp
237mru_test_CPPFLAGS = $(test_cppflags)
238mru_test_CXXFLAGS = $(test_cxxflags)
239mru_test_LDADD = \
240 $(test_ldadd) \
241 $(top_builddir)/extensions/openpower-pels/mru.o
242mru_test_LDFLAGS = $(test_ldflags)
Matt Spinler6c9662c2019-10-09 11:27:20 -0500243
244src_callout_test_SOURCES = \
245 %reldir%/src_callout_test.cpp \
246 %reldir%/pel_utils.cpp
247src_callout_test_CPPFLAGS = $(test_cppflags)
248src_callout_test_CXXFLAGS = $(test_cxxflags)
249src_callout_test_LDADD = \
250 $(test_ldadd) \
251 $(top_builddir)/extensions/openpower-pels/callout.o \
252 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
253 $(top_builddir)/extensions/openpower-pels/mru.o \
254 $(top_builddir)/extensions/openpower-pels/mtms.o \
255 $(top_builddir)/extensions/openpower-pels/pce_identity.o
256src_callout_test_LDFLAGS = $(test_ldflags)
Matt Spinler32f13c92019-10-09 12:48:25 -0500257
258src_callouts_test_SOURCES = \
259 %reldir%/src_callouts_test.cpp \
260 %reldir%/pel_utils.cpp
261src_callouts_test_CPPFLAGS = $(test_cppflags)
262src_callouts_test_CXXFLAGS = $(test_cxxflags)
263src_callouts_test_LDADD = \
264 $(test_ldadd) \
265 $(top_builddir)/extensions/openpower-pels/callout.o \
266 $(top_builddir)/extensions/openpower-pels/callouts.o \
267 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
268 $(top_builddir)/extensions/openpower-pels/mru.o \
269 $(top_builddir)/extensions/openpower-pels/mtms.o \
270 $(top_builddir)/extensions/openpower-pels/pce_identity.o
271src_callouts_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf9bae182019-10-09 13:37:38 -0500272
273src_test_SOURCES = \
274 %reldir%/src_test.cpp \
275 %reldir%/pel_utils.cpp
276src_test_CPPFLAGS = $(test_cppflags)
277src_test_CXXFLAGS = $(test_cxxflags)
278src_test_LDADD = \
279 $(test_ldadd) \
280 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
281 $(top_builddir)/extensions/openpower-pels/callout.o \
282 $(top_builddir)/extensions/openpower-pels/callouts.o \
283 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
284 $(top_builddir)/extensions/openpower-pels/mru.o \
285 $(top_builddir)/extensions/openpower-pels/mtms.o \
286 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
287 $(top_builddir)/extensions/openpower-pels/src.o
288src_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf1e85e22019-11-01 11:31:31 -0500289
290pel_rules_test_SOURCES = %reldir%/pel_rules_test.cpp
291pel_rules_test_CPPFLAGS = $(test_cppflags)
292pel_rules_test_CXXFLAGS = $(test_cxxflags)
293pel_rules_test_LDADD = \
294 $(test_ldflags) \
295 $(top_builddir)/extensions/openpower-pels/pel_rules.o
296pel_rules_test_LDFLAGS = $(test_ldflags)