1TEST_MOCK_VPNOR_SRCS = $(TEST_MOCK_CORE) 2 3TEST_MBOX_VPNOR_INTEG_SRCS = \ 4 common.c \ 5 protocol.c \ 6 transport_mbox.c \ 7 windows.c \ 8 lpc.c \ 9 vpnor/backend.cpp \ 10 vpnor/partition.cpp \ 11 vpnor/table.cpp \ 12 %reldir%/tmpd.cpp 13 14VPNOR_LDADD = \ 15 $(SDBUSPLUS_LIBS) \ 16 $(PHOSPHOR_LOGGING_LIBS) \ 17 $(PHOSPHOR_DBUS_INTERFACES_LIBS) 18 19 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 27vpnor_test_create_pnor_partition_table_SOURCES = \ 28 $(TEST_MOCK_VPNOR_SRCS) \ 29 $(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 = \ 35 $(TEST_MOCK_VPNOR_SRCS) \ 36 $(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 = \ 42 $(TEST_MBOX_VPNOR_INTEG_SRCS) \ 43 mtd.c \ 44 %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 = \ 49 $(TEST_MBOX_VPNOR_INTEG_SRCS) \ 50 mtd.c \ 51 %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 = \ 56 $(TEST_MBOX_VPNOR_INTEG_SRCS) \ 57 mtd.c \ 58 %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 = \ 63 $(TEST_MBOX_VPNOR_INTEG_SRCS) \ 64 mtd.c \ 65 %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 \ 71 vpnor/table.cpp \ 72 %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 \ 78 vpnor/table.cpp \ 79 %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 \ 85 vpnor/table.cpp \ 86 %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 \ 92 vpnor/table.cpp \ 93 %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 \ 99 vpnor/table.cpp \ 100 %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 \ 106 vpnor/table.cpp \ 107 %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 = \ 112 $(TEST_MOCK_VPNOR_SRCS) \ 113 $(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 = \ 119 $(TEST_MOCK_VPNOR_SRCS) \ 120 $(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 = \ 126 $(TEST_MOCK_VPNOR_SRCS) \ 127 $(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 = \ 133 $(TEST_MOCK_VPNOR_SRCS) \ 134 $(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 = \ 140 $(TEST_MOCK_VPNOR_SRCS) \ 141 $(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 = \ 147 $(TEST_MOCK_VPNOR_SRCS) \ 148 $(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 = \ 154 $(TEST_MOCK_VPNOR_SRCS) \ 155 $(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 = \ 161 $(TEST_MOCK_VPNOR_SRCS) \ 162 $(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 = \ 168 $(TEST_MOCK_VPNOR_SRCS) \ 169 $(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 = \ 175 $(TEST_MBOX_VPNOR_INTEG_SRCS) \ 176 mtd.c \ 177 %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 = \ 182 $(TEST_MOCK_VPNOR_SRCS) \ 183 $(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 = \ 189 $(TEST_MOCK_VPNOR_SRCS) \ 190 $(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 = \ 196 $(TEST_MOCK_VPNOR_SRCS) \ 197 $(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 = \ 203 $(TEST_MOCK_VPNOR_SRCS) \ 204 $(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 = \ 210 $(TEST_MOCK_VPNOR_SRCS) \ 211 $(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 = \ 217 $(TEST_MOCK_VPNOR_SRCS) \ 218 $(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 223vpnor_test_write_toc_SOURCES = \ 224 $(TEST_MOCK_VPNOR_SRCS) \ 225 $(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 230vpnor_test_force_readonly_toc_SOURCES = \ 231 $(TEST_MOCK_VPNOR_SRCS) \ 232 $(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 237check_PROGRAMS += \ 238 %reldir%/create_aligned_window \ 239 %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 \ 266 %reldir%/create_write_window_unmapped \ 267 %reldir%/write_toc \ 268 %reldir%/force_readonly_toc 269 270XFAIL_TESTS += \ 271 %reldir%/write_toc 272 273 274