blob: 0e6e0306717043beac27cb221903099db64bd66b [file] [log] [blame]
Andrew Jeffery53c21aa2018-03-26 11:56:16 +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 \
8 mboxd_msg.c \
9 mboxd_windows.c \
10 mboxd_lpc.c \
11 vpnor/mboxd_lpc_reset.cpp \
12 vpnor/mboxd_pnor_partition_table.cpp \
13 vpnor/mboxd_flash.cpp \
14 vpnor/pnor_partition.cpp \
15 vpnor/pnor_partition_table.cpp \
16 %reldir%/tmpd.cpp
Andrew Jeffery85985912018-02-22 10:20:31 +103017
Andrew Jefferya6582532018-02-22 16:04:37 +103018VPNOR_LDADD = -lstdc++fs \
19 $(SDBUSPLUS_LIBS) \
20 $(PHOSPHOR_LOGGING_LIBS) \
21 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
22
Andrew Jeffery85985912018-02-22 10:20:31 +103023test_vpnor_create_pnor_partition_table_SOURCES = \
Andrew Jeffery742a1f62018-03-02 09:26:03 +103024 $(TEST_MOCK_SRCS) \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103025 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery85985912018-02-22 10:20:31 +103026 %reldir%/create_pnor_partition_table.cpp
27test_vpnor_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
Andrew Jefferya6582532018-02-22 16:04:37 +103028test_vpnor_create_pnor_partition_table_LDADD = $(VPNOR_LDADD)
Andrew Jeffery85985912018-02-22 10:20:31 +103029
Andrew Jefferyde90fdc2018-02-23 15:59:46 +103030test_vpnor_create_read_window_partition_exists_SOURCES = \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103031 $(TEST_MOCK_SRCS) \
32 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jefferyde90fdc2018-02-23 15:59:46 +103033 %reldir%/create_read_window_partition_exists.cpp
34test_vpnor_create_read_window_partition_exists_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
35test_vpnor_create_read_window_partition_exists_LDADD = $(VPNOR_LDADD)
Andrew Jeffery85985912018-02-22 10:20:31 +103036
Andrew Jeffery733cbe62018-02-22 22:10:16 +103037test_vpnor_write_patch_SOURCES = \
Andrew Jeffery85985912018-02-22 10:20:31 +103038 $(TEST_MBOX_VPNOR_SRCS) \
Andrew Jeffery85985912018-02-22 10:20:31 +103039 mtd.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103040 vpnor/mboxd_pnor_partition_table.cpp \
41 vpnor/mboxd_flash.cpp \
42 vpnor/pnor_partition.cpp \
Andrew Jeffery733cbe62018-02-22 22:10:16 +103043 %reldir%/write_patch.cpp
44test_vpnor_write_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
45test_vpnor_write_patch_LDADD = $(VPNOR_LDADD)
Andrew Jeffery85985912018-02-22 10:20:31 +103046
Andrew Jefferyad341a22018-02-22 17:13:15 +103047test_vpnor_write_prsv_SOURCES = \
48 $(TEST_MBOX_VPNOR_SRCS) \
Andrew Jefferyad341a22018-02-22 17:13:15 +103049 mtd.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103050 vpnor/mboxd_pnor_partition_table.cpp \
51 vpnor/mboxd_flash.cpp \
52 vpnor/pnor_partition.cpp \
Andrew Jefferyad341a22018-02-22 17:13:15 +103053 %reldir%/write_prsv.cpp
54test_vpnor_write_prsv_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
55test_vpnor_write_prsv_LDADD = $(VPNOR_LDADD)
56
Andrew Jefferyf050fcf2018-02-22 17:35:34 +103057test_vpnor_write_ro_SOURCES = \
58 $(TEST_MBOX_VPNOR_SRCS) \
Andrew Jefferyf050fcf2018-02-22 17:35:34 +103059 mtd.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103060 vpnor/mboxd_pnor_partition_table.cpp \
61 vpnor/mboxd_flash.cpp \
62 vpnor/pnor_partition.cpp \
Andrew Jefferyf050fcf2018-02-22 17:35:34 +103063 %reldir%/write_ro.cpp
64test_vpnor_write_ro_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
65test_vpnor_write_ro_LDADD = $(VPNOR_LDADD)
66
Andrew Jeffery24f44592018-02-22 17:51:59 +103067test_vpnor_write_rw_SOURCES = \
68 $(TEST_MBOX_VPNOR_SRCS) \
Andrew Jeffery24f44592018-02-22 17:51:59 +103069 mtd.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103070 vpnor/mboxd_pnor_partition_table.cpp \
71 vpnor/mboxd_flash.cpp \
72 vpnor/pnor_partition.cpp \
Andrew Jeffery24f44592018-02-22 17:51:59 +103073 %reldir%/write_rw.cpp
74test_vpnor_write_rw_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
75test_vpnor_write_rw_LDADD = $(VPNOR_LDADD)
76
Andrew Jefferyb02ef432018-02-26 09:57:17 +103077test_vpnor_toc_no_name_SOURCES = \
78 common.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103079 vpnor/pnor_partition_table.cpp \
Andrew Jefferyb02ef432018-02-26 09:57:17 +103080 %reldir%/toc_no_name.cpp
81test_vpnor_toc_no_name_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
82test_vpnor_toc_no_name_LDADD = $(VPNOR_LDADD)
83
Andrew Jeffery17bbf452018-02-26 09:57:56 +103084test_vpnor_toc_start_gt_end_SOURCES = \
85 common.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103086 vpnor/pnor_partition_table.cpp \
Andrew Jeffery17bbf452018-02-26 09:57:56 +103087 %reldir%/toc_start_gt_end.cpp
88test_vpnor_toc_start_gt_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
89test_vpnor_toc_start_gt_end_LDADD = $(VPNOR_LDADD)
90
Andrew Jeffery437c80f2018-02-26 09:59:51 +103091test_vpnor_toc_no_start_SOURCES = \
92 common.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103093 vpnor/pnor_partition_table.cpp \
Andrew Jeffery437c80f2018-02-26 09:59:51 +103094 %reldir%/toc_no_start.cpp
95test_vpnor_toc_no_start_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
96test_vpnor_toc_no_start_LDADD = $(VPNOR_LDADD)
97
Andrew Jeffery50ab1de2018-02-26 10:02:39 +103098test_vpnor_toc_no_end_SOURCES = \
99 common.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030100 vpnor/pnor_partition_table.cpp \
Andrew Jeffery50ab1de2018-02-26 10:02:39 +1030101 %reldir%/toc_no_end.cpp
102test_vpnor_toc_no_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
103test_vpnor_toc_no_end_LDADD = $(VPNOR_LDADD)
104
Andrew Jefferya11a3b02018-02-26 10:13:37 +1030105test_vpnor_toc_no_version_SOURCES = \
106 common.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030107 vpnor/pnor_partition_table.cpp \
Andrew Jefferya11a3b02018-02-26 10:13:37 +1030108 %reldir%/toc_no_version.cpp
109test_vpnor_toc_no_version_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
110test_vpnor_toc_no_version_LDADD = $(VPNOR_LDADD)
111
Andrew Jeffery9b25b592018-02-26 12:01:24 +1030112test_vpnor_toc_flags_SOURCES = \
113 common.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030114 vpnor/pnor_partition_table.cpp \
Andrew Jeffery9b25b592018-02-26 12:01:24 +1030115 %reldir%/toc_flags.cpp
116test_vpnor_toc_flags_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
117test_vpnor_toc_flags_LDADD = $(VPNOR_LDADD)
118
Andrew Jefferyf5a51382018-02-27 16:17:53 +1030119test_vpnor_toc_overlap_SOURCES = \
120 $(TEST_MOCK_SRCS) \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030121 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jefferyf5a51382018-02-27 16:17:53 +1030122 %reldir%/toc_overlap.cpp
123test_vpnor_toc_overlap_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
124test_vpnor_toc_overlap_LDADD = $(VPNOR_LDADD)
125
Andrew Jefferya138f562018-02-27 16:58:02 +1030126test_vpnor_toc_lookup_found_SOURCES = \
127 $(TEST_MOCK_SRCS) \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030128 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jefferya138f562018-02-27 16:58:02 +1030129 %reldir%/toc_lookup_found.cpp
130test_vpnor_toc_lookup_found_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
131test_vpnor_toc_lookup_found_LDADD = $(VPNOR_LDADD)
132
Andrew Jeffery3376dac2018-02-27 17:03:08 +1030133test_vpnor_toc_lookup_failed_SOURCES = \
134 $(TEST_MOCK_SRCS) \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030135 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery3376dac2018-02-27 17:03:08 +1030136 %reldir%/toc_lookup_failed.cpp
137test_vpnor_toc_lookup_failed_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
138test_vpnor_toc_lookup_failed_LDADD = $(VPNOR_LDADD)
139
Andrew Jefferybfe6f802018-02-27 17:11:17 +1030140test_vpnor_toc_missing_file_SOURCES = \
141 $(TEST_MOCK_SRCS) \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030142 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jefferybfe6f802018-02-27 17:11:17 +1030143 %reldir%/toc_missing_file.cpp
144test_vpnor_toc_missing_file_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
145test_vpnor_toc_missing_file_LDADD = $(VPNOR_LDADD)
146
Andrew Jeffery3c9bb3e2018-02-23 18:16:50 +1030147test_vpnor_create_read_window_oob_SOURCES = \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030148 $(TEST_MOCK_SRCS) \
149 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery3c9bb3e2018-02-23 18:16:50 +1030150 %reldir%/create_read_window_oob.cpp
151test_vpnor_create_read_window_oob_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
152test_vpnor_create_read_window_oob_LDADD = $(VPNOR_LDADD)
153
Andrew Jeffery7eed6de2018-03-01 12:11:23 +1030154test_vpnor_create_read_window_toc_SOURCES = \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030155 $(TEST_MOCK_SRCS) \
156 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery7eed6de2018-03-01 12:11:23 +1030157 %reldir%/create_read_window_toc.cpp
158test_vpnor_create_read_window_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
159test_vpnor_create_read_window_toc_LDADD = $(VPNOR_LDADD)
160
Andrew Jeffery2b73f172018-03-01 13:06:29 +1030161test_vpnor_create_read_window_straddle_partitions_SOURCES = \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030162 $(TEST_MOCK_SRCS) \
163 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery2b73f172018-03-01 13:06:29 +1030164 %reldir%/create_read_window_straddle_partitions.cpp
165test_vpnor_create_read_window_straddle_partitions_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
166test_vpnor_create_read_window_straddle_partitions_LDADD = $(VPNOR_LDADD)
167
Andrew Jeffery730e3b02018-02-23 18:09:22 +1030168test_vpnor_create_read_window_partition_invalid_SOURCES = \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030169 $(TEST_MOCK_SRCS) \
170 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery730e3b02018-02-23 18:09:22 +1030171 %reldir%/create_read_window_partition_invalid.cpp
172test_vpnor_create_read_window_partition_invalid_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
173test_vpnor_create_read_window_partition_invalid_LDADD = $(VPNOR_LDADD)
174
Andrew Jeffery5bfc9862018-03-02 09:13:31 +1030175test_vpnor_read_patch_SOURCES = \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030176 $(TEST_MOCK_SRCS) \
177 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery5bfc9862018-03-02 09:13:31 +1030178 %reldir%/read_patch.cpp
179test_vpnor_read_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
180test_vpnor_read_patch_LDADD = $(VPNOR_LDADD)
181
Andrew Jefferye9493ad2018-03-28 14:04:34 +1030182test_vpnor_write_patch_resize_SOURCES = \
183 $(TEST_MBOX_VPNOR_SRCS) \
Andrew Jefferye9493ad2018-03-28 14:04:34 +1030184 mtd.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030185 vpnor/mboxd_pnor_partition_table.cpp \
186 vpnor/mboxd_flash.cpp \
187 vpnor/pnor_partition.cpp \
Andrew Jefferye9493ad2018-03-28 14:04:34 +1030188 %reldir%/write_patch_resize.cpp
189test_vpnor_write_patch_resize_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
190test_vpnor_write_patch_resize_LDADD = $(VPNOR_LDADD)
191
Andrew Jeffery3dce83d2018-03-22 16:52:42 +1030192test_vpnor_dump_flash_SOURCES = \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030193 $(TEST_MOCK_SRCS) \
194 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery3dce83d2018-03-22 16:52:42 +1030195 %reldir%/dump_flash.cpp
196test_vpnor_dump_flash_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
197test_vpnor_dump_flash_LDADD = $(VPNOR_LDADD)
198
Andrew Jeffery929b4212018-03-23 16:13:29 +1030199test_vpnor_create_read_window_size_SOURCES = \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030200 $(TEST_MOCK_SRCS) \
201 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery929b4212018-03-23 16:13:29 +1030202 %reldir%/create_read_window_size.cpp
203test_vpnor_create_read_window_size_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
204test_vpnor_create_read_window_size_LDADD = $(VPNOR_LDADD)
205
Andrew Jeffery912c9bd2018-03-23 13:31:46 +1030206test_vpnor_create_read_window_remap_SOURCES = \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030207 $(TEST_MOCK_SRCS) \
208 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery912c9bd2018-03-23 13:31:46 +1030209 %reldir%/create_read_window_remap.cpp
210test_vpnor_create_read_window_remap_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
211test_vpnor_create_read_window_remap_LDADD = $(VPNOR_LDADD)
212
Andrew Jeffery7c5a1092018-03-26 11:16:05 +1030213test_vpnor_create_write_window_ro_partition_SOURCES = \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030214 $(TEST_MOCK_SRCS) \
215 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery7c5a1092018-03-26 11:16:05 +1030216 %reldir%/create_write_window_ro_partition.cpp
217test_vpnor_create_write_window_ro_partition_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
218test_vpnor_create_write_window_ro_partition_LDADD = $(VPNOR_LDADD)
219
Andrew Jefferye32f2c12018-03-26 17:09:12 +1030220test_vpnor_create_write_window_rw_partition_SOURCES = \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030221 $(TEST_MOCK_SRCS) \
222 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jefferye32f2c12018-03-26 17:09:12 +1030223 %reldir%/create_write_window_rw_partition.cpp
224test_vpnor_create_write_window_rw_partition_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
225test_vpnor_create_write_window_rw_partition_LDADD = $(VPNOR_LDADD)
226
Andrew Jeffery8b910232018-03-29 10:41:41 +1030227test_vpnor_create_write_window_unmapped_SOURCES = \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +1030228 $(TEST_MOCK_SRCS) \
229 $(TEST_MBOX_VPNOR_INTEG_SRCS) \
Andrew Jeffery8b910232018-03-29 10:41:41 +1030230 %reldir%/create_write_window_unmapped.cpp
231test_vpnor_create_write_window_unmapped_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
232test_vpnor_create_write_window_unmapped_LDADD = $(VPNOR_LDADD)
233
Andrew Jeffery85985912018-02-22 10:20:31 +1030234if VIRTUAL_PNOR_ENABLED
235check_PROGRAMS += \
236 %reldir%/create_pnor_partition_table \
Andrew Jefferyde90fdc2018-02-23 15:59:46 +1030237 %reldir%/create_read_window_partition_exists \
Andrew Jefferyf050fcf2018-02-22 17:35:34 +1030238 %reldir%/write_prsv \
Andrew Jeffery24f44592018-02-22 17:51:59 +1030239 %reldir%/write_ro \
Andrew Jeffery733cbe62018-02-22 22:10:16 +1030240 %reldir%/write_rw \
Andrew Jefferyb02ef432018-02-26 09:57:17 +1030241 %reldir%/write_patch \
Andrew Jeffery17bbf452018-02-26 09:57:56 +1030242 %reldir%/toc_no_name \
Andrew Jeffery437c80f2018-02-26 09:59:51 +1030243 %reldir%/toc_start_gt_end \
Andrew Jeffery50ab1de2018-02-26 10:02:39 +1030244 %reldir%/toc_no_start \
Andrew Jefferya11a3b02018-02-26 10:13:37 +1030245 %reldir%/toc_no_end \
Andrew Jeffery9b25b592018-02-26 12:01:24 +1030246 %reldir%/toc_no_version \
Andrew Jefferyf5a51382018-02-27 16:17:53 +1030247 %reldir%/toc_flags \
Andrew Jefferya138f562018-02-27 16:58:02 +1030248 %reldir%/toc_overlap \
Andrew Jeffery3376dac2018-02-27 17:03:08 +1030249 %reldir%/toc_lookup_found \
Andrew Jefferybfe6f802018-02-27 17:11:17 +1030250 %reldir%/toc_lookup_failed \
Andrew Jeffery3c9bb3e2018-02-23 18:16:50 +1030251 %reldir%/toc_missing_file \
Andrew Jeffery7eed6de2018-03-01 12:11:23 +1030252 %reldir%/create_read_window_oob \
Andrew Jeffery2b73f172018-03-01 13:06:29 +1030253 %reldir%/create_read_window_toc \
Andrew Jeffery730e3b02018-02-23 18:09:22 +1030254 %reldir%/create_read_window_straddle_partitions \
Andrew Jeffery5bfc9862018-03-02 09:13:31 +1030255 %reldir%/create_read_window_partition_invalid \
Andrew Jefferye9493ad2018-03-28 14:04:34 +1030256 %reldir%/read_patch \
Andrew Jeffery3dce83d2018-03-22 16:52:42 +1030257 %reldir%/write_patch_resize \
Andrew Jeffery929b4212018-03-23 16:13:29 +1030258 %reldir%/dump_flash \
Andrew Jeffery912c9bd2018-03-23 13:31:46 +1030259 %reldir%/create_read_window_size \
Andrew Jeffery7c5a1092018-03-26 11:16:05 +1030260 %reldir%/create_read_window_remap \
Andrew Jefferye32f2c12018-03-26 17:09:12 +1030261 %reldir%/create_write_window_ro_partition \
Andrew Jeffery8b910232018-03-29 10:41:41 +1030262 %reldir%/create_write_window_rw_partition \
263 %reldir%/create_write_window_unmapped
Andrew Jeffery7c5a1092018-03-26 11:16:05 +1030264
265XFAIL_TESTS += %reldir%/create_write_window_ro_partition
Andrew Jeffery8b910232018-03-29 10:41:41 +1030266XFAIL_TESTS += %reldir%/create_write_window_unmapped
Andrew Jeffery85985912018-02-22 10:20:31 +1030267endif