Matt Spinler | 15ee6ae | 2019-07-08 16:50:06 -0500 | [diff] [blame] | 1 | TESTS += $(check_PROGRAMS) |
| 2 | |
| 3 | check_PROGRAMS += \ |
Matt Spinler | 113ad28 | 2019-07-09 14:44:13 -0500 | [diff] [blame] | 4 | additional_data_test \ |
Matt Spinler | 6852d72 | 2019-09-30 15:35:53 -0500 | [diff] [blame] | 5 | ascii_string_test \ |
Matt Spinler | df797f2 | 2019-07-09 15:39:51 -0500 | [diff] [blame] | 6 | bcd_time_test \ |
Matt Spinler | 09d6400 | 2019-09-11 14:29:46 -0500 | [diff] [blame] | 7 | failing_mtms_test \ |
Matt Spinler | a906c94 | 2019-10-08 13:42:05 -0500 | [diff] [blame] | 8 | fru_identity_test \ |
Matt Spinler | 14d671f | 2019-09-25 13:11:22 -0500 | [diff] [blame] | 9 | generic_section_test \ |
Matt Spinler | df13bdb | 2019-07-10 16:54:13 -0500 | [diff] [blame] | 10 | log_id_test \ |
Matt Spinler | 90b4a0a | 2019-10-09 10:08:43 -0500 | [diff] [blame] | 11 | mru_test \ |
Matt Spinler | b666433 | 2019-09-10 15:24:10 -0500 | [diff] [blame] | 12 | mtms_test \ |
Matt Spinler | 5b3a11d | 2019-10-08 14:13:31 -0500 | [diff] [blame] | 13 | pce_identity_test \ |
Matt Spinler | cb6b059 | 2019-07-16 15:58:51 -0500 | [diff] [blame] | 14 | pel_test \ |
Matt Spinler | 835a869 | 2019-08-27 13:56:05 -0500 | [diff] [blame] | 15 | pel_values_test \ |
Matt Spinler | 89fa082 | 2019-07-17 13:54:30 -0500 | [diff] [blame] | 16 | pel_manager_test \ |
Matt Spinler | d3335df | 2019-07-10 11:04:21 -0500 | [diff] [blame] | 17 | private_header_test \ |
Matt Spinler | 07eefc5 | 2019-09-26 11:18:26 -0500 | [diff] [blame] | 18 | real_pel_test \ |
Matt Spinler | 367144c | 2019-09-19 15:33:52 -0500 | [diff] [blame] | 19 | registry_test \ |
Matt Spinler | 89fa082 | 2019-07-17 13:54:30 -0500 | [diff] [blame] | 20 | repository_test \ |
Matt Spinler | 1b5c72b | 2019-07-10 10:32:06 -0500 | [diff] [blame] | 21 | section_header_test \ |
Matt Spinler | 8c686cc | 2019-09-20 13:46:02 -0500 | [diff] [blame] | 22 | severity_test \ |
Matt Spinler | 6c9662c | 2019-10-09 11:27:20 -0500 | [diff] [blame] | 23 | src_callout_test \ |
Matt Spinler | 32f13c9 | 2019-10-09 12:48:25 -0500 | [diff] [blame^] | 24 | src_callouts_test \ |
Matt Spinler | 03c1d91 | 2019-07-10 14:12:15 -0500 | [diff] [blame] | 25 | stream_test \ |
Aatir Manzur | 51c9263 | 2019-09-06 13:30:48 -0500 | [diff] [blame] | 26 | user_data_test \ |
Matt Spinler | 03c1d91 | 2019-07-10 14:12:15 -0500 | [diff] [blame] | 27 | user_header_test |
Matt Spinler | 15ee6ae | 2019-07-08 16:50:06 -0500 | [diff] [blame] | 28 | |
Matt Spinler | d3335df | 2019-07-10 11:04:21 -0500 | [diff] [blame] | 29 | pel_objects = \ |
| 30 | $(top_builddir)/extensions/openpower-pels/bcd_time.o \ |
Matt Spinler | 131870c | 2019-09-25 13:29:04 -0500 | [diff] [blame] | 31 | $(top_builddir)/extensions/openpower-pels/failing_mtms.o \ |
| 32 | $(top_builddir)/extensions/openpower-pels/generic.o \ |
Matt Spinler | cb6b059 | 2019-07-16 15:58:51 -0500 | [diff] [blame] | 33 | $(top_builddir)/extensions/openpower-pels/log_id.o \ |
Matt Spinler | 131870c | 2019-09-25 13:29:04 -0500 | [diff] [blame] | 34 | $(top_builddir)/extensions/openpower-pels/mtms.o \ |
Matt Spinler | cb6b059 | 2019-07-16 15:58:51 -0500 | [diff] [blame] | 35 | $(top_builddir)/extensions/openpower-pels/pel.o \ |
Matt Spinler | 367144c | 2019-09-19 15:33:52 -0500 | [diff] [blame] | 36 | $(top_builddir)/extensions/openpower-pels/pel_values.o \ |
Matt Spinler | 03c1d91 | 2019-07-10 14:12:15 -0500 | [diff] [blame] | 37 | $(top_builddir)/extensions/openpower-pels/private_header.o \ |
Matt Spinler | 367144c | 2019-09-19 15:33:52 -0500 | [diff] [blame] | 38 | $(top_builddir)/extensions/openpower-pels/registry.o \ |
Matt Spinler | 131870c | 2019-09-25 13:29:04 -0500 | [diff] [blame] | 39 | $(top_builddir)/extensions/openpower-pels/section_factory.o \ |
Matt Spinler | 8c686cc | 2019-09-20 13:46:02 -0500 | [diff] [blame] | 40 | $(top_builddir)/extensions/openpower-pels/severity.o \ |
Aatir Manzur | 51c9263 | 2019-09-06 13:30:48 -0500 | [diff] [blame] | 41 | $(top_builddir)/extensions/openpower-pels/user_data.o \ |
Matt Spinler | 03c1d91 | 2019-07-10 14:12:15 -0500 | [diff] [blame] | 42 | $(top_builddir)/extensions/openpower-pels/user_header.o |
Matt Spinler | d3335df | 2019-07-10 11:04:21 -0500 | [diff] [blame] | 43 | |
Matt Spinler | 15ee6ae | 2019-07-08 16:50:06 -0500 | [diff] [blame] | 44 | additional_data_test_SOURCES = %reldir%/additional_data_test.cpp |
| 45 | additional_data_test_CPPFLAGS = $(test_cppflags) |
| 46 | additional_data_test_CXXFLAGS = $(test_cxxflags) |
| 47 | additional_data_test_LDADD = $(test_ldadd) |
| 48 | additional_data_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | 113ad28 | 2019-07-09 14:44:13 -0500 | [diff] [blame] | 49 | |
| 50 | stream_test_SOURCES = %reldir%/stream_test.cpp |
| 51 | stream_test_CPPFLAGS = $(test_cppflags) |
| 52 | stream_test_CXXFLAGS = $(test_cxxflags) |
| 53 | stream_test_LDADD = $(test_ldadd) |
Matt Spinler | df797f2 | 2019-07-09 15:39:51 -0500 | [diff] [blame] | 54 | stream_test_LDFLAGS = $(test_ldflags) |
| 55 | |
| 56 | bcd_time_test_SOURCES = \ |
| 57 | %reldir%/bcd_time_test.cpp |
| 58 | bcd_time_test_CPPFLAGS = $(test_cppflags) |
| 59 | bcd_time_test_CXXFLAGS = $(test_cxxflags) |
| 60 | bcd_time_test_LDADD = \ |
| 61 | $(test_ldadd) \ |
| 62 | $(top_builddir)/extensions/openpower-pels/bcd_time.o |
Matt Spinler | 1b5c72b | 2019-07-10 10:32:06 -0500 | [diff] [blame] | 63 | bcd_time_test_LDFLAGS = $(test_ldflags) |
| 64 | |
| 65 | section_header_test_SOURCES = \ |
| 66 | %reldir%/section_header_test.cpp |
| 67 | section_header_test_CPPFLAGS = $(test_cppflags) |
| 68 | section_header_test_CXXFLAGS = $(test_cxxflags) |
| 69 | section_header_test_LDADD = $(test_ldadd) |
Matt Spinler | d3335df | 2019-07-10 11:04:21 -0500 | [diff] [blame] | 70 | section_header_test_LDFLAGS = $(test_ldflags) |
| 71 | |
| 72 | private_header_test_SOURCES = \ |
Matt Spinler | cb6b059 | 2019-07-16 15:58:51 -0500 | [diff] [blame] | 73 | %reldir%/private_header_test.cpp %reldir%/pel_utils.cpp %reldir%/paths.cpp |
Matt Spinler | d3335df | 2019-07-10 11:04:21 -0500 | [diff] [blame] | 74 | private_header_test_CPPFLAGS = $(test_cppflags) |
| 75 | private_header_test_CXXFLAGS = $(test_cxxflags) |
| 76 | private_header_test_LDADD = \ |
| 77 | $(test_ldadd) \ |
| 78 | $(pel_objects) |
| 79 | private_header_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | 03c1d91 | 2019-07-10 14:12:15 -0500 | [diff] [blame] | 80 | |
| 81 | user_header_test_SOURCES = \ |
Matt Spinler | cb6b059 | 2019-07-16 15:58:51 -0500 | [diff] [blame] | 82 | %reldir%/user_header_test.cpp %reldir%/pel_utils.cpp %reldir%/paths.cpp |
Matt Spinler | 03c1d91 | 2019-07-10 14:12:15 -0500 | [diff] [blame] | 83 | user_header_test_CPPFLAGS = $(test_cppflags) |
| 84 | user_header_test_CXXFLAGS = $(test_cxxflags) |
| 85 | user_header_test_LDADD = \ |
| 86 | $(test_ldadd) \ |
| 87 | $(pel_objects) |
| 88 | user_header_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | df13bdb | 2019-07-10 16:54:13 -0500 | [diff] [blame] | 89 | |
| 90 | log_id_test_SOURCES = \ |
| 91 | %reldir%/log_id_test.cpp %reldir%/paths.cpp |
| 92 | log_id_test_CPPFLAGS = $(test_cppflags) |
| 93 | log_id_test_CXXFLAGS = $(test_cxxflags) |
| 94 | log_id_test_LDADD = \ |
| 95 | $(test_ldadd) \ |
| 96 | $(top_builddir)/extensions/openpower-pels/log_id.o |
| 97 | log_id_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | cb6b059 | 2019-07-16 15:58:51 -0500 | [diff] [blame] | 98 | |
| 99 | pel_test_SOURCES = \ |
| 100 | %reldir%/pel_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp |
| 101 | pel_test_CPPFLAGS = $(test_cppflags) |
| 102 | pel_test_CXXFLAGS = $(test_cxxflags) |
| 103 | pel_test_LDADD = \ |
| 104 | $(test_ldadd) \ |
| 105 | $(pel_objects) |
| 106 | pel_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | 89fa082 | 2019-07-17 13:54:30 -0500 | [diff] [blame] | 107 | |
Matt Spinler | 07eefc5 | 2019-09-26 11:18:26 -0500 | [diff] [blame] | 108 | real_pel_test_SOURCES = \ |
| 109 | %reldir%/real_pel_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp |
| 110 | real_pel_test_CPPFLAGS = $(test_cppflags) |
| 111 | real_pel_test_CXXFLAGS = $(test_cxxflags) |
| 112 | real_pel_test_LDADD = \ |
| 113 | $(test_ldadd) \ |
| 114 | $(pel_objects) |
| 115 | real_pel_test_LDFLAGS = $(test_ldflags) |
| 116 | |
Matt Spinler | 89fa082 | 2019-07-17 13:54:30 -0500 | [diff] [blame] | 117 | repository_test_SOURCES = \ |
| 118 | %reldir%/repository_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp |
| 119 | repository_test_CPPFLAGS = $(test_cppflags) |
| 120 | repository_test_CXXFLAGS = $(test_cxxflags) |
| 121 | repository_test_LDADD = \ |
| 122 | $(test_ldadd) \ |
| 123 | $(pel_objects) \ |
| 124 | $(top_builddir)/extensions/openpower-pels/repository.o |
| 125 | repository_test_LDFLAGS = $(test_ldflags) |
| 126 | |
| 127 | pel_manager_test_SOURCES = \ |
| 128 | %reldir%/pel_manager_test.cpp %reldir%/paths.cpp %reldir%/pel_utils.cpp |
| 129 | pel_manager_test_CPPFLAGS = $(test_cppflags) |
| 130 | pel_manager_test_CXXFLAGS = $(test_cxxflags) |
| 131 | pel_manager_test_LDADD = \ |
| 132 | $(test_ldadd) \ |
| 133 | $(pel_objects) \ |
Matt Spinler | c8705e2 | 2019-09-11 12:36:07 -0500 | [diff] [blame] | 134 | $(top_builddir)/extensions/openpower-pels/data_interface.o \ |
Matt Spinler | 89fa082 | 2019-07-17 13:54:30 -0500 | [diff] [blame] | 135 | $(top_builddir)/extensions/openpower-pels/manager.o \ |
| 136 | $(top_builddir)/extensions/openpower-pels/repository.o |
Matt Spinler | b666433 | 2019-09-10 15:24:10 -0500 | [diff] [blame] | 137 | pel_manager_test_LDFLAGS = $(test_ldflags) |
| 138 | |
Matt Spinler | 367144c | 2019-09-19 15:33:52 -0500 | [diff] [blame] | 139 | registry_test_SOURCES = \ |
| 140 | %reldir%/registry_test.cpp %reldir%/paths.cpp |
| 141 | registry_test_CPPFLAGS = $(test_cppflags) |
| 142 | registry_test_CXXFLAGS = $(test_cxxflags) |
| 143 | registry_test_LDADD = \ |
| 144 | $(test_ldadd) \ |
| 145 | $(top_builddir)/extensions/openpower-pels/registry.o \ |
| 146 | $(top_builddir)/extensions/openpower-pels/pel_values.o |
| 147 | registry_test_LDFLAGS = $(test_ldflags) |
| 148 | |
Matt Spinler | 8c686cc | 2019-09-20 13:46:02 -0500 | [diff] [blame] | 149 | severity_test_SOURCES = %reldir%/severity_test.cpp |
| 150 | severity_test_CPPFLAGS = $(test_cppflags) |
| 151 | severity_test_CXXFLAGS = $(test_cxxflags) |
| 152 | severity_test_LDADD = \ |
| 153 | $(test_ldflags) \ |
| 154 | $(top_builddir)/extensions/openpower-pels/severity.o |
| 155 | severity_test_LDFLAGS = $(test_ldflags) |
| 156 | |
Matt Spinler | b666433 | 2019-09-10 15:24:10 -0500 | [diff] [blame] | 157 | mtms_test_SOURCES = %reldir%/mtms_test.cpp |
| 158 | mtms_test_CPPFLAGS = $(test_cppflags) |
| 159 | mtms_test_CXXFLAGS = $(test_cxxflags) |
| 160 | mtms_test_LDADD = \ |
| 161 | $(test_ldadd) \ |
| 162 | $(top_builddir)/extensions/openpower-pels/mtms.o |
| 163 | mtms_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | 09d6400 | 2019-09-11 14:29:46 -0500 | [diff] [blame] | 164 | |
| 165 | failing_mtms_test_SOURCES = %reldir%/failing_mtms_test.cpp |
| 166 | failing_mtms_test_CPPFLAGS = $(test_cppflags) |
| 167 | failing_mtms_test_CXXFLAGS = $(test_cxxflags) |
| 168 | failing_mtms_test_LDADD = \ |
| 169 | $(test_ldadd) \ |
| 170 | $(top_builddir)/extensions/openpower-pels/failing_mtms.o \ |
| 171 | $(top_builddir)/extensions/openpower-pels/mtms.o |
| 172 | failing_mtms_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | 835a869 | 2019-08-27 13:56:05 -0500 | [diff] [blame] | 173 | |
| 174 | pel_values_test_SOURCES = %reldir%/pel_values_test.cpp |
| 175 | pel_values_test_CPPFLAGS = $(test_cppflags) |
| 176 | pel_values_test_CXXFLAGS = $(test_cxxflags) |
| 177 | pel_values_test_LDADD = \ |
| 178 | $(test_ldflags) \ |
| 179 | $(top_builddir)/extensions/openpower-pels/pel_values.o |
| 180 | pel_values_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | 14d671f | 2019-09-25 13:11:22 -0500 | [diff] [blame] | 181 | |
| 182 | generic_section_test_SOURCES = \ |
| 183 | %reldir%/generic_section_test.cpp %reldir%/pel_utils.cpp |
| 184 | generic_section_test_CPPFLAGS = $(test_cppflags) |
| 185 | generic_section_test_CXXFLAGS = $(test_cxxflags) |
| 186 | generic_section_test_LDADD = \ |
| 187 | $(test_ldadd) \ |
| 188 | $(top_builddir)/extensions/openpower-pels/generic.o |
| 189 | generic_section_test_LDFLAGS = $(test_ldflags) |
Aatir Manzur | 51c9263 | 2019-09-06 13:30:48 -0500 | [diff] [blame] | 190 | |
| 191 | user_data_test_SOURCES = \ |
| 192 | %reldir%/user_data_test.cpp %reldir%/pel_utils.cpp |
| 193 | user_data_test_CPPFLAGS = $(test_cppflags) |
| 194 | user_data_test_CXXFLAGS = $(test_cxxflags) |
| 195 | user_data_test_LDADD = \ |
| 196 | $(test_ldadd) \ |
| 197 | $(top_builddir)/extensions/openpower-pels/user_data.o |
| 198 | user_data_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | 6852d72 | 2019-09-30 15:35:53 -0500 | [diff] [blame] | 199 | |
| 200 | ascii_string_test_SOURCES = %reldir%/ascii_string_test.cpp |
| 201 | ascii_string_test_CPPFLAGS = $(test_cppflags) |
| 202 | ascii_string_test_CXXFLAGS = $(test_cxxflags) |
| 203 | ascii_string_test_LDADD = \ |
| 204 | $(test_ldadd) \ |
| 205 | $(top_builddir)/extensions/openpower-pels/ascii_string.o |
| 206 | ascii_string_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | a906c94 | 2019-10-08 13:42:05 -0500 | [diff] [blame] | 207 | |
| 208 | fru_identity_test_SOURCES = %reldir%/fru_identity_test.cpp |
| 209 | fru_identity_test_CPPFLAGS = $(test_cppflags) |
| 210 | fru_identity_test_CXXFLAGS = $(test_cxxflags) |
| 211 | fru_identity_test_LDADD = \ |
| 212 | $(test_ldadd) \ |
| 213 | $(top_builddir)/extensions/openpower-pels/fru_identity.o |
| 214 | fru_identity_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | 5b3a11d | 2019-10-08 14:13:31 -0500 | [diff] [blame] | 215 | |
| 216 | pce_identity_test_SOURCES = %reldir%/pce_identity_test.cpp |
| 217 | pce_identity_test_CPPFLAGS = $(test_cppflags) |
| 218 | pce_identity_test_CXXFLAGS = $(test_cxxflags) |
| 219 | pce_identity_test_LDADD = \ |
| 220 | $(test_ldadd) \ |
| 221 | $(top_builddir)/extensions/openpower-pels/pce_identity.o \ |
| 222 | $(top_builddir)/extensions/openpower-pels/mtms.o |
| 223 | pce_identity_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | 90b4a0a | 2019-10-09 10:08:43 -0500 | [diff] [blame] | 224 | |
| 225 | mru_test_SOURCES = %reldir%/mru_test.cpp |
| 226 | mru_test_CPPFLAGS = $(test_cppflags) |
| 227 | mru_test_CXXFLAGS = $(test_cxxflags) |
| 228 | mru_test_LDADD = \ |
| 229 | $(test_ldadd) \ |
| 230 | $(top_builddir)/extensions/openpower-pels/mru.o |
| 231 | mru_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | 6c9662c | 2019-10-09 11:27:20 -0500 | [diff] [blame] | 232 | |
| 233 | src_callout_test_SOURCES = \ |
| 234 | %reldir%/src_callout_test.cpp \ |
| 235 | %reldir%/pel_utils.cpp |
| 236 | src_callout_test_CPPFLAGS = $(test_cppflags) |
| 237 | src_callout_test_CXXFLAGS = $(test_cxxflags) |
| 238 | src_callout_test_LDADD = \ |
| 239 | $(test_ldadd) \ |
| 240 | $(top_builddir)/extensions/openpower-pels/callout.o \ |
| 241 | $(top_builddir)/extensions/openpower-pels/fru_identity.o \ |
| 242 | $(top_builddir)/extensions/openpower-pels/mru.o \ |
| 243 | $(top_builddir)/extensions/openpower-pels/mtms.o \ |
| 244 | $(top_builddir)/extensions/openpower-pels/pce_identity.o |
| 245 | src_callout_test_LDFLAGS = $(test_ldflags) |
Matt Spinler | 32f13c9 | 2019-10-09 12:48:25 -0500 | [diff] [blame^] | 246 | |
| 247 | src_callouts_test_SOURCES = \ |
| 248 | %reldir%/src_callouts_test.cpp \ |
| 249 | %reldir%/pel_utils.cpp |
| 250 | src_callouts_test_CPPFLAGS = $(test_cppflags) |
| 251 | src_callouts_test_CXXFLAGS = $(test_cxxflags) |
| 252 | src_callouts_test_LDADD = \ |
| 253 | $(test_ldadd) \ |
| 254 | $(top_builddir)/extensions/openpower-pels/callout.o \ |
| 255 | $(top_builddir)/extensions/openpower-pels/callouts.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 |
| 260 | src_callouts_test_LDFLAGS = $(test_ldflags) |