blob: 32b960f5e201e1fc496de308322694f42d3d29f2 [file] [log] [blame]
Andrew Jeffery812923d2018-02-22 11:59:52 +10301TEST_MBOX_VPNOR_SRCS = common.c pnor_partition_table.cpp \
2 %reldir%/tmpd.cpp
Andrew Jeffery85985912018-02-22 10:20:31 +10303
Andrew Jefferya6582532018-02-22 16:04:37 +10304VPNOR_LDADD = -lstdc++fs \
5 $(SDBUSPLUS_LIBS) \
6 $(PHOSPHOR_LOGGING_LIBS) \
7 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
8
Andrew Jeffery85985912018-02-22 10:20:31 +10309test_vpnor_create_pnor_partition_table_SOURCES = \
10 $(TEST_MBOX_VPNOR_SRCS) \
11 %reldir%/create_pnor_partition_table.cpp
12test_vpnor_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
Andrew Jefferya6582532018-02-22 16:04:37 +103013test_vpnor_create_pnor_partition_table_LDADD = $(VPNOR_LDADD)
Andrew Jeffery85985912018-02-22 10:20:31 +103014
Andrew Jefferyde90fdc2018-02-23 15:59:46 +103015test_vpnor_create_read_window_partition_exists_SOURCES = \
Andrew Jeffery85985912018-02-22 10:20:31 +103016 $(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 Jefferyde90fdc2018-02-23 15:59:46 +103024 %reldir%/create_read_window_partition_exists.cpp
25test_vpnor_create_read_window_partition_exists_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
26test_vpnor_create_read_window_partition_exists_LDADD = $(VPNOR_LDADD)
Andrew Jeffery85985912018-02-22 10:20:31 +103027
Andrew Jeffery733cbe62018-02-22 22:10:16 +103028test_vpnor_write_patch_SOURCES = \
Andrew Jeffery85985912018-02-22 10:20:31 +103029 $(TEST_MBOX_VPNOR_SRCS) \
30 mboxd_pnor_partition_table.cpp \
31 mboxd_flash_virtual.cpp \
32 mtd.c \
33 pnor_partition.cpp \
Andrew Jeffery733cbe62018-02-22 22:10:16 +103034 %reldir%/write_patch.cpp
35test_vpnor_write_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
36test_vpnor_write_patch_LDADD = $(VPNOR_LDADD)
Andrew Jeffery85985912018-02-22 10:20:31 +103037
Andrew Jefferyad341a22018-02-22 17:13:15 +103038test_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
45test_vpnor_write_prsv_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
46test_vpnor_write_prsv_LDADD = $(VPNOR_LDADD)
47
Andrew Jefferyf050fcf2018-02-22 17:35:34 +103048test_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
55test_vpnor_write_ro_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
56test_vpnor_write_ro_LDADD = $(VPNOR_LDADD)
57
Andrew Jeffery24f44592018-02-22 17:51:59 +103058test_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
65test_vpnor_write_rw_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
66test_vpnor_write_rw_LDADD = $(VPNOR_LDADD)
67
Andrew Jefferyb02ef432018-02-26 09:57:17 +103068test_vpnor_toc_no_name_SOURCES = \
69 common.c \
70 pnor_partition_table.cpp \
71 %reldir%/toc_no_name.cpp
72test_vpnor_toc_no_name_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
73test_vpnor_toc_no_name_LDADD = $(VPNOR_LDADD)
74
Andrew Jeffery17bbf452018-02-26 09:57:56 +103075test_vpnor_toc_start_gt_end_SOURCES = \
76 common.c \
77 pnor_partition_table.cpp \
78 %reldir%/toc_start_gt_end.cpp
79test_vpnor_toc_start_gt_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
80test_vpnor_toc_start_gt_end_LDADD = $(VPNOR_LDADD)
81
Andrew Jeffery437c80f2018-02-26 09:59:51 +103082test_vpnor_toc_no_start_SOURCES = \
83 common.c \
84 pnor_partition_table.cpp \
85 %reldir%/toc_no_start.cpp
86test_vpnor_toc_no_start_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
87test_vpnor_toc_no_start_LDADD = $(VPNOR_LDADD)
88
Andrew Jeffery50ab1de2018-02-26 10:02:39 +103089test_vpnor_toc_no_end_SOURCES = \
90 common.c \
91 pnor_partition_table.cpp \
92 %reldir%/toc_no_end.cpp
93test_vpnor_toc_no_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
94test_vpnor_toc_no_end_LDADD = $(VPNOR_LDADD)
95
Andrew Jefferya11a3b02018-02-26 10:13:37 +103096test_vpnor_toc_no_version_SOURCES = \
97 common.c \
98 pnor_partition_table.cpp \
99 %reldir%/toc_no_version.cpp
100test_vpnor_toc_no_version_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
101test_vpnor_toc_no_version_LDADD = $(VPNOR_LDADD)
102
Andrew Jeffery9b25b592018-02-26 12:01:24 +1030103test_vpnor_toc_flags_SOURCES = \
104 common.c \
105 pnor_partition_table.cpp \
106 %reldir%/toc_flags.cpp
107test_vpnor_toc_flags_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
108test_vpnor_toc_flags_LDADD = $(VPNOR_LDADD)
109
Andrew Jefferyf5a51382018-02-27 16:17:53 +1030110test_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
122test_vpnor_toc_overlap_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
123test_vpnor_toc_overlap_LDADD = $(VPNOR_LDADD)
124
Andrew Jefferya138f562018-02-27 16:58:02 +1030125test_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
137test_vpnor_toc_lookup_found_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
138test_vpnor_toc_lookup_found_LDADD = $(VPNOR_LDADD)
139
Andrew Jeffery85985912018-02-22 10:20:31 +1030140if VIRTUAL_PNOR_ENABLED
141check_PROGRAMS += \
142 %reldir%/create_pnor_partition_table \
Andrew Jefferyde90fdc2018-02-23 15:59:46 +1030143 %reldir%/create_read_window_partition_exists \
Andrew Jefferyf050fcf2018-02-22 17:35:34 +1030144 %reldir%/write_prsv \
Andrew Jeffery24f44592018-02-22 17:51:59 +1030145 %reldir%/write_ro \
Andrew Jeffery733cbe62018-02-22 22:10:16 +1030146 %reldir%/write_rw \
Andrew Jefferyb02ef432018-02-26 09:57:17 +1030147 %reldir%/write_patch \
Andrew Jeffery17bbf452018-02-26 09:57:56 +1030148 %reldir%/toc_no_name \
Andrew Jeffery437c80f2018-02-26 09:59:51 +1030149 %reldir%/toc_start_gt_end \
Andrew Jeffery50ab1de2018-02-26 10:02:39 +1030150 %reldir%/toc_no_start \
Andrew Jefferya11a3b02018-02-26 10:13:37 +1030151 %reldir%/toc_no_end \
Andrew Jeffery9b25b592018-02-26 12:01:24 +1030152 %reldir%/toc_no_version \
Andrew Jefferyf5a51382018-02-27 16:17:53 +1030153 %reldir%/toc_flags \
Andrew Jefferya138f562018-02-27 16:58:02 +1030154 %reldir%/toc_overlap \
155 %reldir%/toc_lookup_found
Andrew Jeffery85985912018-02-22 10:20:31 +1030156endif