blob: 71a15179967841d97039784635ca82b58772dd99 [file] [log] [blame]
Evan Lojewskif1e547c2019-03-14 14:34:33 +10301TEST_MOCK_VPNOR_SRCS = $(TEST_MOCK_CORE)
Andrew Jeffery30bcf842018-03-26 12:13:20 +10302
3TEST_MBOX_VPNOR_INTEG_SRCS = \
4 common.c \
Andrew Jeffery1e531af2018-08-07 13:32:57 +09305 protocol.c \
Andrew Jeffery457a6e52018-08-08 11:21:08 +09306 transport_mbox.c \
Andrew Jefferyf593b1b2018-08-08 11:01:04 +09307 windows.c \
Andrew Jefferycd186112018-08-08 10:47:55 +09308 lpc.c \
Evan Lojewskif1e547c2019-03-14 14:34:33 +10309 vpnor/backend.cpp \
Andrew Jefferyfb01e142019-03-18 13:17:08 +103010 vpnor/partition.cpp \
Andrew Jefferyde08ca22019-03-18 13:23:46 +103011 vpnor/table.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103012 %reldir%/tmpd.cpp
13
14VPNOR_LDADD = -lstdc++fs \
15 $(SDBUSPLUS_LIBS) \
16 $(PHOSPHOR_LOGGING_LIBS) \
17 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
18
Alvin Wang8cef63e2019-10-15 23:23:38 +080019
20vpnor_test_create_aligned_window_SOURCES = \
21 $(TEST_MOCK_VPNOR_SRCS) \
22 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
23 %reldir%/create_aligned_window.cpp
24vpnor_test_create_aligned_window_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
25vpnor_test_create_aligned_window_LDADD = $(VPNOR_LDADD)
26
Andrew Jeffery30bcf842018-03-26 12:13:20 +103027vpnor_test_create_pnor_partition_table_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +103028 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103029 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
30 %reldir%/create_pnor_partition_table.cpp
31vpnor_test_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
32vpnor_test_create_pnor_partition_table_LDADD = $(VPNOR_LDADD)
33
34vpnor_test_create_read_window_partition_exists_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +103035 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103036 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
37 %reldir%/create_read_window_partition_exists.cpp
38vpnor_test_create_read_window_partition_exists_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
39vpnor_test_create_read_window_partition_exists_LDADD = $(VPNOR_LDADD)
40
41vpnor_test_write_patch_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +103042 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103043 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103044 %reldir%/write_patch.cpp
45vpnor_test_write_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
46vpnor_test_write_patch_LDADD = $(VPNOR_LDADD)
47
48vpnor_test_write_prsv_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +103049 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103050 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103051 %reldir%/write_prsv.cpp
52vpnor_test_write_prsv_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
53vpnor_test_write_prsv_LDADD = $(VPNOR_LDADD)
54
55vpnor_test_write_ro_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +103056 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103057 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103058 %reldir%/write_ro.cpp
59vpnor_test_write_ro_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
60vpnor_test_write_ro_LDADD = $(VPNOR_LDADD)
61
62vpnor_test_write_rw_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +103063 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103064 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103065 %reldir%/write_rw.cpp
66vpnor_test_write_rw_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
67vpnor_test_write_rw_LDADD = $(VPNOR_LDADD)
68
69vpnor_test_toc_no_name_SOURCES = \
70 common.c \
Andrew Jefferyde08ca22019-03-18 13:23:46 +103071 vpnor/table.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103072 %reldir%/toc_no_name.cpp
73vpnor_test_toc_no_name_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
74vpnor_test_toc_no_name_LDADD = $(VPNOR_LDADD)
75
76vpnor_test_toc_start_gt_end_SOURCES = \
77 common.c \
Andrew Jefferyde08ca22019-03-18 13:23:46 +103078 vpnor/table.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103079 %reldir%/toc_start_gt_end.cpp
80vpnor_test_toc_start_gt_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
81vpnor_test_toc_start_gt_end_LDADD = $(VPNOR_LDADD)
82
83vpnor_test_toc_no_start_SOURCES = \
84 common.c \
Andrew Jefferyde08ca22019-03-18 13:23:46 +103085 vpnor/table.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103086 %reldir%/toc_no_start.cpp
87vpnor_test_toc_no_start_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
88vpnor_test_toc_no_start_LDADD = $(VPNOR_LDADD)
89
90vpnor_test_toc_no_end_SOURCES = \
91 common.c \
Andrew Jefferyde08ca22019-03-18 13:23:46 +103092 vpnor/table.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103093 %reldir%/toc_no_end.cpp
94vpnor_test_toc_no_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
95vpnor_test_toc_no_end_LDADD = $(VPNOR_LDADD)
96
97vpnor_test_toc_no_version_SOURCES = \
98 common.c \
Andrew Jefferyde08ca22019-03-18 13:23:46 +103099 vpnor/table.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030100 %reldir%/toc_no_version.cpp
101vpnor_test_toc_no_version_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
102vpnor_test_toc_no_version_LDADD = $(VPNOR_LDADD)
103
104vpnor_test_toc_flags_SOURCES = \
105 common.c \
Andrew Jefferyde08ca22019-03-18 13:23:46 +1030106 vpnor/table.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030107 %reldir%/toc_flags.cpp
108vpnor_test_toc_flags_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
109vpnor_test_toc_flags_LDADD = $(VPNOR_LDADD)
110
111vpnor_test_toc_overlap_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030112 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030113 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
114 %reldir%/toc_overlap.cpp
115vpnor_test_toc_overlap_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
116vpnor_test_toc_overlap_LDADD = $(VPNOR_LDADD)
117
118vpnor_test_toc_lookup_found_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030119 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030120 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
121 %reldir%/toc_lookup_found.cpp
122vpnor_test_toc_lookup_found_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
123vpnor_test_toc_lookup_found_LDADD = $(VPNOR_LDADD)
124
125vpnor_test_toc_lookup_failed_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030126 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030127 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
128 %reldir%/toc_lookup_failed.cpp
129vpnor_test_toc_lookup_failed_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
130vpnor_test_toc_lookup_failed_LDADD = $(VPNOR_LDADD)
131
132vpnor_test_toc_missing_file_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030133 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030134 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
135 %reldir%/toc_missing_file.cpp
136vpnor_test_toc_missing_file_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
137vpnor_test_toc_missing_file_LDADD = $(VPNOR_LDADD)
138
139vpnor_test_create_read_window_oob_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030140 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030141 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
142 %reldir%/create_read_window_oob.cpp
143vpnor_test_create_read_window_oob_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
144vpnor_test_create_read_window_oob_LDADD = $(VPNOR_LDADD)
145
146vpnor_test_create_read_window_toc_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030147 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030148 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
149 %reldir%/create_read_window_toc.cpp
150vpnor_test_create_read_window_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
151vpnor_test_create_read_window_toc_LDADD = $(VPNOR_LDADD)
152
153vpnor_test_create_read_window_straddle_partitions_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030154 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030155 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
156 %reldir%/create_read_window_straddle_partitions.cpp
157vpnor_test_create_read_window_straddle_partitions_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
158vpnor_test_create_read_window_straddle_partitions_LDADD = $(VPNOR_LDADD)
159
160vpnor_test_create_read_window_partition_invalid_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030161 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030162 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
163 %reldir%/create_read_window_partition_invalid.cpp
164vpnor_test_create_read_window_partition_invalid_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
165vpnor_test_create_read_window_partition_invalid_LDADD = $(VPNOR_LDADD)
166
167vpnor_test_read_patch_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030168 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030169 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
170 %reldir%/read_patch.cpp
171vpnor_test_read_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
172vpnor_test_read_patch_LDADD = $(VPNOR_LDADD)
173
174vpnor_test_write_patch_resize_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +1030175 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030176 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030177 %reldir%/write_patch_resize.cpp
178vpnor_test_write_patch_resize_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
179vpnor_test_write_patch_resize_LDADD = $(VPNOR_LDADD)
180
181vpnor_test_dump_flash_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030182 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030183 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
184 %reldir%/dump_flash.cpp
185vpnor_test_dump_flash_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
186vpnor_test_dump_flash_LDADD = $(VPNOR_LDADD)
187
188vpnor_test_create_read_window_size_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030189 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030190 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
191 %reldir%/create_read_window_size.cpp
192vpnor_test_create_read_window_size_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
193vpnor_test_create_read_window_size_LDADD = $(VPNOR_LDADD)
194
195vpnor_test_create_read_window_remap_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030196 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030197 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
198 %reldir%/create_read_window_remap.cpp
199vpnor_test_create_read_window_remap_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
200vpnor_test_create_read_window_remap_LDADD = $(VPNOR_LDADD)
201
202vpnor_test_create_write_window_ro_partition_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030203 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030204 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
205 %reldir%/create_write_window_ro_partition.cpp
206vpnor_test_create_write_window_ro_partition_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
207vpnor_test_create_write_window_ro_partition_LDADD = $(VPNOR_LDADD)
208
209vpnor_test_create_write_window_rw_partition_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030210 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030211 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
212 %reldir%/create_write_window_rw_partition.cpp
213vpnor_test_create_write_window_rw_partition_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
214vpnor_test_create_write_window_rw_partition_LDADD = $(VPNOR_LDADD)
215
216vpnor_test_create_write_window_unmapped_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030217 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030218 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
219 %reldir%/create_write_window_unmapped.cpp
220vpnor_test_create_write_window_unmapped_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
221vpnor_test_create_write_window_unmapped_LDADD = $(VPNOR_LDADD)
222
Andrew Jeffery89985752018-11-13 15:17:30 +1030223vpnor_test_write_toc_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030224 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery89985752018-11-13 15:17:30 +1030225 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
226 %reldir%/write_toc.cpp
227vpnor_test_write_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
228vpnor_test_write_toc_LDADD = $(VPNOR_LDADD)
229
Andrew Jeffery8a0efd52018-11-13 17:13:08 +1030230vpnor_test_force_readonly_toc_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030231 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery8a0efd52018-11-13 17:13:08 +1030232 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
233 %reldir%/force_readonly_toc.cpp
234vpnor_test_force_readonly_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
235vpnor_test_force_readonly_toc_LDADD = $(VPNOR_LDADD)
236
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030237check_PROGRAMS += \
Alvin Wang8cef63e2019-10-15 23:23:38 +0800238 %reldir%/create_aligned_window \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030239 %reldir%/create_pnor_partition_table \
240 %reldir%/create_read_window_partition_exists \
241 %reldir%/write_prsv \
242 %reldir%/write_ro \
243 %reldir%/write_rw \
244 %reldir%/write_patch \
245 %reldir%/toc_no_name \
246 %reldir%/toc_start_gt_end \
247 %reldir%/toc_no_start \
248 %reldir%/toc_no_end \
249 %reldir%/toc_no_version \
250 %reldir%/toc_flags \
251 %reldir%/toc_overlap \
252 %reldir%/toc_lookup_found \
253 %reldir%/toc_lookup_failed \
254 %reldir%/toc_missing_file \
255 %reldir%/create_read_window_oob \
256 %reldir%/create_read_window_toc \
257 %reldir%/create_read_window_straddle_partitions \
258 %reldir%/create_read_window_partition_invalid \
259 %reldir%/read_patch \
260 %reldir%/write_patch_resize \
261 %reldir%/dump_flash \
262 %reldir%/create_read_window_size \
263 %reldir%/create_read_window_remap \
264 %reldir%/create_write_window_ro_partition \
265 %reldir%/create_write_window_rw_partition \
Andrew Jeffery89985752018-11-13 15:17:30 +1030266 %reldir%/create_write_window_unmapped \
Andrew Jeffery8a0efd52018-11-13 17:13:08 +1030267 %reldir%/write_toc \
268 %reldir%/force_readonly_toc
Andrew Jeffery89985752018-11-13 15:17:30 +1030269
270XFAIL_TESTS += \
Andrew Jeffery7a85d222018-11-13 17:15:18 +1030271 %reldir%/write_toc
Alvin Wang8cef63e2019-10-15 23:23:38 +0800272
273