blob: 3e2edaae9caaabc810367ea877ad4515c596eb9b [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
19vpnor_test_create_pnor_partition_table_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +103020 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103021 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
22 %reldir%/create_pnor_partition_table.cpp
23vpnor_test_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
24vpnor_test_create_pnor_partition_table_LDADD = $(VPNOR_LDADD)
25
26vpnor_test_create_read_window_partition_exists_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +103027 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103028 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
29 %reldir%/create_read_window_partition_exists.cpp
30vpnor_test_create_read_window_partition_exists_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
31vpnor_test_create_read_window_partition_exists_LDADD = $(VPNOR_LDADD)
32
33vpnor_test_write_patch_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +103034 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103035 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103036 %reldir%/write_patch.cpp
37vpnor_test_write_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
38vpnor_test_write_patch_LDADD = $(VPNOR_LDADD)
39
40vpnor_test_write_prsv_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_prsv.cpp
44vpnor_test_write_prsv_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
45vpnor_test_write_prsv_LDADD = $(VPNOR_LDADD)
46
47vpnor_test_write_ro_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_ro.cpp
51vpnor_test_write_ro_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
52vpnor_test_write_ro_LDADD = $(VPNOR_LDADD)
53
54vpnor_test_write_rw_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_rw.cpp
58vpnor_test_write_rw_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
59vpnor_test_write_rw_LDADD = $(VPNOR_LDADD)
60
61vpnor_test_toc_no_name_SOURCES = \
62 common.c \
Andrew Jefferyde08ca22019-03-18 13:23:46 +103063 vpnor/table.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103064 %reldir%/toc_no_name.cpp
65vpnor_test_toc_no_name_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
66vpnor_test_toc_no_name_LDADD = $(VPNOR_LDADD)
67
68vpnor_test_toc_start_gt_end_SOURCES = \
69 common.c \
Andrew Jefferyde08ca22019-03-18 13:23:46 +103070 vpnor/table.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103071 %reldir%/toc_start_gt_end.cpp
72vpnor_test_toc_start_gt_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
73vpnor_test_toc_start_gt_end_LDADD = $(VPNOR_LDADD)
74
75vpnor_test_toc_no_start_SOURCES = \
76 common.c \
Andrew Jefferyde08ca22019-03-18 13:23:46 +103077 vpnor/table.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103078 %reldir%/toc_no_start.cpp
79vpnor_test_toc_no_start_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
80vpnor_test_toc_no_start_LDADD = $(VPNOR_LDADD)
81
82vpnor_test_toc_no_end_SOURCES = \
83 common.c \
Andrew Jefferyde08ca22019-03-18 13:23:46 +103084 vpnor/table.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103085 %reldir%/toc_no_end.cpp
86vpnor_test_toc_no_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
87vpnor_test_toc_no_end_LDADD = $(VPNOR_LDADD)
88
89vpnor_test_toc_no_version_SOURCES = \
90 common.c \
Andrew Jefferyde08ca22019-03-18 13:23:46 +103091 vpnor/table.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103092 %reldir%/toc_no_version.cpp
93vpnor_test_toc_no_version_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
94vpnor_test_toc_no_version_LDADD = $(VPNOR_LDADD)
95
96vpnor_test_toc_flags_SOURCES = \
97 common.c \
Andrew Jefferyde08ca22019-03-18 13:23:46 +103098 vpnor/table.cpp \
Andrew Jeffery30bcf842018-03-26 12:13:20 +103099 %reldir%/toc_flags.cpp
100vpnor_test_toc_flags_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
101vpnor_test_toc_flags_LDADD = $(VPNOR_LDADD)
102
103vpnor_test_toc_overlap_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030104 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030105 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
106 %reldir%/toc_overlap.cpp
107vpnor_test_toc_overlap_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
108vpnor_test_toc_overlap_LDADD = $(VPNOR_LDADD)
109
110vpnor_test_toc_lookup_found_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030111 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030112 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
113 %reldir%/toc_lookup_found.cpp
114vpnor_test_toc_lookup_found_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
115vpnor_test_toc_lookup_found_LDADD = $(VPNOR_LDADD)
116
117vpnor_test_toc_lookup_failed_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030118 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030119 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
120 %reldir%/toc_lookup_failed.cpp
121vpnor_test_toc_lookup_failed_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
122vpnor_test_toc_lookup_failed_LDADD = $(VPNOR_LDADD)
123
124vpnor_test_toc_missing_file_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030125 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030126 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
127 %reldir%/toc_missing_file.cpp
128vpnor_test_toc_missing_file_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
129vpnor_test_toc_missing_file_LDADD = $(VPNOR_LDADD)
130
131vpnor_test_create_read_window_oob_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030132 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030133 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
134 %reldir%/create_read_window_oob.cpp
135vpnor_test_create_read_window_oob_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
136vpnor_test_create_read_window_oob_LDADD = $(VPNOR_LDADD)
137
138vpnor_test_create_read_window_toc_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030139 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030140 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
141 %reldir%/create_read_window_toc.cpp
142vpnor_test_create_read_window_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
143vpnor_test_create_read_window_toc_LDADD = $(VPNOR_LDADD)
144
145vpnor_test_create_read_window_straddle_partitions_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030146 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030147 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
148 %reldir%/create_read_window_straddle_partitions.cpp
149vpnor_test_create_read_window_straddle_partitions_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
150vpnor_test_create_read_window_straddle_partitions_LDADD = $(VPNOR_LDADD)
151
152vpnor_test_create_read_window_partition_invalid_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030153 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030154 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
155 %reldir%/create_read_window_partition_invalid.cpp
156vpnor_test_create_read_window_partition_invalid_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
157vpnor_test_create_read_window_partition_invalid_LDADD = $(VPNOR_LDADD)
158
159vpnor_test_read_patch_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030160 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030161 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
162 %reldir%/read_patch.cpp
163vpnor_test_read_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
164vpnor_test_read_patch_LDADD = $(VPNOR_LDADD)
165
166vpnor_test_write_patch_resize_SOURCES = \
Andrew Jeffery943aba02018-03-26 15:37:33 +1030167 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030168 mtd.c \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030169 %reldir%/write_patch_resize.cpp
170vpnor_test_write_patch_resize_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
171vpnor_test_write_patch_resize_LDADD = $(VPNOR_LDADD)
172
173vpnor_test_dump_flash_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030174 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030175 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
176 %reldir%/dump_flash.cpp
177vpnor_test_dump_flash_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
178vpnor_test_dump_flash_LDADD = $(VPNOR_LDADD)
179
180vpnor_test_create_read_window_size_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030181 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030182 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
183 %reldir%/create_read_window_size.cpp
184vpnor_test_create_read_window_size_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
185vpnor_test_create_read_window_size_LDADD = $(VPNOR_LDADD)
186
187vpnor_test_create_read_window_remap_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030188 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030189 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
190 %reldir%/create_read_window_remap.cpp
191vpnor_test_create_read_window_remap_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
192vpnor_test_create_read_window_remap_LDADD = $(VPNOR_LDADD)
193
194vpnor_test_create_write_window_ro_partition_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030195 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030196 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
197 %reldir%/create_write_window_ro_partition.cpp
198vpnor_test_create_write_window_ro_partition_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
199vpnor_test_create_write_window_ro_partition_LDADD = $(VPNOR_LDADD)
200
201vpnor_test_create_write_window_rw_partition_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030202 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030203 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
204 %reldir%/create_write_window_rw_partition.cpp
205vpnor_test_create_write_window_rw_partition_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
206vpnor_test_create_write_window_rw_partition_LDADD = $(VPNOR_LDADD)
207
208vpnor_test_create_write_window_unmapped_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030209 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030210 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
211 %reldir%/create_write_window_unmapped.cpp
212vpnor_test_create_write_window_unmapped_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
213vpnor_test_create_write_window_unmapped_LDADD = $(VPNOR_LDADD)
214
Andrew Jeffery89985752018-11-13 15:17:30 +1030215vpnor_test_write_toc_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030216 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery89985752018-11-13 15:17:30 +1030217 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
218 %reldir%/write_toc.cpp
219vpnor_test_write_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
220vpnor_test_write_toc_LDADD = $(VPNOR_LDADD)
221
Andrew Jeffery8a0efd52018-11-13 17:13:08 +1030222vpnor_test_force_readonly_toc_SOURCES = \
Evan Lojewskif1e547c2019-03-14 14:34:33 +1030223 $(TEST_MOCK_VPNOR_SRCS) \
Andrew Jeffery8a0efd52018-11-13 17:13:08 +1030224 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
225 %reldir%/force_readonly_toc.cpp
226vpnor_test_force_readonly_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
227vpnor_test_force_readonly_toc_LDADD = $(VPNOR_LDADD)
228
Andrew Jeffery30bcf842018-03-26 12:13:20 +1030229check_PROGRAMS += \
230 %reldir%/create_pnor_partition_table \
231 %reldir%/create_read_window_partition_exists \
232 %reldir%/write_prsv \
233 %reldir%/write_ro \
234 %reldir%/write_rw \
235 %reldir%/write_patch \
236 %reldir%/toc_no_name \
237 %reldir%/toc_start_gt_end \
238 %reldir%/toc_no_start \
239 %reldir%/toc_no_end \
240 %reldir%/toc_no_version \
241 %reldir%/toc_flags \
242 %reldir%/toc_overlap \
243 %reldir%/toc_lookup_found \
244 %reldir%/toc_lookup_failed \
245 %reldir%/toc_missing_file \
246 %reldir%/create_read_window_oob \
247 %reldir%/create_read_window_toc \
248 %reldir%/create_read_window_straddle_partitions \
249 %reldir%/create_read_window_partition_invalid \
250 %reldir%/read_patch \
251 %reldir%/write_patch_resize \
252 %reldir%/dump_flash \
253 %reldir%/create_read_window_size \
254 %reldir%/create_read_window_remap \
255 %reldir%/create_write_window_ro_partition \
256 %reldir%/create_write_window_rw_partition \
Andrew Jeffery89985752018-11-13 15:17:30 +1030257 %reldir%/create_write_window_unmapped \
Andrew Jeffery8a0efd52018-11-13 17:13:08 +1030258 %reldir%/write_toc \
259 %reldir%/force_readonly_toc
Andrew Jeffery89985752018-11-13 15:17:30 +1030260
261XFAIL_TESTS += \
Andrew Jeffery7a85d222018-11-13 17:15:18 +1030262 %reldir%/write_toc