blob: f3f4fc2897e9e48674deed30a507c541fa939952 [file] [log] [blame]
Andrew Jeffery30bcf842018-03-26 12:13:20 +10301TEST_MBOX_VPNOR_SRCS = \
2 common.c \
3 vpnor/pnor_partition_table.cpp \
4 %reldir%/tmpd.cpp
5
6TEST_MBOX_VPNOR_INTEG_SRCS = \
7 common.c \
Andrew Jeffery1e531af2018-08-07 13:32:57 +09308 protocol.c \
Andrew Jeffery457a6e52018-08-08 11:21:08 +09309 transport_mbox.c \
Andrew Jefferyf593b1b2018-08-08 11:01:04 +093010 windows.c \
Andrew Jefferycd186112018-08-08 10:47:55 +093011 lpc.c \
12 vpnor/lpc_reset.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103013 vpnor/mboxd_pnor_partition_table.cpp \
Andrew Jefferyeebc6bd2018-08-08 10:38:19 +093014 vpnor/flash.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103015 vpnor/pnor_partition.cpp \
16 vpnor/pnor_partition_table.cpp \
Andrew Jefferyc7d19472018-08-08 11:43:08 +093017 vpnor/protocol.cpp \
18 vpnor/protocol_negotiate_version.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103019 %reldir%/tmpd.cpp
20
21VPNOR_LDADD = -lstdc++fs \
22 $(SDBUSPLUS_LIBS) \
23 $(PHOSPHOR_LOGGING_LIBS) \
24 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
25
26vpnor_test_create_pnor_partition_table_SOURCES = \
27 $(TEST_MOCK_SRCS) \
28 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
29 %reldir%/create_pnor_partition_table.cpp
30vpnor_test_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
31vpnor_test_create_pnor_partition_table_LDADD = $(VPNOR_LDADD)
32
33vpnor_test_create_read_window_partition_exists_SOURCES = \
34 $(TEST_MOCK_SRCS) \
35 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
36 %reldir%/create_read_window_partition_exists.cpp
37vpnor_test_create_read_window_partition_exists_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
38vpnor_test_create_read_window_partition_exists_LDADD = $(VPNOR_LDADD)
39
40vpnor_test_write_patch_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +103041 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103042 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103043 %reldir%/write_patch.cpp
44vpnor_test_write_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
45vpnor_test_write_patch_LDADD = $(VPNOR_LDADD)
46
47vpnor_test_write_prsv_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +103048 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103049 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103050 %reldir%/write_prsv.cpp
51vpnor_test_write_prsv_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
52vpnor_test_write_prsv_LDADD = $(VPNOR_LDADD)
53
54vpnor_test_write_ro_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +103055 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103056 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103057 %reldir%/write_ro.cpp
58vpnor_test_write_ro_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
59vpnor_test_write_ro_LDADD = $(VPNOR_LDADD)
60
61vpnor_test_write_rw_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +103062 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103063 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103064 %reldir%/write_rw.cpp
65vpnor_test_write_rw_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
66vpnor_test_write_rw_LDADD = $(VPNOR_LDADD)
67
68vpnor_test_toc_no_name_SOURCES = \
69 common.c \
70 vpnor/pnor_partition_table.cpp \
71 %reldir%/toc_no_name.cpp
72vpnor_test_toc_no_name_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
73vpnor_test_toc_no_name_LDADD = $(VPNOR_LDADD)
74
75vpnor_test_toc_start_gt_end_SOURCES = \
76 common.c \
77 vpnor/pnor_partition_table.cpp \
78 %reldir%/toc_start_gt_end.cpp
79vpnor_test_toc_start_gt_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
80vpnor_test_toc_start_gt_end_LDADD = $(VPNOR_LDADD)
81
82vpnor_test_toc_no_start_SOURCES = \
83 common.c \
84 vpnor/pnor_partition_table.cpp \
85 %reldir%/toc_no_start.cpp
86vpnor_test_toc_no_start_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
87vpnor_test_toc_no_start_LDADD = $(VPNOR_LDADD)
88
89vpnor_test_toc_no_end_SOURCES = \
90 common.c \
91 vpnor/pnor_partition_table.cpp \
92 %reldir%/toc_no_end.cpp
93vpnor_test_toc_no_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
94vpnor_test_toc_no_end_LDADD = $(VPNOR_LDADD)
95
96vpnor_test_toc_no_version_SOURCES = \
97 common.c \
98 vpnor/pnor_partition_table.cpp \
99 %reldir%/toc_no_version.cpp
100vpnor_test_toc_no_version_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
101vpnor_test_toc_no_version_LDADD = $(VPNOR_LDADD)
102
103vpnor_test_toc_flags_SOURCES = \
104 common.c \
105 vpnor/pnor_partition_table.cpp \
106 %reldir%/toc_flags.cpp
107vpnor_test_toc_flags_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
108vpnor_test_toc_flags_LDADD = $(VPNOR_LDADD)
109
110vpnor_test_toc_overlap_SOURCES = \
111 $(TEST_MOCK_SRCS) \
112 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
113 %reldir%/toc_overlap.cpp
114vpnor_test_toc_overlap_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
115vpnor_test_toc_overlap_LDADD = $(VPNOR_LDADD)
116
117vpnor_test_toc_lookup_found_SOURCES = \
118 $(TEST_MOCK_SRCS) \
119 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
120 %reldir%/toc_lookup_found.cpp
121vpnor_test_toc_lookup_found_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
122vpnor_test_toc_lookup_found_LDADD = $(VPNOR_LDADD)
123
124vpnor_test_toc_lookup_failed_SOURCES = \
125 $(TEST_MOCK_SRCS) \
126 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
127 %reldir%/toc_lookup_failed.cpp
128vpnor_test_toc_lookup_failed_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
129vpnor_test_toc_lookup_failed_LDADD = $(VPNOR_LDADD)
130
131vpnor_test_toc_missing_file_SOURCES = \
132 $(TEST_MOCK_SRCS) \
133 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
134 %reldir%/toc_missing_file.cpp
135vpnor_test_toc_missing_file_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
136vpnor_test_toc_missing_file_LDADD = $(VPNOR_LDADD)
137
138vpnor_test_create_read_window_oob_SOURCES = \
139 $(TEST_MOCK_SRCS) \
140 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
141 %reldir%/create_read_window_oob.cpp
142vpnor_test_create_read_window_oob_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
143vpnor_test_create_read_window_oob_LDADD = $(VPNOR_LDADD)
144
145vpnor_test_create_read_window_toc_SOURCES = \
146 $(TEST_MOCK_SRCS) \
147 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
148 %reldir%/create_read_window_toc.cpp
149vpnor_test_create_read_window_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
150vpnor_test_create_read_window_toc_LDADD = $(VPNOR_LDADD)
151
152vpnor_test_create_read_window_straddle_partitions_SOURCES = \
153 $(TEST_MOCK_SRCS) \
154 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
155 %reldir%/create_read_window_straddle_partitions.cpp
156vpnor_test_create_read_window_straddle_partitions_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
157vpnor_test_create_read_window_straddle_partitions_LDADD = $(VPNOR_LDADD)
158
159vpnor_test_create_read_window_partition_invalid_SOURCES = \
160 $(TEST_MOCK_SRCS) \
161 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
162 %reldir%/create_read_window_partition_invalid.cpp
163vpnor_test_create_read_window_partition_invalid_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
164vpnor_test_create_read_window_partition_invalid_LDADD = $(VPNOR_LDADD)
165
166vpnor_test_read_patch_SOURCES = \
167 $(TEST_MOCK_SRCS) \
168 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
169 %reldir%/read_patch.cpp
170vpnor_test_read_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
171vpnor_test_read_patch_LDADD = $(VPNOR_LDADD)
172
173vpnor_test_write_patch_resize_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +1030174 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030175 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030176 %reldir%/write_patch_resize.cpp
177vpnor_test_write_patch_resize_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
178vpnor_test_write_patch_resize_LDADD = $(VPNOR_LDADD)
179
180vpnor_test_dump_flash_SOURCES = \
181 $(TEST_MOCK_SRCS) \
182 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
183 %reldir%/dump_flash.cpp
184vpnor_test_dump_flash_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
185vpnor_test_dump_flash_LDADD = $(VPNOR_LDADD)
186
187vpnor_test_create_read_window_size_SOURCES = \
188 $(TEST_MOCK_SRCS) \
189 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
190 %reldir%/create_read_window_size.cpp
191vpnor_test_create_read_window_size_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
192vpnor_test_create_read_window_size_LDADD = $(VPNOR_LDADD)
193
194vpnor_test_create_read_window_remap_SOURCES = \
195 $(TEST_MOCK_SRCS) \
196 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
197 %reldir%/create_read_window_remap.cpp
198vpnor_test_create_read_window_remap_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
199vpnor_test_create_read_window_remap_LDADD = $(VPNOR_LDADD)
200
201vpnor_test_create_write_window_ro_partition_SOURCES = \
202 $(TEST_MOCK_SRCS) \
203 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
204 %reldir%/create_write_window_ro_partition.cpp
205vpnor_test_create_write_window_ro_partition_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
206vpnor_test_create_write_window_ro_partition_LDADD = $(VPNOR_LDADD)
207
208vpnor_test_create_write_window_rw_partition_SOURCES = \
209 $(TEST_MOCK_SRCS) \
210 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
211 %reldir%/create_write_window_rw_partition.cpp
212vpnor_test_create_write_window_rw_partition_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
213vpnor_test_create_write_window_rw_partition_LDADD = $(VPNOR_LDADD)
214
215vpnor_test_create_write_window_unmapped_SOURCES = \
216 $(TEST_MOCK_SRCS) \
217 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
218 %reldir%/create_write_window_unmapped.cpp
219vpnor_test_create_write_window_unmapped_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
220vpnor_test_create_write_window_unmapped_LDADD = $(VPNOR_LDADD)
221
Andrew Jeffery89985752018-11-13 15:17:30 +1030222vpnor_test_write_toc_SOURCES = \
223 $(TEST_MOCK_SRCS) \
224 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
225 %reldir%/write_toc.cpp
226vpnor_test_write_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
227vpnor_test_write_toc_LDADD = $(VPNOR_LDADD)
228
Andrew Jeffery8a0efd52018-11-13 17:13:08 +1030229vpnor_test_force_readonly_toc_SOURCES = \
230 $(TEST_MOCK_SRCS) \
231 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
232 %reldir%/force_readonly_toc.cpp
233vpnor_test_force_readonly_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
234vpnor_test_force_readonly_toc_LDADD = $(VPNOR_LDADD)
235
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030236if VIRTUAL_PNOR_ENABLED
237check_PROGRAMS += \
238 %reldir%/create_pnor_partition_table \
239 %reldir%/create_read_window_partition_exists \
240 %reldir%/write_prsv \
241 %reldir%/write_ro \
242 %reldir%/write_rw \
243 %reldir%/write_patch \
244 %reldir%/toc_no_name \
245 %reldir%/toc_start_gt_end \
246 %reldir%/toc_no_start \
247 %reldir%/toc_no_end \
248 %reldir%/toc_no_version \
249 %reldir%/toc_flags \
250 %reldir%/toc_overlap \
251 %reldir%/toc_lookup_found \
252 %reldir%/toc_lookup_failed \
253 %reldir%/toc_missing_file \
254 %reldir%/create_read_window_oob \
255 %reldir%/create_read_window_toc \
256 %reldir%/create_read_window_straddle_partitions \
257 %reldir%/create_read_window_partition_invalid \
258 %reldir%/read_patch \
259 %reldir%/write_patch_resize \
260 %reldir%/dump_flash \
261 %reldir%/create_read_window_size \
262 %reldir%/create_read_window_remap \
263 %reldir%/create_write_window_ro_partition \
264 %reldir%/create_write_window_rw_partition \
Andrew Jeffery89985752018-11-13 15:17:30 +1030265 %reldir%/create_write_window_unmapped \
Andrew Jeffery8a0efd52018-11-13 17:13:08 +1030266 %reldir%/write_toc \
267 %reldir%/force_readonly_toc
Andrew Jeffery89985752018-11-13 15:17:30 +1030268
269XFAIL_TESTS += \
Andrew Jeffery7a85d222018-11-13 17:15:18 +1030270 %reldir%/write_toc
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030271endif