blob: 0ee298bbfcbb5226ab09e2eb5653a67143183f9f [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 Spinlerd3335df2019-07-10 11:04:21 -050038 $(top_builddir)/extensions/openpower-pels/bcd_time.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050039 $(top_builddir)/extensions/openpower-pels/callout.o \
40 $(top_builddir)/extensions/openpower-pels/callouts.o \
Matt Spinler18c42b02020-06-02 15:59:50 -050041 $(top_builddir)/extensions/openpower-pels/device_callouts.o \
Matt Spinlerc63e2e82019-12-02 15:50:12 -060042 $(top_builddir)/extensions/openpower-pels/extended_user_header.o \
Matt Spinler131870c2019-09-25 13:29:04 -050043 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050044 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
Matt Spinler131870c2019-09-25 13:29:04 -050045 $(top_builddir)/extensions/openpower-pels/generic.o \
Harisuddin Mohamed Isa600d15a2019-12-20 12:42:26 +080046 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050047 $(top_builddir)/extensions/openpower-pels/log_id.o \
Matt Spinler131870c2019-09-25 13:29:04 -050048 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050049 $(top_builddir)/extensions/openpower-pels/mru.o \
50 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050051 $(top_builddir)/extensions/openpower-pels/pel.o \
Matt Spinlerf1e85e22019-11-01 11:31:31 -050052 $(top_builddir)/extensions/openpower-pels/pel_rules.o \
Matt Spinler367144c2019-09-19 15:33:52 -050053 $(top_builddir)/extensions/openpower-pels/pel_values.o \
Matt Spinler03c1d912019-07-10 14:12:15 -050054 $(top_builddir)/extensions/openpower-pels/private_header.o \
Matt Spinler367144c2019-09-19 15:33:52 -050055 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinler131870c2019-09-25 13:29:04 -050056 $(top_builddir)/extensions/openpower-pels/section_factory.o \
Matt Spinler8c686cc2019-09-20 13:46:02 -050057 $(top_builddir)/extensions/openpower-pels/severity.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050058 $(top_builddir)/extensions/openpower-pels/src.o \
Aatir Manzur51c92632019-09-06 13:30:48 -050059 $(top_builddir)/extensions/openpower-pels/user_data.o \
Matt Spinler03c1d912019-07-10 14:12:15 -050060 $(top_builddir)/extensions/openpower-pels/user_header.o
Matt Spinlerd3335df2019-07-10 11:04:21 -050061
Matt Spinlere4e11dc2020-06-02 09:54:10 -050062pel_test_utils_ldadd = \
63 $(top_builddir)/test/openpower-pels/pel_utils.o \
64 $(top_builddir)/test/openpower-pels/paths.o
65
Matt Spinler15ee6ae2019-07-08 16:50:06 -050066additional_data_test_SOURCES = %reldir%/additional_data_test.cpp
67additional_data_test_CPPFLAGS = $(test_cppflags)
68additional_data_test_CXXFLAGS = $(test_cxxflags)
69additional_data_test_LDADD = $(test_ldadd)
70additional_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler113ad282019-07-09 14:44:13 -050071
72stream_test_SOURCES = %reldir%/stream_test.cpp
73stream_test_CPPFLAGS = $(test_cppflags)
74stream_test_CXXFLAGS = $(test_cxxflags)
75stream_test_LDADD = $(test_ldadd)
Matt Spinlerdf797f22019-07-09 15:39:51 -050076stream_test_LDFLAGS = $(test_ldflags)
77
78bcd_time_test_SOURCES = \
79 %reldir%/bcd_time_test.cpp
80bcd_time_test_CPPFLAGS = $(test_cppflags)
81bcd_time_test_CXXFLAGS = $(test_cxxflags)
82bcd_time_test_LDADD = \
83 $(test_ldadd) \
84 $(top_builddir)/extensions/openpower-pels/bcd_time.o
Matt Spinler1b5c72b2019-07-10 10:32:06 -050085bcd_time_test_LDFLAGS = $(test_ldflags)
86
87section_header_test_SOURCES = \
88 %reldir%/section_header_test.cpp
89section_header_test_CPPFLAGS = $(test_cppflags)
90section_header_test_CXXFLAGS = $(test_cxxflags)
91section_header_test_LDADD = $(test_ldadd)
Matt Spinlerd3335df2019-07-10 11:04:21 -050092section_header_test_LDFLAGS = $(test_ldflags)
93
94private_header_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -050095 %reldir%/private_header_test.cpp
Matt Spinlerd3335df2019-07-10 11:04:21 -050096private_header_test_CPPFLAGS = $(test_cppflags)
97private_header_test_CXXFLAGS = $(test_cxxflags)
98private_header_test_LDADD = \
99 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500100 $(pel_test_utils_ldadd) \
Matt Spinlerd3335df2019-07-10 11:04:21 -0500101 $(pel_objects)
102private_header_test_LDFLAGS = $(test_ldflags)
Matt Spinler03c1d912019-07-10 14:12:15 -0500103
104user_header_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500105 %reldir%/user_header_test.cpp
Matt Spinler03c1d912019-07-10 14:12:15 -0500106user_header_test_CPPFLAGS = $(test_cppflags)
107user_header_test_CXXFLAGS = $(test_cxxflags)
108user_header_test_LDADD = \
109 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500110 $(pel_test_utils_ldadd) \
Matt Spinler03c1d912019-07-10 14:12:15 -0500111 $(pel_objects)
112user_header_test_LDFLAGS = $(test_ldflags)
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500113
114log_id_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500115 %reldir%/log_id_test.cpp
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500116log_id_test_CPPFLAGS = $(test_cppflags)
117log_id_test_CXXFLAGS = $(test_cxxflags)
118log_id_test_LDADD = \
119 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500120 $(pel_test_utils_ldadd) \
Matt Spinlerdf13bdb2019-07-10 16:54:13 -0500121 $(top_builddir)/extensions/openpower-pels/log_id.o
122log_id_test_LDFLAGS = $(test_ldflags)
Matt Spinlercb6b0592019-07-16 15:58:51 -0500123
124pel_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500125 %reldir%/pel_test.cpp
Matt Spinlercb6b0592019-07-16 15:58:51 -0500126pel_test_CPPFLAGS = $(test_cppflags)
127pel_test_CXXFLAGS = $(test_cxxflags)
128pel_test_LDADD = \
129 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500130 $(pel_test_utils_ldadd) \
Matt Spinlercb6b0592019-07-16 15:58:51 -0500131 $(pel_objects)
132pel_test_LDFLAGS = $(test_ldflags)
Matt Spinler89fa0822019-07-17 13:54:30 -0500133
Matt Spinler07eefc52019-09-26 11:18:26 -0500134real_pel_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500135 %reldir%/real_pel_test.cpp
Matt Spinler07eefc52019-09-26 11:18:26 -0500136real_pel_test_CPPFLAGS = $(test_cppflags)
137real_pel_test_CXXFLAGS = $(test_cxxflags)
138real_pel_test_LDADD = \
139 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500140 $(pel_test_utils_ldadd) \
Matt Spinler07eefc52019-09-26 11:18:26 -0500141 $(pel_objects)
142real_pel_test_LDFLAGS = $(test_ldflags)
143
Matt Spinler89fa0822019-07-17 13:54:30 -0500144repository_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500145 %reldir%/repository_test.cpp
Matt Spinler89fa0822019-07-17 13:54:30 -0500146repository_test_CPPFLAGS = $(test_cppflags)
147repository_test_CXXFLAGS = $(test_cxxflags)
148repository_test_LDADD = \
149 $(test_ldadd) \
150 $(pel_objects) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500151 $(pel_test_utils_ldadd) \
Matt Spinler89fa0822019-07-17 13:54:30 -0500152 $(top_builddir)/extensions/openpower-pels/repository.o
153repository_test_LDFLAGS = $(test_ldflags)
154
155pel_manager_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500156 %reldir%/pel_manager_test.cpp
Matt Spinler89fa0822019-07-17 13:54:30 -0500157pel_manager_test_CPPFLAGS = $(test_cppflags)
Matt Spinlera34ab722019-12-16 10:39:32 -0600158pel_manager_test_CXXFLAGS = \
159 $(test_cxxflags) \
160 $(SDEVENTPLUS_CFLAGS)
Matt Spinler89fa0822019-07-17 13:54:30 -0500161pel_manager_test_LDADD = \
162 $(test_ldadd) \
163 $(pel_objects) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500164 $(pel_test_utils_ldadd) \
Matt Spinlerc8705e22019-09-11 12:36:07 -0500165 $(top_builddir)/extensions/openpower-pels/data_interface.o \
Matt Spinlerf60ac272019-12-11 13:47:50 -0600166 $(top_builddir)/extensions/openpower-pels/host_notifier.o \
Matt Spinler89fa0822019-07-17 13:54:30 -0500167 $(top_builddir)/extensions/openpower-pels/manager.o \
168 $(top_builddir)/extensions/openpower-pels/repository.o
Matt Spinlera34ab722019-12-16 10:39:32 -0600169pel_manager_test_LDFLAGS = \
170 $(test_ldflags) \
171 $(SDEVENTPLUS_LIBS)
Matt Spinlerb6664332019-09-10 15:24:10 -0500172
Matt Spinler367144c2019-09-19 15:33:52 -0500173registry_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500174 %reldir%/registry_test.cpp
Matt Spinler367144c2019-09-19 15:33:52 -0500175registry_test_CPPFLAGS = $(test_cppflags)
176registry_test_CXXFLAGS = $(test_cxxflags)
177registry_test_LDADD = \
178 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500179 $(pel_test_utils_ldadd) \
Matt Spinler367144c2019-09-19 15:33:52 -0500180 $(top_builddir)/extensions/openpower-pels/registry.o \
181 $(top_builddir)/extensions/openpower-pels/pel_values.o
182registry_test_LDFLAGS = $(test_ldflags)
183
Matt Spinler8c686cc2019-09-20 13:46:02 -0500184severity_test_SOURCES = %reldir%/severity_test.cpp
185severity_test_CPPFLAGS = $(test_cppflags)
186severity_test_CXXFLAGS = $(test_cxxflags)
187severity_test_LDADD = \
188 $(test_ldflags) \
189 $(top_builddir)/extensions/openpower-pels/severity.o
190severity_test_LDFLAGS = $(test_ldflags)
191
Matt Spinlerb6664332019-09-10 15:24:10 -0500192mtms_test_SOURCES = %reldir%/mtms_test.cpp
193mtms_test_CPPFLAGS = $(test_cppflags)
194mtms_test_CXXFLAGS = $(test_cxxflags)
195mtms_test_LDADD = \
196 $(test_ldadd) \
197 $(top_builddir)/extensions/openpower-pels/mtms.o
198mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler09d64002019-09-11 14:29:46 -0500199
200failing_mtms_test_SOURCES = %reldir%/failing_mtms_test.cpp
201failing_mtms_test_CPPFLAGS = $(test_cppflags)
202failing_mtms_test_CXXFLAGS = $(test_cxxflags)
203failing_mtms_test_LDADD = \
204 $(test_ldadd) \
205 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
Harisuddin Mohamed Isae2d1bf32020-02-06 17:32:38 +0800206 $(top_builddir)/extensions/openpower-pels/json_utils.o \
Harisuddin Mohamed Isabebeb942020-03-12 17:12:24 +0800207 $(top_builddir)/extensions/openpower-pels/mtms.o \
208 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinler09d64002019-09-11 14:29:46 -0500209failing_mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler835a8692019-08-27 13:56:05 -0500210
211pel_values_test_SOURCES = %reldir%/pel_values_test.cpp
212pel_values_test_CPPFLAGS = $(test_cppflags)
213pel_values_test_CXXFLAGS = $(test_cxxflags)
214pel_values_test_LDADD = \
215 $(test_ldflags) \
216 $(top_builddir)/extensions/openpower-pels/pel_values.o
217pel_values_test_LDFLAGS = $(test_ldflags)
Matt Spinler14d671f2019-09-25 13:11:22 -0500218
219generic_section_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500220 %reldir%/generic_section_test.cpp
Matt Spinler14d671f2019-09-25 13:11:22 -0500221generic_section_test_CPPFLAGS = $(test_cppflags)
222generic_section_test_CXXFLAGS = $(test_cxxflags)
223generic_section_test_LDADD = \
224 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500225 $(pel_test_utils_ldadd) \
Matt Spinler14d671f2019-09-25 13:11:22 -0500226 $(top_builddir)/extensions/openpower-pels/generic.o
227generic_section_test_LDFLAGS = $(test_ldflags)
Aatir Manzur51c92632019-09-06 13:30:48 -0500228
229user_data_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500230 %reldir%/user_data_test.cpp
Aatir Manzur51c92632019-09-06 13:30:48 -0500231user_data_test_CPPFLAGS = $(test_cppflags)
232user_data_test_CXXFLAGS = $(test_cxxflags)
233user_data_test_LDADD = \
234 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500235 $(pel_test_utils_ldadd) \
Aatir Manzur51c92632019-09-06 13:30:48 -0500236 $(top_builddir)/extensions/openpower-pels/user_data.o
237user_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler6852d722019-09-30 15:35:53 -0500238
239ascii_string_test_SOURCES = %reldir%/ascii_string_test.cpp
240ascii_string_test_CPPFLAGS = $(test_cppflags)
241ascii_string_test_CXXFLAGS = $(test_cxxflags)
242ascii_string_test_LDADD = \
243 $(test_ldadd) \
244 $(top_builddir)/extensions/openpower-pels/ascii_string.o
245ascii_string_test_LDFLAGS = $(test_ldflags)
Matt Spinlera906c942019-10-08 13:42:05 -0500246
247fru_identity_test_SOURCES = %reldir%/fru_identity_test.cpp
248fru_identity_test_CPPFLAGS = $(test_cppflags)
249fru_identity_test_CXXFLAGS = $(test_cxxflags)
250fru_identity_test_LDADD = \
251 $(test_ldadd) \
Matt Spinlerba0ee002020-03-13 11:24:14 -0500252 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
253 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinlera906c942019-10-08 13:42:05 -0500254fru_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler5b3a11d2019-10-08 14:13:31 -0500255
256pce_identity_test_SOURCES = %reldir%/pce_identity_test.cpp
257pce_identity_test_CPPFLAGS = $(test_cppflags)
258pce_identity_test_CXXFLAGS = $(test_cxxflags)
259pce_identity_test_LDADD = \
260 $(test_ldadd) \
261 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
262 $(top_builddir)/extensions/openpower-pels/mtms.o
263pce_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler90b4a0a2019-10-09 10:08:43 -0500264
265mru_test_SOURCES = %reldir%/mru_test.cpp
266mru_test_CPPFLAGS = $(test_cppflags)
267mru_test_CXXFLAGS = $(test_cxxflags)
268mru_test_LDADD = \
269 $(test_ldadd) \
270 $(top_builddir)/extensions/openpower-pels/mru.o
271mru_test_LDFLAGS = $(test_ldflags)
Matt Spinler6c9662c2019-10-09 11:27:20 -0500272
273src_callout_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500274 %reldir%/src_callout_test.cpp
Matt Spinler6c9662c2019-10-09 11:27:20 -0500275src_callout_test_CPPFLAGS = $(test_cppflags)
276src_callout_test_CXXFLAGS = $(test_cxxflags)
277src_callout_test_LDADD = \
278 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500279 $(pel_test_utils_ldadd) \
Matt Spinler6c9662c2019-10-09 11:27:20 -0500280 $(top_builddir)/extensions/openpower-pels/callout.o \
281 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
282 $(top_builddir)/extensions/openpower-pels/mru.o \
283 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerba0ee002020-03-13 11:24:14 -0500284 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
285 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinler6c9662c2019-10-09 11:27:20 -0500286src_callout_test_LDFLAGS = $(test_ldflags)
Matt Spinler32f13c92019-10-09 12:48:25 -0500287
288src_callouts_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500289 %reldir%/src_callouts_test.cpp
Matt Spinler32f13c92019-10-09 12:48:25 -0500290src_callouts_test_CPPFLAGS = $(test_cppflags)
291src_callouts_test_CXXFLAGS = $(test_cxxflags)
292src_callouts_test_LDADD = \
293 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500294 $(pel_test_utils_ldadd) \
Matt Spinler32f13c92019-10-09 12:48:25 -0500295 $(top_builddir)/extensions/openpower-pels/callout.o \
296 $(top_builddir)/extensions/openpower-pels/callouts.o \
297 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
298 $(top_builddir)/extensions/openpower-pels/mru.o \
299 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerba0ee002020-03-13 11:24:14 -0500300 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
301 $(top_builddir)/extensions/openpower-pels/pel_values.o
Matt Spinler32f13c92019-10-09 12:48:25 -0500302src_callouts_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf9bae182019-10-09 13:37:38 -0500303
304src_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500305 %reldir%/src_test.cpp
Matt Spinlerf9bae182019-10-09 13:37:38 -0500306src_test_CPPFLAGS = $(test_cppflags)
307src_test_CXXFLAGS = $(test_cxxflags)
308src_test_LDADD = \
309 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500310 $(pel_test_utils_ldadd) \
Matt Spinlerf9bae182019-10-09 13:37:38 -0500311 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
312 $(top_builddir)/extensions/openpower-pels/callout.o \
313 $(top_builddir)/extensions/openpower-pels/callouts.o \
Matt Spinler18c42b02020-06-02 15:59:50 -0500314 $(top_builddir)/extensions/openpower-pels/device_callouts.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -0500315 $(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 Spinlerf9bae182019-10-09 13:37:38 -0500317 $(top_builddir)/extensions/openpower-pels/mru.o \
318 $(top_builddir)/extensions/openpower-pels/mtms.o \
319 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Harisuddin Mohamed Isa0f717e12020-01-15 20:05:33 +0800320 $(top_builddir)/extensions/openpower-pels/pel_values.o \
321 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -0500322 $(top_builddir)/extensions/openpower-pels/src.o
323src_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf1e85e22019-11-01 11:31:31 -0500324
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600325extended_user_header_test_SOURCES = \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500326 %reldir%/extended_user_header_test.cpp
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600327extended_user_header_test_CPPFLAGS = $(test_cppflags)
328extended_user_header_test_CXXFLAGS = $(test_cxxflags)
329extended_user_header_test_LDADD = \
330 $(test_ldadd) \
Matt Spinlere4e11dc2020-06-02 09:54:10 -0500331 $(pel_test_utils_ldadd) \
Matt Spinlerc63e2e82019-12-02 15:50:12 -0600332 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
333 $(top_builddir)/extensions/openpower-pels/bcd_time.o \
334 $(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)