blob: d110cc1baa4adbbd67858fa08761f53034e15165 [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 Spinlercb6b0592019-07-16 15:58:51 -050014 pel_test \
Matt Spinler835a8692019-08-27 13:56:05 -050015 pel_values_test \
Matt Spinler89fa0822019-07-17 13:54:30 -050016 pel_manager_test \
Matt Spinlerd3335df2019-07-10 11:04:21 -050017 private_header_test \
Matt Spinler07eefc52019-09-26 11:18:26 -050018 real_pel_test \
Matt Spinler367144c2019-09-19 15:33:52 -050019 registry_test \
Matt Spinler89fa0822019-07-17 13:54:30 -050020 repository_test \
Matt Spinler1b5c72b2019-07-10 10:32:06 -050021 section_header_test \
Matt Spinler8c686cc2019-09-20 13:46:02 -050022 severity_test \
Matt Spinlerf9bae182019-10-09 13:37:38 -050023 src_test \
Matt Spinler6c9662c2019-10-09 11:27:20 -050024 src_callout_test \
Matt Spinler32f13c92019-10-09 12:48:25 -050025 src_callouts_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050026 stream_test \
Aatir Manzur51c92632019-09-06 13:30:48 -050027 user_data_test \
Matt Spinler03c1d912019-07-10 14:12:15 -050028 user_header_test
Matt Spinler15ee6ae2019-07-08 16:50:06 -050029
Matt Spinlerd3335df2019-07-10 11:04:21 -050030pel_objects = \
Matt Spinlerf9bae182019-10-09 13:37:38 -050031 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
Matt Spinlerd3335df2019-07-10 11:04:21 -050032 $(top_builddir)/extensions/openpower-pels/bcd_time.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050033 $(top_builddir)/extensions/openpower-pels/callout.o \
34 $(top_builddir)/extensions/openpower-pels/callouts.o \
Matt Spinler131870c2019-09-25 13:29:04 -050035 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050036 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
Matt Spinler131870c2019-09-25 13:29:04 -050037 $(top_builddir)/extensions/openpower-pels/generic.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050038 $(top_builddir)/extensions/openpower-pels/log_id.o \
Matt Spinler131870c2019-09-25 13:29:04 -050039 $(top_builddir)/extensions/openpower-pels/mtms.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050040 $(top_builddir)/extensions/openpower-pels/mru.o \
41 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
Matt Spinlercb6b0592019-07-16 15:58:51 -050042 $(top_builddir)/extensions/openpower-pels/pel.o \
Matt Spinler367144c2019-09-19 15:33:52 -050043 $(top_builddir)/extensions/openpower-pels/pel_values.o \
Matt Spinler03c1d912019-07-10 14:12:15 -050044 $(top_builddir)/extensions/openpower-pels/private_header.o \
Matt Spinler367144c2019-09-19 15:33:52 -050045 $(top_builddir)/extensions/openpower-pels/registry.o \
Matt Spinler131870c2019-09-25 13:29:04 -050046 $(top_builddir)/extensions/openpower-pels/section_factory.o \
Matt Spinler8c686cc2019-09-20 13:46:02 -050047 $(top_builddir)/extensions/openpower-pels/severity.o \
Matt Spinlerf9bae182019-10-09 13:37:38 -050048 $(top_builddir)/extensions/openpower-pels/src.o \
Aatir Manzur51c92632019-09-06 13:30:48 -050049 $(top_builddir)/extensions/openpower-pels/user_data.o \
Matt Spinler03c1d912019-07-10 14:12:15 -050050 $(top_builddir)/extensions/openpower-pels/user_header.o
Matt Spinlerd3335df2019-07-10 11:04:21 -050051
Matt Spinler15ee6ae2019-07-08 16:50:06 -050052additional_data_test_SOURCES = %reldir%/additional_data_test.cpp
53additional_data_test_CPPFLAGS = $(test_cppflags)
54additional_data_test_CXXFLAGS = $(test_cxxflags)
55additional_data_test_LDADD = $(test_ldadd)
56additional_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler113ad282019-07-09 14:44:13 -050057
58stream_test_SOURCES = %reldir%/stream_test.cpp
59stream_test_CPPFLAGS = $(test_cppflags)
60stream_test_CXXFLAGS = $(test_cxxflags)
61stream_test_LDADD = $(test_ldadd)
Matt Spinlerdf797f22019-07-09 15:39:51 -050062stream_test_LDFLAGS = $(test_ldflags)
63
64bcd_time_test_SOURCES = \
65 %reldir%/bcd_time_test.cpp
66bcd_time_test_CPPFLAGS = $(test_cppflags)
67bcd_time_test_CXXFLAGS = $(test_cxxflags)
68bcd_time_test_LDADD = \
69 $(test_ldadd) \
70 $(top_builddir)/extensions/openpower-pels/bcd_time.o
Matt Spinler1b5c72b2019-07-10 10:32:06 -050071bcd_time_test_LDFLAGS = $(test_ldflags)
72
73section_header_test_SOURCES = \
74 %reldir%/section_header_test.cpp
75section_header_test_CPPFLAGS = $(test_cppflags)
76section_header_test_CXXFLAGS = $(test_cxxflags)
77section_header_test_LDADD = $(test_ldadd)
Matt Spinlerd3335df2019-07-10 11:04:21 -050078section_header_test_LDFLAGS = $(test_ldflags)
79
80private_header_test_SOURCES = \
Matt Spinlercb6b0592019-07-16 15:58:51 -050081 %reldir%/private_header_test.cpp %reldir%/pel_utils.cpp %reldir%/paths.cpp
Matt Spinlerd3335df2019-07-10 11:04:21 -050082private_header_test_CPPFLAGS = $(test_cppflags)
83private_header_test_CXXFLAGS = $(test_cxxflags)
84private_header_test_LDADD = \
85 $(test_ldadd) \
86 $(pel_objects)
87private_header_test_LDFLAGS = $(test_ldflags)
Matt Spinler03c1d912019-07-10 14:12:15 -050088
89user_header_test_SOURCES = \
Matt Spinlercb6b0592019-07-16 15:58:51 -050090 %reldir%/user_header_test.cpp %reldir%/pel_utils.cpp %reldir%/paths.cpp
Matt Spinler03c1d912019-07-10 14:12:15 -050091user_header_test_CPPFLAGS = $(test_cppflags)
92user_header_test_CXXFLAGS = $(test_cxxflags)
93user_header_test_LDADD = \
94 $(test_ldadd) \
95 $(pel_objects)
96user_header_test_LDFLAGS = $(test_ldflags)
Matt Spinlerdf13bdb2019-07-10 16:54:13 -050097
98log_id_test_SOURCES = \
99 %reldir%/log_id_test.cpp %reldir%/paths.cpp
100log_id_test_CPPFLAGS = $(test_cppflags)
101log_id_test_CXXFLAGS = $(test_cxxflags)
102log_id_test_LDADD = \
103 $(test_ldadd) \
104 $(top_builddir)/extensions/openpower-pels/log_id.o
105log_id_test_LDFLAGS = $(test_ldflags)
Matt Spinlercb6b0592019-07-16 15:58:51 -0500106
107pel_test_SOURCES = \
108 %reldir%/pel_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
109pel_test_CPPFLAGS = $(test_cppflags)
110pel_test_CXXFLAGS = $(test_cxxflags)
111pel_test_LDADD = \
112 $(test_ldadd) \
113 $(pel_objects)
114pel_test_LDFLAGS = $(test_ldflags)
Matt Spinler89fa0822019-07-17 13:54:30 -0500115
Matt Spinler07eefc52019-09-26 11:18:26 -0500116real_pel_test_SOURCES = \
117 %reldir%/real_pel_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
118real_pel_test_CPPFLAGS = $(test_cppflags)
119real_pel_test_CXXFLAGS = $(test_cxxflags)
120real_pel_test_LDADD = \
121 $(test_ldadd) \
122 $(pel_objects)
123real_pel_test_LDFLAGS = $(test_ldflags)
124
Matt Spinler89fa0822019-07-17 13:54:30 -0500125repository_test_SOURCES = \
126 %reldir%/repository_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
127repository_test_CPPFLAGS = $(test_cppflags)
128repository_test_CXXFLAGS = $(test_cxxflags)
129repository_test_LDADD = \
130 $(test_ldadd) \
131 $(pel_objects) \
132 $(top_builddir)/extensions/openpower-pels/repository.o
133repository_test_LDFLAGS = $(test_ldflags)
134
135pel_manager_test_SOURCES = \
136 %reldir%/pel_manager_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp
137pel_manager_test_CPPFLAGS = $(test_cppflags)
138pel_manager_test_CXXFLAGS = $(test_cxxflags)
139pel_manager_test_LDADD = \
140 $(test_ldadd) \
141 $(pel_objects) \
Matt Spinlerc8705e22019-09-11 12:36:07 -0500142 $(top_builddir)/extensions/openpower-pels/data_interface.o \
Matt Spinler89fa0822019-07-17 13:54:30 -0500143 $(top_builddir)/extensions/openpower-pels/manager.o \
144 $(top_builddir)/extensions/openpower-pels/repository.o
Matt Spinlerb6664332019-09-10 15:24:10 -0500145pel_manager_test_LDFLAGS = $(test_ldflags)
146
Matt Spinler367144c2019-09-19 15:33:52 -0500147registry_test_SOURCES = \
148 %reldir%/registry_test.cpp %reldir%/paths.cpp
149registry_test_CPPFLAGS = $(test_cppflags)
150registry_test_CXXFLAGS = $(test_cxxflags)
151registry_test_LDADD = \
152 $(test_ldadd) \
153 $(top_builddir)/extensions/openpower-pels/registry.o \
154 $(top_builddir)/extensions/openpower-pels/pel_values.o
155registry_test_LDFLAGS = $(test_ldflags)
156
Matt Spinler8c686cc2019-09-20 13:46:02 -0500157severity_test_SOURCES = %reldir%/severity_test.cpp
158severity_test_CPPFLAGS = $(test_cppflags)
159severity_test_CXXFLAGS = $(test_cxxflags)
160severity_test_LDADD = \
161 $(test_ldflags) \
162 $(top_builddir)/extensions/openpower-pels/severity.o
163severity_test_LDFLAGS = $(test_ldflags)
164
Matt Spinlerb6664332019-09-10 15:24:10 -0500165mtms_test_SOURCES = %reldir%/mtms_test.cpp
166mtms_test_CPPFLAGS = $(test_cppflags)
167mtms_test_CXXFLAGS = $(test_cxxflags)
168mtms_test_LDADD = \
169 $(test_ldadd) \
170 $(top_builddir)/extensions/openpower-pels/mtms.o
171mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler09d64002019-09-11 14:29:46 -0500172
173failing_mtms_test_SOURCES = %reldir%/failing_mtms_test.cpp
174failing_mtms_test_CPPFLAGS = $(test_cppflags)
175failing_mtms_test_CXXFLAGS = $(test_cxxflags)
176failing_mtms_test_LDADD = \
177 $(test_ldadd) \
178 $(top_builddir)/extensions/openpower-pels/failing_mtms.o \
179 $(top_builddir)/extensions/openpower-pels/mtms.o
180failing_mtms_test_LDFLAGS = $(test_ldflags)
Matt Spinler835a8692019-08-27 13:56:05 -0500181
182pel_values_test_SOURCES = %reldir%/pel_values_test.cpp
183pel_values_test_CPPFLAGS = $(test_cppflags)
184pel_values_test_CXXFLAGS = $(test_cxxflags)
185pel_values_test_LDADD = \
186 $(test_ldflags) \
187 $(top_builddir)/extensions/openpower-pels/pel_values.o
188pel_values_test_LDFLAGS = $(test_ldflags)
Matt Spinler14d671f2019-09-25 13:11:22 -0500189
190generic_section_test_SOURCES = \
191 %reldir%/generic_section_test.cpp %reldir%/pel_utils.cpp
192generic_section_test_CPPFLAGS = $(test_cppflags)
193generic_section_test_CXXFLAGS = $(test_cxxflags)
194generic_section_test_LDADD = \
195 $(test_ldadd) \
196 $(top_builddir)/extensions/openpower-pels/generic.o
197generic_section_test_LDFLAGS = $(test_ldflags)
Aatir Manzur51c92632019-09-06 13:30:48 -0500198
199user_data_test_SOURCES = \
200 %reldir%/user_data_test.cpp %reldir%/pel_utils.cpp
201user_data_test_CPPFLAGS = $(test_cppflags)
202user_data_test_CXXFLAGS = $(test_cxxflags)
203user_data_test_LDADD = \
204 $(test_ldadd) \
205 $(top_builddir)/extensions/openpower-pels/user_data.o
206user_data_test_LDFLAGS = $(test_ldflags)
Matt Spinler6852d722019-09-30 15:35:53 -0500207
208ascii_string_test_SOURCES = %reldir%/ascii_string_test.cpp
209ascii_string_test_CPPFLAGS = $(test_cppflags)
210ascii_string_test_CXXFLAGS = $(test_cxxflags)
211ascii_string_test_LDADD = \
212 $(test_ldadd) \
213 $(top_builddir)/extensions/openpower-pels/ascii_string.o
214ascii_string_test_LDFLAGS = $(test_ldflags)
Matt Spinlera906c942019-10-08 13:42:05 -0500215
216fru_identity_test_SOURCES = %reldir%/fru_identity_test.cpp
217fru_identity_test_CPPFLAGS = $(test_cppflags)
218fru_identity_test_CXXFLAGS = $(test_cxxflags)
219fru_identity_test_LDADD = \
220 $(test_ldadd) \
221 $(top_builddir)/extensions/openpower-pels/fru_identity.o
222fru_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler5b3a11d2019-10-08 14:13:31 -0500223
224pce_identity_test_SOURCES = %reldir%/pce_identity_test.cpp
225pce_identity_test_CPPFLAGS = $(test_cppflags)
226pce_identity_test_CXXFLAGS = $(test_cxxflags)
227pce_identity_test_LDADD = \
228 $(test_ldadd) \
229 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
230 $(top_builddir)/extensions/openpower-pels/mtms.o
231pce_identity_test_LDFLAGS = $(test_ldflags)
Matt Spinler90b4a0a2019-10-09 10:08:43 -0500232
233mru_test_SOURCES = %reldir%/mru_test.cpp
234mru_test_CPPFLAGS = $(test_cppflags)
235mru_test_CXXFLAGS = $(test_cxxflags)
236mru_test_LDADD = \
237 $(test_ldadd) \
238 $(top_builddir)/extensions/openpower-pels/mru.o
239mru_test_LDFLAGS = $(test_ldflags)
Matt Spinler6c9662c2019-10-09 11:27:20 -0500240
241src_callout_test_SOURCES = \
242 %reldir%/src_callout_test.cpp \
243 %reldir%/pel_utils.cpp
244src_callout_test_CPPFLAGS = $(test_cppflags)
245src_callout_test_CXXFLAGS = $(test_cxxflags)
246src_callout_test_LDADD = \
247 $(test_ldadd) \
248 $(top_builddir)/extensions/openpower-pels/callout.o \
249 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
250 $(top_builddir)/extensions/openpower-pels/mru.o \
251 $(top_builddir)/extensions/openpower-pels/mtms.o \
252 $(top_builddir)/extensions/openpower-pels/pce_identity.o
253src_callout_test_LDFLAGS = $(test_ldflags)
Matt Spinler32f13c92019-10-09 12:48:25 -0500254
255src_callouts_test_SOURCES = \
256 %reldir%/src_callouts_test.cpp \
257 %reldir%/pel_utils.cpp
258src_callouts_test_CPPFLAGS = $(test_cppflags)
259src_callouts_test_CXXFLAGS = $(test_cxxflags)
260src_callouts_test_LDADD = \
261 $(test_ldadd) \
262 $(top_builddir)/extensions/openpower-pels/callout.o \
263 $(top_builddir)/extensions/openpower-pels/callouts.o \
264 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
265 $(top_builddir)/extensions/openpower-pels/mru.o \
266 $(top_builddir)/extensions/openpower-pels/mtms.o \
267 $(top_builddir)/extensions/openpower-pels/pce_identity.o
268src_callouts_test_LDFLAGS = $(test_ldflags)
Matt Spinlerf9bae182019-10-09 13:37:38 -0500269
270src_test_SOURCES = \
271 %reldir%/src_test.cpp \
272 %reldir%/pel_utils.cpp
273src_test_CPPFLAGS = $(test_cppflags)
274src_test_CXXFLAGS = $(test_cxxflags)
275src_test_LDADD = \
276 $(test_ldadd) \
277 $(top_builddir)/extensions/openpower-pels/ascii_string.o \
278 $(top_builddir)/extensions/openpower-pels/callout.o \
279 $(top_builddir)/extensions/openpower-pels/callouts.o \
280 $(top_builddir)/extensions/openpower-pels/fru_identity.o \
281 $(top_builddir)/extensions/openpower-pels/mru.o \
282 $(top_builddir)/extensions/openpower-pels/mtms.o \
283 $(top_builddir)/extensions/openpower-pels/pce_identity.o \
284 $(top_builddir)/extensions/openpower-pels/src.o
285src_test_LDFLAGS = $(test_ldflags)