Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 1 | TEST_MBOX_VPNOR_SRCS = \ |
| 2 | common.c \ |
| 3 | vpnor/pnor_partition_table.cpp \ |
| 4 | %reldir%/tmpd.cpp |
| 5 | |
| 6 | TEST_MBOX_VPNOR_INTEG_SRCS = \ |
| 7 | common.c \ |
Andrew Jeffery | 1e531af | 2018-08-07 13:32:57 +0930 | [diff] [blame] | 8 | protocol.c \ |
Andrew Jeffery | 457a6e5 | 2018-08-08 11:21:08 +0930 | [diff] [blame] | 9 | transport_mbox.c \ |
Andrew Jeffery | f593b1b | 2018-08-08 11:01:04 +0930 | [diff] [blame] | 10 | windows.c \ |
Andrew Jeffery | cd18611 | 2018-08-08 10:47:55 +0930 | [diff] [blame] | 11 | lpc.c \ |
| 12 | vpnor/lpc_reset.cpp \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 13 | vpnor/mboxd_pnor_partition_table.cpp \ |
Andrew Jeffery | eebc6bd | 2018-08-08 10:38:19 +0930 | [diff] [blame] | 14 | vpnor/flash.cpp \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 15 | vpnor/pnor_partition.cpp \ |
| 16 | vpnor/pnor_partition_table.cpp \ |
| 17 | %reldir%/tmpd.cpp |
| 18 | |
| 19 | VPNOR_LDADD = -lstdc++fs \ |
| 20 | $(SDBUSPLUS_LIBS) \ |
| 21 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 22 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 23 | |
| 24 | vpnor_test_create_pnor_partition_table_SOURCES = \ |
| 25 | $(TEST_MOCK_SRCS) \ |
| 26 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 27 | %reldir%/create_pnor_partition_table.cpp |
| 28 | vpnor_test_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 29 | vpnor_test_create_pnor_partition_table_LDADD = $(VPNOR_LDADD) |
| 30 | |
| 31 | vpnor_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 |
| 35 | vpnor_test_create_read_window_partition_exists_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 36 | vpnor_test_create_read_window_partition_exists_LDADD = $(VPNOR_LDADD) |
| 37 | |
| 38 | vpnor_test_write_patch_SOURCES = \ |
Andrew Jeffery | 943aba0 | 2018-03-26 15:37:33 +1030 | [diff] [blame] | 39 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 40 | mtd.c \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 41 | %reldir%/write_patch.cpp |
| 42 | vpnor_test_write_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 43 | vpnor_test_write_patch_LDADD = $(VPNOR_LDADD) |
| 44 | |
| 45 | vpnor_test_write_prsv_SOURCES = \ |
Andrew Jeffery | 943aba0 | 2018-03-26 15:37:33 +1030 | [diff] [blame] | 46 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 47 | mtd.c \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 48 | %reldir%/write_prsv.cpp |
| 49 | vpnor_test_write_prsv_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 50 | vpnor_test_write_prsv_LDADD = $(VPNOR_LDADD) |
| 51 | |
| 52 | vpnor_test_write_ro_SOURCES = \ |
Andrew Jeffery | 943aba0 | 2018-03-26 15:37:33 +1030 | [diff] [blame] | 53 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 54 | mtd.c \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 55 | %reldir%/write_ro.cpp |
| 56 | vpnor_test_write_ro_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 57 | vpnor_test_write_ro_LDADD = $(VPNOR_LDADD) |
| 58 | |
| 59 | vpnor_test_write_rw_SOURCES = \ |
Andrew Jeffery | 943aba0 | 2018-03-26 15:37:33 +1030 | [diff] [blame] | 60 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 61 | mtd.c \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 62 | %reldir%/write_rw.cpp |
| 63 | vpnor_test_write_rw_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 64 | vpnor_test_write_rw_LDADD = $(VPNOR_LDADD) |
| 65 | |
| 66 | vpnor_test_toc_no_name_SOURCES = \ |
| 67 | common.c \ |
| 68 | vpnor/pnor_partition_table.cpp \ |
| 69 | %reldir%/toc_no_name.cpp |
| 70 | vpnor_test_toc_no_name_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 71 | vpnor_test_toc_no_name_LDADD = $(VPNOR_LDADD) |
| 72 | |
| 73 | vpnor_test_toc_start_gt_end_SOURCES = \ |
| 74 | common.c \ |
| 75 | vpnor/pnor_partition_table.cpp \ |
| 76 | %reldir%/toc_start_gt_end.cpp |
| 77 | vpnor_test_toc_start_gt_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 78 | vpnor_test_toc_start_gt_end_LDADD = $(VPNOR_LDADD) |
| 79 | |
| 80 | vpnor_test_toc_no_start_SOURCES = \ |
| 81 | common.c \ |
| 82 | vpnor/pnor_partition_table.cpp \ |
| 83 | %reldir%/toc_no_start.cpp |
| 84 | vpnor_test_toc_no_start_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 85 | vpnor_test_toc_no_start_LDADD = $(VPNOR_LDADD) |
| 86 | |
| 87 | vpnor_test_toc_no_end_SOURCES = \ |
| 88 | common.c \ |
| 89 | vpnor/pnor_partition_table.cpp \ |
| 90 | %reldir%/toc_no_end.cpp |
| 91 | vpnor_test_toc_no_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 92 | vpnor_test_toc_no_end_LDADD = $(VPNOR_LDADD) |
| 93 | |
| 94 | vpnor_test_toc_no_version_SOURCES = \ |
| 95 | common.c \ |
| 96 | vpnor/pnor_partition_table.cpp \ |
| 97 | %reldir%/toc_no_version.cpp |
| 98 | vpnor_test_toc_no_version_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 99 | vpnor_test_toc_no_version_LDADD = $(VPNOR_LDADD) |
| 100 | |
| 101 | vpnor_test_toc_flags_SOURCES = \ |
| 102 | common.c \ |
| 103 | vpnor/pnor_partition_table.cpp \ |
| 104 | %reldir%/toc_flags.cpp |
| 105 | vpnor_test_toc_flags_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 106 | vpnor_test_toc_flags_LDADD = $(VPNOR_LDADD) |
| 107 | |
| 108 | vpnor_test_toc_overlap_SOURCES = \ |
| 109 | $(TEST_MOCK_SRCS) \ |
| 110 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 111 | %reldir%/toc_overlap.cpp |
| 112 | vpnor_test_toc_overlap_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 113 | vpnor_test_toc_overlap_LDADD = $(VPNOR_LDADD) |
| 114 | |
| 115 | vpnor_test_toc_lookup_found_SOURCES = \ |
| 116 | $(TEST_MOCK_SRCS) \ |
| 117 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 118 | %reldir%/toc_lookup_found.cpp |
| 119 | vpnor_test_toc_lookup_found_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 120 | vpnor_test_toc_lookup_found_LDADD = $(VPNOR_LDADD) |
| 121 | |
| 122 | vpnor_test_toc_lookup_failed_SOURCES = \ |
| 123 | $(TEST_MOCK_SRCS) \ |
| 124 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 125 | %reldir%/toc_lookup_failed.cpp |
| 126 | vpnor_test_toc_lookup_failed_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 127 | vpnor_test_toc_lookup_failed_LDADD = $(VPNOR_LDADD) |
| 128 | |
| 129 | vpnor_test_toc_missing_file_SOURCES = \ |
| 130 | $(TEST_MOCK_SRCS) \ |
| 131 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 132 | %reldir%/toc_missing_file.cpp |
| 133 | vpnor_test_toc_missing_file_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 134 | vpnor_test_toc_missing_file_LDADD = $(VPNOR_LDADD) |
| 135 | |
| 136 | vpnor_test_create_read_window_oob_SOURCES = \ |
| 137 | $(TEST_MOCK_SRCS) \ |
| 138 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 139 | %reldir%/create_read_window_oob.cpp |
| 140 | vpnor_test_create_read_window_oob_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 141 | vpnor_test_create_read_window_oob_LDADD = $(VPNOR_LDADD) |
| 142 | |
| 143 | vpnor_test_create_read_window_toc_SOURCES = \ |
| 144 | $(TEST_MOCK_SRCS) \ |
| 145 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 146 | %reldir%/create_read_window_toc.cpp |
| 147 | vpnor_test_create_read_window_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 148 | vpnor_test_create_read_window_toc_LDADD = $(VPNOR_LDADD) |
| 149 | |
| 150 | vpnor_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 |
| 154 | vpnor_test_create_read_window_straddle_partitions_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 155 | vpnor_test_create_read_window_straddle_partitions_LDADD = $(VPNOR_LDADD) |
| 156 | |
| 157 | vpnor_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 |
| 161 | vpnor_test_create_read_window_partition_invalid_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 162 | vpnor_test_create_read_window_partition_invalid_LDADD = $(VPNOR_LDADD) |
| 163 | |
| 164 | vpnor_test_read_patch_SOURCES = \ |
| 165 | $(TEST_MOCK_SRCS) \ |
| 166 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 167 | %reldir%/read_patch.cpp |
| 168 | vpnor_test_read_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 169 | vpnor_test_read_patch_LDADD = $(VPNOR_LDADD) |
| 170 | |
| 171 | vpnor_test_write_patch_resize_SOURCES = \ |
Andrew Jeffery | 943aba0 | 2018-03-26 15:37:33 +1030 | [diff] [blame] | 172 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 173 | mtd.c \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 174 | %reldir%/write_patch_resize.cpp |
| 175 | vpnor_test_write_patch_resize_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 176 | vpnor_test_write_patch_resize_LDADD = $(VPNOR_LDADD) |
| 177 | |
| 178 | vpnor_test_dump_flash_SOURCES = \ |
| 179 | $(TEST_MOCK_SRCS) \ |
| 180 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 181 | %reldir%/dump_flash.cpp |
| 182 | vpnor_test_dump_flash_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 183 | vpnor_test_dump_flash_LDADD = $(VPNOR_LDADD) |
| 184 | |
| 185 | vpnor_test_create_read_window_size_SOURCES = \ |
| 186 | $(TEST_MOCK_SRCS) \ |
| 187 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 188 | %reldir%/create_read_window_size.cpp |
| 189 | vpnor_test_create_read_window_size_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 190 | vpnor_test_create_read_window_size_LDADD = $(VPNOR_LDADD) |
| 191 | |
| 192 | vpnor_test_create_read_window_remap_SOURCES = \ |
| 193 | $(TEST_MOCK_SRCS) \ |
| 194 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 195 | %reldir%/create_read_window_remap.cpp |
| 196 | vpnor_test_create_read_window_remap_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 197 | vpnor_test_create_read_window_remap_LDADD = $(VPNOR_LDADD) |
| 198 | |
| 199 | vpnor_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 |
| 203 | vpnor_test_create_write_window_ro_partition_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 204 | vpnor_test_create_write_window_ro_partition_LDADD = $(VPNOR_LDADD) |
| 205 | |
| 206 | vpnor_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 |
| 210 | vpnor_test_create_write_window_rw_partition_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 211 | vpnor_test_create_write_window_rw_partition_LDADD = $(VPNOR_LDADD) |
| 212 | |
| 213 | vpnor_test_create_write_window_unmapped_SOURCES = \ |
| 214 | $(TEST_MOCK_SRCS) \ |
| 215 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 216 | %reldir%/create_write_window_unmapped.cpp |
| 217 | vpnor_test_create_write_window_unmapped_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 218 | vpnor_test_create_write_window_unmapped_LDADD = $(VPNOR_LDADD) |
| 219 | |
Andrew Jeffery | 8998575 | 2018-11-13 15:17:30 +1030 | [diff] [blame] | 220 | vpnor_test_write_toc_SOURCES = \ |
| 221 | $(TEST_MOCK_SRCS) \ |
| 222 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 223 | %reldir%/write_toc.cpp |
| 224 | vpnor_test_write_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 225 | vpnor_test_write_toc_LDADD = $(VPNOR_LDADD) |
| 226 | |
Andrew Jeffery | 8a0efd5 | 2018-11-13 17:13:08 +1030 | [diff] [blame] | 227 | vpnor_test_force_readonly_toc_SOURCES = \ |
| 228 | $(TEST_MOCK_SRCS) \ |
| 229 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 230 | %reldir%/force_readonly_toc.cpp |
| 231 | vpnor_test_force_readonly_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 232 | vpnor_test_force_readonly_toc_LDADD = $(VPNOR_LDADD) |
| 233 | |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 234 | if VIRTUAL_PNOR_ENABLED |
| 235 | check_PROGRAMS += \ |
| 236 | %reldir%/create_pnor_partition_table \ |
| 237 | %reldir%/create_read_window_partition_exists \ |
| 238 | %reldir%/write_prsv \ |
| 239 | %reldir%/write_ro \ |
| 240 | %reldir%/write_rw \ |
| 241 | %reldir%/write_patch \ |
| 242 | %reldir%/toc_no_name \ |
| 243 | %reldir%/toc_start_gt_end \ |
| 244 | %reldir%/toc_no_start \ |
| 245 | %reldir%/toc_no_end \ |
| 246 | %reldir%/toc_no_version \ |
| 247 | %reldir%/toc_flags \ |
| 248 | %reldir%/toc_overlap \ |
| 249 | %reldir%/toc_lookup_found \ |
| 250 | %reldir%/toc_lookup_failed \ |
| 251 | %reldir%/toc_missing_file \ |
| 252 | %reldir%/create_read_window_oob \ |
| 253 | %reldir%/create_read_window_toc \ |
| 254 | %reldir%/create_read_window_straddle_partitions \ |
| 255 | %reldir%/create_read_window_partition_invalid \ |
| 256 | %reldir%/read_patch \ |
| 257 | %reldir%/write_patch_resize \ |
| 258 | %reldir%/dump_flash \ |
| 259 | %reldir%/create_read_window_size \ |
| 260 | %reldir%/create_read_window_remap \ |
| 261 | %reldir%/create_write_window_ro_partition \ |
| 262 | %reldir%/create_write_window_rw_partition \ |
Andrew Jeffery | 8998575 | 2018-11-13 15:17:30 +1030 | [diff] [blame] | 263 | %reldir%/create_write_window_unmapped \ |
Andrew Jeffery | 8a0efd5 | 2018-11-13 17:13:08 +1030 | [diff] [blame] | 264 | %reldir%/write_toc \ |
| 265 | %reldir%/force_readonly_toc |
Andrew Jeffery | 8998575 | 2018-11-13 15:17:30 +1030 | [diff] [blame] | 266 | |
| 267 | XFAIL_TESTS += \ |
Andrew Jeffery | 7a85d22 | 2018-11-13 17:15:18 +1030 | [diff] [blame] | 268 | %reldir%/write_toc |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 269 | endif |