Andrew Jeffery | 812923d | 2018-02-22 11:59:52 +1030 | [diff] [blame] | 1 | TEST_MBOX_VPNOR_SRCS = common.c pnor_partition_table.cpp \ |
| 2 | %reldir%/tmpd.cpp |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 3 | |
Andrew Jeffery | a658253 | 2018-02-22 16:04:37 +1030 | [diff] [blame] | 4 | VPNOR_LDADD = -lstdc++fs \ |
| 5 | $(SDBUSPLUS_LIBS) \ |
| 6 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 7 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 8 | |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 9 | test_vpnor_create_pnor_partition_table_SOURCES = \ |
| 10 | $(TEST_MBOX_VPNOR_SRCS) \ |
| 11 | %reldir%/create_pnor_partition_table.cpp |
| 12 | test_vpnor_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
Andrew Jeffery | a658253 | 2018-02-22 16:04:37 +1030 | [diff] [blame] | 13 | test_vpnor_create_pnor_partition_table_LDADD = $(VPNOR_LDADD) |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 14 | |
Andrew Jeffery | de90fdc | 2018-02-23 15:59:46 +1030 | [diff] [blame] | 15 | test_vpnor_create_read_window_partition_exists_SOURCES = \ |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 16 | $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \ |
| 17 | mboxd_msg.c \ |
| 18 | mboxd_windows.c \ |
| 19 | mboxd_lpc.c \ |
| 20 | mboxd_lpc_virtual.cpp \ |
| 21 | mboxd_pnor_partition_table.cpp \ |
| 22 | mboxd_flash_virtual.cpp \ |
| 23 | pnor_partition.cpp \ |
Andrew Jeffery | de90fdc | 2018-02-23 15:59:46 +1030 | [diff] [blame] | 24 | %reldir%/create_read_window_partition_exists.cpp |
| 25 | test_vpnor_create_read_window_partition_exists_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 26 | test_vpnor_create_read_window_partition_exists_LDADD = $(VPNOR_LDADD) |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 27 | |
Andrew Jeffery | 733cbe6 | 2018-02-22 22:10:16 +1030 | [diff] [blame] | 28 | test_vpnor_write_patch_SOURCES = \ |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 29 | $(TEST_MBOX_VPNOR_SRCS) \ |
| 30 | mboxd_pnor_partition_table.cpp \ |
| 31 | mboxd_flash_virtual.cpp \ |
| 32 | mtd.c \ |
| 33 | pnor_partition.cpp \ |
Andrew Jeffery | 733cbe6 | 2018-02-22 22:10:16 +1030 | [diff] [blame] | 34 | %reldir%/write_patch.cpp |
| 35 | test_vpnor_write_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 36 | test_vpnor_write_patch_LDADD = $(VPNOR_LDADD) |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 37 | |
Andrew Jeffery | ad341a2 | 2018-02-22 17:13:15 +1030 | [diff] [blame] | 38 | test_vpnor_write_prsv_SOURCES = \ |
| 39 | $(TEST_MBOX_VPNOR_SRCS) \ |
| 40 | mboxd_pnor_partition_table.cpp \ |
| 41 | mboxd_flash_virtual.cpp \ |
| 42 | mtd.c \ |
| 43 | pnor_partition.cpp \ |
| 44 | %reldir%/write_prsv.cpp |
| 45 | test_vpnor_write_prsv_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 46 | test_vpnor_write_prsv_LDADD = $(VPNOR_LDADD) |
| 47 | |
Andrew Jeffery | f050fcf | 2018-02-22 17:35:34 +1030 | [diff] [blame] | 48 | test_vpnor_write_ro_SOURCES = \ |
| 49 | $(TEST_MBOX_VPNOR_SRCS) \ |
| 50 | mboxd_pnor_partition_table.cpp \ |
| 51 | mboxd_flash_virtual.cpp \ |
| 52 | mtd.c \ |
| 53 | pnor_partition.cpp \ |
| 54 | %reldir%/write_ro.cpp |
| 55 | test_vpnor_write_ro_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 56 | test_vpnor_write_ro_LDADD = $(VPNOR_LDADD) |
| 57 | |
Andrew Jeffery | 24f4459 | 2018-02-22 17:51:59 +1030 | [diff] [blame] | 58 | test_vpnor_write_rw_SOURCES = \ |
| 59 | $(TEST_MBOX_VPNOR_SRCS) \ |
| 60 | mboxd_pnor_partition_table.cpp \ |
| 61 | mboxd_flash_virtual.cpp \ |
| 62 | mtd.c \ |
| 63 | pnor_partition.cpp \ |
| 64 | %reldir%/write_rw.cpp |
| 65 | test_vpnor_write_rw_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 66 | test_vpnor_write_rw_LDADD = $(VPNOR_LDADD) |
| 67 | |
Andrew Jeffery | b02ef43 | 2018-02-26 09:57:17 +1030 | [diff] [blame] | 68 | test_vpnor_toc_no_name_SOURCES = \ |
| 69 | common.c \ |
| 70 | pnor_partition_table.cpp \ |
| 71 | %reldir%/toc_no_name.cpp |
| 72 | test_vpnor_toc_no_name_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 73 | test_vpnor_toc_no_name_LDADD = $(VPNOR_LDADD) |
| 74 | |
Andrew Jeffery | 17bbf45 | 2018-02-26 09:57:56 +1030 | [diff] [blame] | 75 | test_vpnor_toc_start_gt_end_SOURCES = \ |
| 76 | common.c \ |
| 77 | pnor_partition_table.cpp \ |
| 78 | %reldir%/toc_start_gt_end.cpp |
| 79 | test_vpnor_toc_start_gt_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 80 | test_vpnor_toc_start_gt_end_LDADD = $(VPNOR_LDADD) |
| 81 | |
Andrew Jeffery | 437c80f | 2018-02-26 09:59:51 +1030 | [diff] [blame] | 82 | test_vpnor_toc_no_start_SOURCES = \ |
| 83 | common.c \ |
| 84 | pnor_partition_table.cpp \ |
| 85 | %reldir%/toc_no_start.cpp |
| 86 | test_vpnor_toc_no_start_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 87 | test_vpnor_toc_no_start_LDADD = $(VPNOR_LDADD) |
| 88 | |
Andrew Jeffery | 50ab1de | 2018-02-26 10:02:39 +1030 | [diff] [blame] | 89 | test_vpnor_toc_no_end_SOURCES = \ |
| 90 | common.c \ |
| 91 | pnor_partition_table.cpp \ |
| 92 | %reldir%/toc_no_end.cpp |
| 93 | test_vpnor_toc_no_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 94 | test_vpnor_toc_no_end_LDADD = $(VPNOR_LDADD) |
| 95 | |
Andrew Jeffery | a11a3b0 | 2018-02-26 10:13:37 +1030 | [diff] [blame] | 96 | test_vpnor_toc_no_version_SOURCES = \ |
| 97 | common.c \ |
| 98 | pnor_partition_table.cpp \ |
| 99 | %reldir%/toc_no_version.cpp |
| 100 | test_vpnor_toc_no_version_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 101 | test_vpnor_toc_no_version_LDADD = $(VPNOR_LDADD) |
| 102 | |
Andrew Jeffery | 9b25b59 | 2018-02-26 12:01:24 +1030 | [diff] [blame] | 103 | test_vpnor_toc_flags_SOURCES = \ |
| 104 | common.c \ |
| 105 | pnor_partition_table.cpp \ |
| 106 | %reldir%/toc_flags.cpp |
| 107 | test_vpnor_toc_flags_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 108 | test_vpnor_toc_flags_LDADD = $(VPNOR_LDADD) |
| 109 | |
Andrew Jeffery | f5a5138 | 2018-02-27 16:17:53 +1030 | [diff] [blame] | 110 | test_vpnor_toc_overlap_SOURCES = \ |
| 111 | $(TEST_MOCK_SRCS) \ |
| 112 | mboxd_msg.c \ |
| 113 | mboxd_windows.c \ |
| 114 | mboxd_lpc.c \ |
| 115 | mboxd_lpc_virtual.cpp \ |
| 116 | mboxd_pnor_partition_table.cpp \ |
| 117 | mboxd_flash_virtual.cpp \ |
| 118 | pnor_partition.cpp \ |
| 119 | common.c \ |
| 120 | pnor_partition_table.cpp \ |
| 121 | %reldir%/toc_overlap.cpp |
| 122 | test_vpnor_toc_overlap_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 123 | test_vpnor_toc_overlap_LDADD = $(VPNOR_LDADD) |
| 124 | |
Andrew Jeffery | a138f56 | 2018-02-27 16:58:02 +1030 | [diff] [blame] | 125 | test_vpnor_toc_lookup_found_SOURCES = \ |
| 126 | $(TEST_MOCK_SRCS) \ |
| 127 | mboxd_msg.c \ |
| 128 | mboxd_windows.c \ |
| 129 | mboxd_lpc.c \ |
| 130 | mboxd_lpc_virtual.cpp \ |
| 131 | mboxd_pnor_partition_table.cpp \ |
| 132 | mboxd_flash_virtual.cpp \ |
| 133 | pnor_partition.cpp \ |
| 134 | common.c \ |
| 135 | pnor_partition_table.cpp \ |
| 136 | %reldir%/toc_lookup_found.cpp |
| 137 | test_vpnor_toc_lookup_found_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 138 | test_vpnor_toc_lookup_found_LDADD = $(VPNOR_LDADD) |
| 139 | |
Andrew Jeffery | 3376dac | 2018-02-27 17:03:08 +1030 | [diff] [blame] | 140 | test_vpnor_toc_lookup_failed_SOURCES = \ |
| 141 | $(TEST_MOCK_SRCS) \ |
| 142 | mboxd_msg.c \ |
| 143 | mboxd_windows.c \ |
| 144 | mboxd_lpc.c \ |
| 145 | mboxd_lpc_virtual.cpp \ |
| 146 | mboxd_pnor_partition_table.cpp \ |
| 147 | mboxd_flash_virtual.cpp \ |
| 148 | pnor_partition.cpp \ |
| 149 | common.c \ |
| 150 | pnor_partition_table.cpp \ |
| 151 | %reldir%/toc_lookup_failed.cpp |
| 152 | test_vpnor_toc_lookup_failed_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 153 | test_vpnor_toc_lookup_failed_LDADD = $(VPNOR_LDADD) |
| 154 | |
Andrew Jeffery | bfe6f80 | 2018-02-27 17:11:17 +1030 | [diff] [blame] | 155 | test_vpnor_toc_missing_file_SOURCES = \ |
| 156 | $(TEST_MOCK_SRCS) \ |
| 157 | mboxd_msg.c \ |
| 158 | mboxd_windows.c \ |
| 159 | mboxd_lpc.c \ |
| 160 | mboxd_lpc_virtual.cpp \ |
| 161 | mboxd_pnor_partition_table.cpp \ |
| 162 | mboxd_flash_virtual.cpp \ |
| 163 | pnor_partition.cpp \ |
| 164 | common.c \ |
| 165 | pnor_partition_table.cpp \ |
| 166 | %reldir%/toc_missing_file.cpp |
| 167 | test_vpnor_toc_missing_file_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 168 | test_vpnor_toc_missing_file_LDADD = $(VPNOR_LDADD) |
| 169 | |
Andrew Jeffery | 3c9bb3e | 2018-02-23 18:16:50 +1030 | [diff] [blame] | 170 | test_vpnor_create_read_window_oob_SOURCES = \ |
| 171 | $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \ |
| 172 | mboxd_msg.c \ |
| 173 | mboxd_windows.c \ |
| 174 | mboxd_lpc.c \ |
| 175 | mboxd_lpc_virtual.cpp \ |
| 176 | mboxd_pnor_partition_table.cpp \ |
| 177 | mboxd_flash_virtual.cpp \ |
| 178 | pnor_partition.cpp \ |
| 179 | %reldir%/create_read_window_oob.cpp |
| 180 | test_vpnor_create_read_window_oob_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 181 | test_vpnor_create_read_window_oob_LDADD = $(VPNOR_LDADD) |
| 182 | |
Andrew Jeffery | 7eed6de | 2018-03-01 12:11:23 +1030 | [diff] [blame] | 183 | test_vpnor_create_read_window_toc_SOURCES = \ |
| 184 | $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \ |
| 185 | mboxd_msg.c \ |
| 186 | mboxd_windows.c \ |
| 187 | mboxd_lpc.c \ |
| 188 | mboxd_lpc_virtual.cpp \ |
| 189 | mboxd_pnor_partition_table.cpp \ |
| 190 | mboxd_flash_virtual.cpp \ |
| 191 | pnor_partition.cpp \ |
| 192 | %reldir%/create_read_window_toc.cpp |
| 193 | test_vpnor_create_read_window_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 194 | test_vpnor_create_read_window_toc_LDADD = $(VPNOR_LDADD) |
| 195 | |
Andrew Jeffery | 2b73f17 | 2018-03-01 13:06:29 +1030 | [diff] [blame] | 196 | test_vpnor_create_read_window_straddle_partitions_SOURCES = \ |
| 197 | $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \ |
| 198 | mboxd_msg.c \ |
| 199 | mboxd_windows.c \ |
| 200 | mboxd_lpc.c \ |
| 201 | mboxd_lpc_virtual.cpp \ |
| 202 | mboxd_pnor_partition_table.cpp \ |
| 203 | mboxd_flash_virtual.cpp \ |
| 204 | pnor_partition.cpp \ |
| 205 | %reldir%/create_read_window_straddle_partitions.cpp |
| 206 | test_vpnor_create_read_window_straddle_partitions_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 207 | test_vpnor_create_read_window_straddle_partitions_LDADD = $(VPNOR_LDADD) |
| 208 | |
Andrew Jeffery | 730e3b0 | 2018-02-23 18:09:22 +1030 | [diff] [blame] | 209 | test_vpnor_create_read_window_partition_invalid_SOURCES = \ |
| 210 | $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \ |
| 211 | mboxd_msg.c \ |
| 212 | mboxd_windows.c \ |
| 213 | mboxd_lpc.c \ |
| 214 | mboxd_lpc_virtual.cpp \ |
| 215 | mboxd_pnor_partition_table.cpp \ |
| 216 | mboxd_flash_virtual.cpp \ |
| 217 | pnor_partition.cpp \ |
| 218 | %reldir%/create_read_window_partition_invalid.cpp |
| 219 | test_vpnor_create_read_window_partition_invalid_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 220 | test_vpnor_create_read_window_partition_invalid_LDADD = $(VPNOR_LDADD) |
| 221 | |
Andrew Jeffery | 5bfc986 | 2018-03-02 09:13:31 +1030 | [diff] [blame^] | 222 | test_vpnor_read_patch_SOURCES = \ |
| 223 | $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \ |
| 224 | mboxd_msg.c \ |
| 225 | mboxd_windows.c \ |
| 226 | mboxd_lpc.c \ |
| 227 | mboxd_lpc_virtual.cpp \ |
| 228 | mboxd_pnor_partition_table.cpp \ |
| 229 | mboxd_flash_virtual.cpp \ |
| 230 | pnor_partition.cpp \ |
| 231 | %reldir%/read_patch.cpp |
| 232 | test_vpnor_read_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 233 | test_vpnor_read_patch_LDADD = $(VPNOR_LDADD) |
| 234 | |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 235 | if VIRTUAL_PNOR_ENABLED |
| 236 | check_PROGRAMS += \ |
| 237 | %reldir%/create_pnor_partition_table \ |
Andrew Jeffery | de90fdc | 2018-02-23 15:59:46 +1030 | [diff] [blame] | 238 | %reldir%/create_read_window_partition_exists \ |
Andrew Jeffery | f050fcf | 2018-02-22 17:35:34 +1030 | [diff] [blame] | 239 | %reldir%/write_prsv \ |
Andrew Jeffery | 24f4459 | 2018-02-22 17:51:59 +1030 | [diff] [blame] | 240 | %reldir%/write_ro \ |
Andrew Jeffery | 733cbe6 | 2018-02-22 22:10:16 +1030 | [diff] [blame] | 241 | %reldir%/write_rw \ |
Andrew Jeffery | b02ef43 | 2018-02-26 09:57:17 +1030 | [diff] [blame] | 242 | %reldir%/write_patch \ |
Andrew Jeffery | 17bbf45 | 2018-02-26 09:57:56 +1030 | [diff] [blame] | 243 | %reldir%/toc_no_name \ |
Andrew Jeffery | 437c80f | 2018-02-26 09:59:51 +1030 | [diff] [blame] | 244 | %reldir%/toc_start_gt_end \ |
Andrew Jeffery | 50ab1de | 2018-02-26 10:02:39 +1030 | [diff] [blame] | 245 | %reldir%/toc_no_start \ |
Andrew Jeffery | a11a3b0 | 2018-02-26 10:13:37 +1030 | [diff] [blame] | 246 | %reldir%/toc_no_end \ |
Andrew Jeffery | 9b25b59 | 2018-02-26 12:01:24 +1030 | [diff] [blame] | 247 | %reldir%/toc_no_version \ |
Andrew Jeffery | f5a5138 | 2018-02-27 16:17:53 +1030 | [diff] [blame] | 248 | %reldir%/toc_flags \ |
Andrew Jeffery | a138f56 | 2018-02-27 16:58:02 +1030 | [diff] [blame] | 249 | %reldir%/toc_overlap \ |
Andrew Jeffery | 3376dac | 2018-02-27 17:03:08 +1030 | [diff] [blame] | 250 | %reldir%/toc_lookup_found \ |
Andrew Jeffery | bfe6f80 | 2018-02-27 17:11:17 +1030 | [diff] [blame] | 251 | %reldir%/toc_lookup_failed \ |
Andrew Jeffery | 3c9bb3e | 2018-02-23 18:16:50 +1030 | [diff] [blame] | 252 | %reldir%/toc_missing_file \ |
Andrew Jeffery | 7eed6de | 2018-03-01 12:11:23 +1030 | [diff] [blame] | 253 | %reldir%/create_read_window_oob \ |
Andrew Jeffery | 2b73f17 | 2018-03-01 13:06:29 +1030 | [diff] [blame] | 254 | %reldir%/create_read_window_toc \ |
Andrew Jeffery | 730e3b0 | 2018-02-23 18:09:22 +1030 | [diff] [blame] | 255 | %reldir%/create_read_window_straddle_partitions \ |
Andrew Jeffery | 5bfc986 | 2018-03-02 09:13:31 +1030 | [diff] [blame^] | 256 | %reldir%/create_read_window_partition_invalid \ |
| 257 | %reldir%/read_patch |
| 258 | |
| 259 | XFAIL_TESTS += %reldir%/read_patch |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 260 | endif |