1TEST_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/mboxd_msg.cpp \ 15 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 = \ 39 $(TEST_MBOX_VPNOR_INTEG_SRCS) \ 40 mtd.c \ 41 %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 = \ 46 $(TEST_MBOX_VPNOR_INTEG_SRCS) \ 47 mtd.c \ 48 %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 = \ 53 $(TEST_MBOX_VPNOR_INTEG_SRCS) \ 54 mtd.c \ 55 %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 = \ 60 $(TEST_MBOX_VPNOR_INTEG_SRCS) \ 61 mtd.c \ 62 %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 = \ 172 $(TEST_MBOX_VPNOR_INTEG_SRCS) \ 173 mtd.c \ 174 %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 220if VIRTUAL_PNOR_ENABLED 221check_PROGRAMS += \ 222 %reldir%/create_pnor_partition_table \ 223 %reldir%/create_read_window_partition_exists \ 224 %reldir%/write_prsv \ 225 %reldir%/write_ro \ 226 %reldir%/write_rw \ 227 %reldir%/write_patch \ 228 %reldir%/toc_no_name \ 229 %reldir%/toc_start_gt_end \ 230 %reldir%/toc_no_start \ 231 %reldir%/toc_no_end \ 232 %reldir%/toc_no_version \ 233 %reldir%/toc_flags \ 234 %reldir%/toc_overlap \ 235 %reldir%/toc_lookup_found \ 236 %reldir%/toc_lookup_failed \ 237 %reldir%/toc_missing_file \ 238 %reldir%/create_read_window_oob \ 239 %reldir%/create_read_window_toc \ 240 %reldir%/create_read_window_straddle_partitions \ 241 %reldir%/create_read_window_partition_invalid \ 242 %reldir%/read_patch \ 243 %reldir%/write_patch_resize \ 244 %reldir%/dump_flash \ 245 %reldir%/create_read_window_size \ 246 %reldir%/create_read_window_remap \ 247 %reldir%/create_write_window_ro_partition \ 248 %reldir%/create_write_window_rw_partition \ 249 %reldir%/create_write_window_unmapped 250 251XFAIL_TESTS += %reldir%/create_write_window_ro_partition 252XFAIL_TESTS += %reldir%/create_write_window_unmapped 253endif 254