blob: dac43c8bdebc0954508c98b16bb8e5a6831e211e [file] [log] [blame]
Andrew Jeffery812923d2018-02-22 11:59:52 +10301TEST_MBOX_VPNOR_SRCS = common.c pnor_partition_table.cpp \
2 %reldir%/tmpd.cpp
Andrew Jeffery85985912018-02-22 10:20:31 +10303
Andrew Jefferya6582532018-02-22 16:04:37 +10304VPNOR_LDADD = -lstdc++fs \
5 $(SDBUSPLUS_LIBS) \
6 $(PHOSPHOR_LOGGING_LIBS) \
7 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
8
Andrew Jeffery85985912018-02-22 10:20:31 +10309test_vpnor_create_pnor_partition_table_SOURCES = \
10 $(TEST_MBOX_VPNOR_SRCS) \
Andrew Jeffery742a1f62018-03-02 09:26:03 +103011 $(TEST_MOCK_SRCS) \
12 mboxd_msg.c \
13 mboxd_windows.c \
14 mboxd_lpc.c \
15 mboxd_lpc_virtual.cpp \
16 mboxd_pnor_partition_table.cpp \
17 mboxd_flash_virtual.cpp \
18 pnor_partition.cpp \
Andrew Jeffery85985912018-02-22 10:20:31 +103019 %reldir%/create_pnor_partition_table.cpp
20test_vpnor_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
Andrew Jefferya6582532018-02-22 16:04:37 +103021test_vpnor_create_pnor_partition_table_LDADD = $(VPNOR_LDADD)
Andrew Jeffery85985912018-02-22 10:20:31 +103022
Andrew Jefferyde90fdc2018-02-23 15:59:46 +103023test_vpnor_create_read_window_partition_exists_SOURCES = \
Andrew Jeffery85985912018-02-22 10:20:31 +103024 $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \
25 mboxd_msg.c \
26 mboxd_windows.c \
27 mboxd_lpc.c \
28 mboxd_lpc_virtual.cpp \
29 mboxd_pnor_partition_table.cpp \
30 mboxd_flash_virtual.cpp \
31 pnor_partition.cpp \
Andrew Jefferyde90fdc2018-02-23 15:59:46 +103032 %reldir%/create_read_window_partition_exists.cpp
33test_vpnor_create_read_window_partition_exists_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
34test_vpnor_create_read_window_partition_exists_LDADD = $(VPNOR_LDADD)
Andrew Jeffery85985912018-02-22 10:20:31 +103035
Andrew Jeffery733cbe62018-02-22 22:10:16 +103036test_vpnor_write_patch_SOURCES = \
Andrew Jeffery85985912018-02-22 10:20:31 +103037 $(TEST_MBOX_VPNOR_SRCS) \
38 mboxd_pnor_partition_table.cpp \
39 mboxd_flash_virtual.cpp \
40 mtd.c \
41 pnor_partition.cpp \
Andrew Jeffery733cbe62018-02-22 22:10:16 +103042 %reldir%/write_patch.cpp
43test_vpnor_write_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
44test_vpnor_write_patch_LDADD = $(VPNOR_LDADD)
Andrew Jeffery85985912018-02-22 10:20:31 +103045
Andrew Jefferyad341a22018-02-22 17:13:15 +103046test_vpnor_write_prsv_SOURCES = \
47 $(TEST_MBOX_VPNOR_SRCS) \
48 mboxd_pnor_partition_table.cpp \
49 mboxd_flash_virtual.cpp \
50 mtd.c \
51 pnor_partition.cpp \
52 %reldir%/write_prsv.cpp
53test_vpnor_write_prsv_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
54test_vpnor_write_prsv_LDADD = $(VPNOR_LDADD)
55
Andrew Jefferyf050fcf2018-02-22 17:35:34 +103056test_vpnor_write_ro_SOURCES = \
57 $(TEST_MBOX_VPNOR_SRCS) \
58 mboxd_pnor_partition_table.cpp \
59 mboxd_flash_virtual.cpp \
60 mtd.c \
61 pnor_partition.cpp \
62 %reldir%/write_ro.cpp
63test_vpnor_write_ro_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
64test_vpnor_write_ro_LDADD = $(VPNOR_LDADD)
65
Andrew Jeffery24f44592018-02-22 17:51:59 +103066test_vpnor_write_rw_SOURCES = \
67 $(TEST_MBOX_VPNOR_SRCS) \
68 mboxd_pnor_partition_table.cpp \
69 mboxd_flash_virtual.cpp \
70 mtd.c \
71 pnor_partition.cpp \
72 %reldir%/write_rw.cpp
73test_vpnor_write_rw_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
74test_vpnor_write_rw_LDADD = $(VPNOR_LDADD)
75
Andrew Jefferyb02ef432018-02-26 09:57:17 +103076test_vpnor_toc_no_name_SOURCES = \
77 common.c \
78 pnor_partition_table.cpp \
79 %reldir%/toc_no_name.cpp
80test_vpnor_toc_no_name_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
81test_vpnor_toc_no_name_LDADD = $(VPNOR_LDADD)
82
Andrew Jeffery17bbf452018-02-26 09:57:56 +103083test_vpnor_toc_start_gt_end_SOURCES = \
84 common.c \
85 pnor_partition_table.cpp \
86 %reldir%/toc_start_gt_end.cpp
87test_vpnor_toc_start_gt_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
88test_vpnor_toc_start_gt_end_LDADD = $(VPNOR_LDADD)
89
Andrew Jeffery437c80f2018-02-26 09:59:51 +103090test_vpnor_toc_no_start_SOURCES = \
91 common.c \
92 pnor_partition_table.cpp \
93 %reldir%/toc_no_start.cpp
94test_vpnor_toc_no_start_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
95test_vpnor_toc_no_start_LDADD = $(VPNOR_LDADD)
96
Andrew Jeffery50ab1de2018-02-26 10:02:39 +103097test_vpnor_toc_no_end_SOURCES = \
98 common.c \
99 pnor_partition_table.cpp \
100 %reldir%/toc_no_end.cpp
101test_vpnor_toc_no_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
102test_vpnor_toc_no_end_LDADD = $(VPNOR_LDADD)
103
Andrew Jefferya11a3b02018-02-26 10:13:37 +1030104test_vpnor_toc_no_version_SOURCES = \
105 common.c \
106 pnor_partition_table.cpp \
107 %reldir%/toc_no_version.cpp
108test_vpnor_toc_no_version_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
109test_vpnor_toc_no_version_LDADD = $(VPNOR_LDADD)
110
Andrew Jeffery9b25b592018-02-26 12:01:24 +1030111test_vpnor_toc_flags_SOURCES = \
112 common.c \
113 pnor_partition_table.cpp \
114 %reldir%/toc_flags.cpp
115test_vpnor_toc_flags_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
116test_vpnor_toc_flags_LDADD = $(VPNOR_LDADD)
117
Andrew Jefferyf5a51382018-02-27 16:17:53 +1030118test_vpnor_toc_overlap_SOURCES = \
119 $(TEST_MOCK_SRCS) \
120 mboxd_msg.c \
121 mboxd_windows.c \
122 mboxd_lpc.c \
123 mboxd_lpc_virtual.cpp \
124 mboxd_pnor_partition_table.cpp \
125 mboxd_flash_virtual.cpp \
126 pnor_partition.cpp \
127 common.c \
128 pnor_partition_table.cpp \
129 %reldir%/toc_overlap.cpp
130test_vpnor_toc_overlap_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
131test_vpnor_toc_overlap_LDADD = $(VPNOR_LDADD)
132
Andrew Jefferya138f562018-02-27 16:58:02 +1030133test_vpnor_toc_lookup_found_SOURCES = \
134 $(TEST_MOCK_SRCS) \
135 mboxd_msg.c \
136 mboxd_windows.c \
137 mboxd_lpc.c \
138 mboxd_lpc_virtual.cpp \
139 mboxd_pnor_partition_table.cpp \
140 mboxd_flash_virtual.cpp \
141 pnor_partition.cpp \
142 common.c \
143 pnor_partition_table.cpp \
144 %reldir%/toc_lookup_found.cpp
145test_vpnor_toc_lookup_found_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
146test_vpnor_toc_lookup_found_LDADD = $(VPNOR_LDADD)
147
Andrew Jeffery3376dac2018-02-27 17:03:08 +1030148test_vpnor_toc_lookup_failed_SOURCES = \
149 $(TEST_MOCK_SRCS) \
150 mboxd_msg.c \
151 mboxd_windows.c \
152 mboxd_lpc.c \
153 mboxd_lpc_virtual.cpp \
154 mboxd_pnor_partition_table.cpp \
155 mboxd_flash_virtual.cpp \
156 pnor_partition.cpp \
157 common.c \
158 pnor_partition_table.cpp \
159 %reldir%/toc_lookup_failed.cpp
160test_vpnor_toc_lookup_failed_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
161test_vpnor_toc_lookup_failed_LDADD = $(VPNOR_LDADD)
162
Andrew Jefferybfe6f802018-02-27 17:11:17 +1030163test_vpnor_toc_missing_file_SOURCES = \
164 $(TEST_MOCK_SRCS) \
165 mboxd_msg.c \
166 mboxd_windows.c \
167 mboxd_lpc.c \
168 mboxd_lpc_virtual.cpp \
169 mboxd_pnor_partition_table.cpp \
170 mboxd_flash_virtual.cpp \
171 pnor_partition.cpp \
172 common.c \
173 pnor_partition_table.cpp \
174 %reldir%/toc_missing_file.cpp
175test_vpnor_toc_missing_file_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
176test_vpnor_toc_missing_file_LDADD = $(VPNOR_LDADD)
177
Andrew Jeffery3c9bb3e2018-02-23 18:16:50 +1030178test_vpnor_create_read_window_oob_SOURCES = \
179 $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \
180 mboxd_msg.c \
181 mboxd_windows.c \
182 mboxd_lpc.c \
183 mboxd_lpc_virtual.cpp \
184 mboxd_pnor_partition_table.cpp \
185 mboxd_flash_virtual.cpp \
186 pnor_partition.cpp \
187 %reldir%/create_read_window_oob.cpp
188test_vpnor_create_read_window_oob_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
189test_vpnor_create_read_window_oob_LDADD = $(VPNOR_LDADD)
190
Andrew Jeffery7eed6de2018-03-01 12:11:23 +1030191test_vpnor_create_read_window_toc_SOURCES = \
192 $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \
193 mboxd_msg.c \
194 mboxd_windows.c \
195 mboxd_lpc.c \
196 mboxd_lpc_virtual.cpp \
197 mboxd_pnor_partition_table.cpp \
198 mboxd_flash_virtual.cpp \
199 pnor_partition.cpp \
200 %reldir%/create_read_window_toc.cpp
201test_vpnor_create_read_window_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
202test_vpnor_create_read_window_toc_LDADD = $(VPNOR_LDADD)
203
Andrew Jeffery2b73f172018-03-01 13:06:29 +1030204test_vpnor_create_read_window_straddle_partitions_SOURCES = \
205 $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \
206 mboxd_msg.c \
207 mboxd_windows.c \
208 mboxd_lpc.c \
209 mboxd_lpc_virtual.cpp \
210 mboxd_pnor_partition_table.cpp \
211 mboxd_flash_virtual.cpp \
212 pnor_partition.cpp \
213 %reldir%/create_read_window_straddle_partitions.cpp
214test_vpnor_create_read_window_straddle_partitions_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
215test_vpnor_create_read_window_straddle_partitions_LDADD = $(VPNOR_LDADD)
216
Andrew Jeffery730e3b02018-02-23 18:09:22 +1030217test_vpnor_create_read_window_partition_invalid_SOURCES = \
218 $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \
219 mboxd_msg.c \
220 mboxd_windows.c \
221 mboxd_lpc.c \
222 mboxd_lpc_virtual.cpp \
223 mboxd_pnor_partition_table.cpp \
224 mboxd_flash_virtual.cpp \
225 pnor_partition.cpp \
226 %reldir%/create_read_window_partition_invalid.cpp
227test_vpnor_create_read_window_partition_invalid_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
228test_vpnor_create_read_window_partition_invalid_LDADD = $(VPNOR_LDADD)
229
Andrew Jeffery5bfc9862018-03-02 09:13:31 +1030230test_vpnor_read_patch_SOURCES = \
231 $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \
232 mboxd_msg.c \
233 mboxd_windows.c \
234 mboxd_lpc.c \
235 mboxd_lpc_virtual.cpp \
236 mboxd_pnor_partition_table.cpp \
237 mboxd_flash_virtual.cpp \
238 pnor_partition.cpp \
239 %reldir%/read_patch.cpp
240test_vpnor_read_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
241test_vpnor_read_patch_LDADD = $(VPNOR_LDADD)
242
Andrew Jefferye9493ad2018-03-28 14:04:34 +1030243test_vpnor_write_patch_resize_SOURCES = \
244 $(TEST_MBOX_VPNOR_SRCS) \
245 mboxd_pnor_partition_table.cpp \
246 mboxd_flash_virtual.cpp \
247 mtd.c \
248 pnor_partition.cpp \
249 %reldir%/write_patch_resize.cpp
250test_vpnor_write_patch_resize_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
251test_vpnor_write_patch_resize_LDADD = $(VPNOR_LDADD)
252
Andrew Jeffery3dce83d2018-03-22 16:52:42 +1030253test_vpnor_dump_flash_SOURCES = \
254 $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \
255 mboxd_msg.c \
256 mboxd_windows.c \
257 mboxd_lpc.c \
258 mboxd_lpc_virtual.cpp \
259 mboxd_pnor_partition_table.cpp \
260 mboxd_flash_virtual.cpp \
261 pnor_partition.cpp \
262 %reldir%/dump_flash.cpp
263test_vpnor_dump_flash_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
264test_vpnor_dump_flash_LDADD = $(VPNOR_LDADD)
265
Andrew Jeffery929b4212018-03-23 16:13:29 +1030266test_vpnor_create_read_window_size_SOURCES = \
267 $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \
268 mboxd_msg.c \
269 mboxd_windows.c \
270 mboxd_lpc.c \
271 mboxd_lpc_virtual.cpp \
272 mboxd_pnor_partition_table.cpp \
273 mboxd_flash_virtual.cpp \
274 pnor_partition.cpp \
275 %reldir%/create_read_window_size.cpp
276test_vpnor_create_read_window_size_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
277test_vpnor_create_read_window_size_LDADD = $(VPNOR_LDADD)
278
Andrew Jeffery912c9bd2018-03-23 13:31:46 +1030279test_vpnor_create_read_window_remap_SOURCES = \
280 $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \
281 mboxd_msg.c \
282 mboxd_windows.c \
283 mboxd_lpc.c \
284 mboxd_lpc_virtual.cpp \
285 mboxd_pnor_partition_table.cpp \
286 mboxd_flash_virtual.cpp \
287 pnor_partition.cpp \
288 %reldir%/create_read_window_remap.cpp
289test_vpnor_create_read_window_remap_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
290test_vpnor_create_read_window_remap_LDADD = $(VPNOR_LDADD)
291
Andrew Jeffery85985912018-02-22 10:20:31 +1030292if VIRTUAL_PNOR_ENABLED
293check_PROGRAMS += \
294 %reldir%/create_pnor_partition_table \
Andrew Jefferyde90fdc2018-02-23 15:59:46 +1030295 %reldir%/create_read_window_partition_exists \
Andrew Jefferyf050fcf2018-02-22 17:35:34 +1030296 %reldir%/write_prsv \
Andrew Jeffery24f44592018-02-22 17:51:59 +1030297 %reldir%/write_ro \
Andrew Jeffery733cbe62018-02-22 22:10:16 +1030298 %reldir%/write_rw \
Andrew Jefferyb02ef432018-02-26 09:57:17 +1030299 %reldir%/write_patch \
Andrew Jeffery17bbf452018-02-26 09:57:56 +1030300 %reldir%/toc_no_name \
Andrew Jeffery437c80f2018-02-26 09:59:51 +1030301 %reldir%/toc_start_gt_end \
Andrew Jeffery50ab1de2018-02-26 10:02:39 +1030302 %reldir%/toc_no_start \
Andrew Jefferya11a3b02018-02-26 10:13:37 +1030303 %reldir%/toc_no_end \
Andrew Jeffery9b25b592018-02-26 12:01:24 +1030304 %reldir%/toc_no_version \
Andrew Jefferyf5a51382018-02-27 16:17:53 +1030305 %reldir%/toc_flags \
Andrew Jefferya138f562018-02-27 16:58:02 +1030306 %reldir%/toc_overlap \
Andrew Jeffery3376dac2018-02-27 17:03:08 +1030307 %reldir%/toc_lookup_found \
Andrew Jefferybfe6f802018-02-27 17:11:17 +1030308 %reldir%/toc_lookup_failed \
Andrew Jeffery3c9bb3e2018-02-23 18:16:50 +1030309 %reldir%/toc_missing_file \
Andrew Jeffery7eed6de2018-03-01 12:11:23 +1030310 %reldir%/create_read_window_oob \
Andrew Jeffery2b73f172018-03-01 13:06:29 +1030311 %reldir%/create_read_window_toc \
Andrew Jeffery730e3b02018-02-23 18:09:22 +1030312 %reldir%/create_read_window_straddle_partitions \
Andrew Jeffery5bfc9862018-03-02 09:13:31 +1030313 %reldir%/create_read_window_partition_invalid \
Andrew Jefferye9493ad2018-03-28 14:04:34 +1030314 %reldir%/read_patch \
Andrew Jeffery3dce83d2018-03-22 16:52:42 +1030315 %reldir%/write_patch_resize \
Andrew Jeffery929b4212018-03-23 16:13:29 +1030316 %reldir%/dump_flash \
Andrew Jeffery912c9bd2018-03-23 13:31:46 +1030317 %reldir%/create_read_window_size \
318 %reldir%/create_read_window_remap
Andrew Jeffery3dce83d2018-03-22 16:52:42 +1030319
320XFAIL_TESTS += %reldir%/dump_flash
Andrew Jeffery929b4212018-03-23 16:13:29 +1030321XFAIL_TESTS += %reldir%/create_read_window_size
Andrew Jeffery85985912018-02-22 10:20:31 +1030322endif