blob: 5ff4dcc0e27ebe51a1c87a2cea04412b6392d87a [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 \
17 %reldir%/tmpd.cpp
18
19VPNOR_LDADD = -lstdc++fs \
20 $(SDBUSPLUS_LIBS) \
21 $(PHOSPHOR_LOGGING_LIBS) \
22 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
23
24vpnor_test_create_pnor_partition_table_SOURCES = \
25 $(TEST_MOCK_SRCS) \
26 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
27 %reldir%/create_pnor_partition_table.cpp
28vpnor_test_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
29vpnor_test_create_pnor_partition_table_LDADD = $(VPNOR_LDADD)
30
31vpnor_test_create_read_window_partition_exists_SOURCES = \
32 $(TEST_MOCK_SRCS) \
33 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
34 %reldir%/create_read_window_partition_exists.cpp
35vpnor_test_create_read_window_partition_exists_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
36vpnor_test_create_read_window_partition_exists_LDADD = $(VPNOR_LDADD)
37
38vpnor_test_write_patch_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +103039 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103040 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103041 %reldir%/write_patch.cpp
42vpnor_test_write_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
43vpnor_test_write_patch_LDADD = $(VPNOR_LDADD)
44
45vpnor_test_write_prsv_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +103046 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103047 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103048 %reldir%/write_prsv.cpp
49vpnor_test_write_prsv_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
50vpnor_test_write_prsv_LDADD = $(VPNOR_LDADD)
51
52vpnor_test_write_ro_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +103053 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103054 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103055 %reldir%/write_ro.cpp
56vpnor_test_write_ro_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
57vpnor_test_write_ro_LDADD = $(VPNOR_LDADD)
58
59vpnor_test_write_rw_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +103060 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103061 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103062 %reldir%/write_rw.cpp
63vpnor_test_write_rw_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
64vpnor_test_write_rw_LDADD = $(VPNOR_LDADD)
65
66vpnor_test_toc_no_name_SOURCES = \
67 common.c \
68 vpnor/pnor_partition_table.cpp \
69 %reldir%/toc_no_name.cpp
70vpnor_test_toc_no_name_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
71vpnor_test_toc_no_name_LDADD = $(VPNOR_LDADD)
72
73vpnor_test_toc_start_gt_end_SOURCES = \
74 common.c \
75 vpnor/pnor_partition_table.cpp \
76 %reldir%/toc_start_gt_end.cpp
77vpnor_test_toc_start_gt_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
78vpnor_test_toc_start_gt_end_LDADD = $(VPNOR_LDADD)
79
80vpnor_test_toc_no_start_SOURCES = \
81 common.c \
82 vpnor/pnor_partition_table.cpp \
83 %reldir%/toc_no_start.cpp
84vpnor_test_toc_no_start_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
85vpnor_test_toc_no_start_LDADD = $(VPNOR_LDADD)
86
87vpnor_test_toc_no_end_SOURCES = \
88 common.c \
89 vpnor/pnor_partition_table.cpp \
90 %reldir%/toc_no_end.cpp
91vpnor_test_toc_no_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
92vpnor_test_toc_no_end_LDADD = $(VPNOR_LDADD)
93
94vpnor_test_toc_no_version_SOURCES = \
95 common.c \
96 vpnor/pnor_partition_table.cpp \
97 %reldir%/toc_no_version.cpp
98vpnor_test_toc_no_version_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
99vpnor_test_toc_no_version_LDADD = $(VPNOR_LDADD)
100
101vpnor_test_toc_flags_SOURCES = \
102 common.c \
103 vpnor/pnor_partition_table.cpp \
104 %reldir%/toc_flags.cpp
105vpnor_test_toc_flags_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
106vpnor_test_toc_flags_LDADD = $(VPNOR_LDADD)
107
108vpnor_test_toc_overlap_SOURCES = \
109 $(TEST_MOCK_SRCS) \
110 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
111 %reldir%/toc_overlap.cpp
112vpnor_test_toc_overlap_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
113vpnor_test_toc_overlap_LDADD = $(VPNOR_LDADD)
114
115vpnor_test_toc_lookup_found_SOURCES = \
116 $(TEST_MOCK_SRCS) \
117 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
118 %reldir%/toc_lookup_found.cpp
119vpnor_test_toc_lookup_found_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
120vpnor_test_toc_lookup_found_LDADD = $(VPNOR_LDADD)
121
122vpnor_test_toc_lookup_failed_SOURCES = \
123 $(TEST_MOCK_SRCS) \
124 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
125 %reldir%/toc_lookup_failed.cpp
126vpnor_test_toc_lookup_failed_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
127vpnor_test_toc_lookup_failed_LDADD = $(VPNOR_LDADD)
128
129vpnor_test_toc_missing_file_SOURCES = \
130 $(TEST_MOCK_SRCS) \
131 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
132 %reldir%/toc_missing_file.cpp
133vpnor_test_toc_missing_file_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
134vpnor_test_toc_missing_file_LDADD = $(VPNOR_LDADD)
135
136vpnor_test_create_read_window_oob_SOURCES = \
137 $(TEST_MOCK_SRCS) \
138 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
139 %reldir%/create_read_window_oob.cpp
140vpnor_test_create_read_window_oob_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
141vpnor_test_create_read_window_oob_LDADD = $(VPNOR_LDADD)
142
143vpnor_test_create_read_window_toc_SOURCES = \
144 $(TEST_MOCK_SRCS) \
145 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
146 %reldir%/create_read_window_toc.cpp
147vpnor_test_create_read_window_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
148vpnor_test_create_read_window_toc_LDADD = $(VPNOR_LDADD)
149
150vpnor_test_create_read_window_straddle_partitions_SOURCES = \
151 $(TEST_MOCK_SRCS) \
152 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
153 %reldir%/create_read_window_straddle_partitions.cpp
154vpnor_test_create_read_window_straddle_partitions_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
155vpnor_test_create_read_window_straddle_partitions_LDADD = $(VPNOR_LDADD)
156
157vpnor_test_create_read_window_partition_invalid_SOURCES = \
158 $(TEST_MOCK_SRCS) \
159 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
160 %reldir%/create_read_window_partition_invalid.cpp
161vpnor_test_create_read_window_partition_invalid_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
162vpnor_test_create_read_window_partition_invalid_LDADD = $(VPNOR_LDADD)
163
164vpnor_test_read_patch_SOURCES = \
165 $(TEST_MOCK_SRCS) \
166 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
167 %reldir%/read_patch.cpp
168vpnor_test_read_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
169vpnor_test_read_patch_LDADD = $(VPNOR_LDADD)
170
171vpnor_test_write_patch_resize_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +1030172 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030173 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030174 %reldir%/write_patch_resize.cpp
175vpnor_test_write_patch_resize_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
176vpnor_test_write_patch_resize_LDADD = $(VPNOR_LDADD)
177
178vpnor_test_dump_flash_SOURCES = \
179 $(TEST_MOCK_SRCS) \
180 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
181 %reldir%/dump_flash.cpp
182vpnor_test_dump_flash_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
183vpnor_test_dump_flash_LDADD = $(VPNOR_LDADD)
184
185vpnor_test_create_read_window_size_SOURCES = \
186 $(TEST_MOCK_SRCS) \
187 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
188 %reldir%/create_read_window_size.cpp
189vpnor_test_create_read_window_size_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
190vpnor_test_create_read_window_size_LDADD = $(VPNOR_LDADD)
191
192vpnor_test_create_read_window_remap_SOURCES = \
193 $(TEST_MOCK_SRCS) \
194 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
195 %reldir%/create_read_window_remap.cpp
196vpnor_test_create_read_window_remap_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
197vpnor_test_create_read_window_remap_LDADD = $(VPNOR_LDADD)
198
199vpnor_test_create_write_window_ro_partition_SOURCES = \
200 $(TEST_MOCK_SRCS) \
201 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
202 %reldir%/create_write_window_ro_partition.cpp
203vpnor_test_create_write_window_ro_partition_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
204vpnor_test_create_write_window_ro_partition_LDADD = $(VPNOR_LDADD)
205
206vpnor_test_create_write_window_rw_partition_SOURCES = \
207 $(TEST_MOCK_SRCS) \
208 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
209 %reldir%/create_write_window_rw_partition.cpp
210vpnor_test_create_write_window_rw_partition_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
211vpnor_test_create_write_window_rw_partition_LDADD = $(VPNOR_LDADD)
212
213vpnor_test_create_write_window_unmapped_SOURCES = \
214 $(TEST_MOCK_SRCS) \
215 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
216 %reldir%/create_write_window_unmapped.cpp
217vpnor_test_create_write_window_unmapped_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
218vpnor_test_create_write_window_unmapped_LDADD = $(VPNOR_LDADD)
219
Andrew Jeffery89985752018-11-13 15:17:30 +1030220vpnor_test_write_toc_SOURCES = \
221 $(TEST_MOCK_SRCS) \
222 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
223 %reldir%/write_toc.cpp
224vpnor_test_write_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
225vpnor_test_write_toc_LDADD = $(VPNOR_LDADD)
226
Andrew Jeffery8a0efd52018-11-13 17:13:08 +1030227vpnor_test_force_readonly_toc_SOURCES = \
228 $(TEST_MOCK_SRCS) \
229 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
230 %reldir%/force_readonly_toc.cpp
231vpnor_test_force_readonly_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
232vpnor_test_force_readonly_toc_LDADD = $(VPNOR_LDADD)
233
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030234if VIRTUAL_PNOR_ENABLED
235check_PROGRAMS += \
236 %reldir%/create_pnor_partition_table \
237 %reldir%/create_read_window_partition_exists \
238 %reldir%/write_prsv \
239 %reldir%/write_ro \
240 %reldir%/write_rw \
241 %reldir%/write_patch \
242 %reldir%/toc_no_name \
243 %reldir%/toc_start_gt_end \
244 %reldir%/toc_no_start \
245 %reldir%/toc_no_end \
246 %reldir%/toc_no_version \
247 %reldir%/toc_flags \
248 %reldir%/toc_overlap \
249 %reldir%/toc_lookup_found \
250 %reldir%/toc_lookup_failed \
251 %reldir%/toc_missing_file \
252 %reldir%/create_read_window_oob \
253 %reldir%/create_read_window_toc \
254 %reldir%/create_read_window_straddle_partitions \
255 %reldir%/create_read_window_partition_invalid \
256 %reldir%/read_patch \
257 %reldir%/write_patch_resize \
258 %reldir%/dump_flash \
259 %reldir%/create_read_window_size \
260 %reldir%/create_read_window_remap \
261 %reldir%/create_write_window_ro_partition \
262 %reldir%/create_write_window_rw_partition \
Andrew Jeffery89985752018-11-13 15:17:30 +1030263 %reldir%/create_write_window_unmapped \
Andrew Jeffery8a0efd52018-11-13 17:13:08 +1030264 %reldir%/write_toc \
265 %reldir%/force_readonly_toc
Andrew Jeffery89985752018-11-13 15:17:30 +1030266
267XFAIL_TESTS += \
Andrew Jeffery7a85d222018-11-13 17:15:18 +1030268 %reldir%/write_toc
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030269endif