Andrew Jeffery | 5345c51 | 2018-02-21 21:36:59 +1030 | [diff] [blame^] | 1 | AM_LIBS = $(CODE_COVERAGE_LIBS) |
| 2 | AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) |
| 3 | AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
| 4 | AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) |
| 5 | |
| 6 | test_sanity_SOURCES = %reldir%/sanity.c |
| 7 | |
| 8 | test_copy_flash_SOURCES = \ |
| 9 | %reldir%/copy_flash.c \ |
| 10 | mboxd_flash_physical.c \ |
| 11 | common.c mtd.c \ |
| 12 | %reldir%/tmpf.c |
| 13 | |
| 14 | test_erase_flash_SOURCES = \ |
| 15 | %reldir%/erase_flash.c \ |
| 16 | mboxd_flash_physical.c \ |
| 17 | common.c \ |
| 18 | %reldir%/tmpf.c |
| 19 | |
| 20 | test_write_flash_SOURCES = \ |
| 21 | %reldir%/write_flash.c \ |
| 22 | mboxd_flash_physical.c \ |
| 23 | common.c \ |
| 24 | %reldir%/tmpf.c |
| 25 | |
| 26 | TEST_MBOX_SRCS = \ |
| 27 | mboxd_msg.c \ |
| 28 | mboxd_windows.c \ |
| 29 | mboxd_lpc.c \ |
| 30 | mboxd_lpc_physical.c \ |
| 31 | common.c \ |
| 32 | mboxd_flash_physical.c |
| 33 | |
| 34 | TEST_MOCK_SRCS = %reldir%/tmpf.c %reldir%/mbox.c %reldir%/system.c |
| 35 | |
| 36 | test_get_mbox_info_v2_SOURCES = %reldir%/get_mbox_info_v2.c \ |
| 37 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 38 | |
| 39 | test_reset_state_SOURCES = %reldir%/reset_state.c \ |
| 40 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 41 | |
| 42 | test_get_flash_info_v2_SOURCES = %reldir%/get_flash_info_v2.c \ |
| 43 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 44 | |
| 45 | test_create_read_window_v2_SOURCES = %reldir%/create_read_window_v2.c \ |
| 46 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 47 | |
| 48 | test_create_write_window_v2_SOURCES = %reldir%/create_write_window_v2.c \ |
| 49 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 50 | |
| 51 | test_close_window_v2_SOURCES = %reldir%/close_window_v2.c \ |
| 52 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 53 | |
| 54 | test_mark_write_dirty_v2_SOURCES = %reldir%/mark_write_dirty_v2.c \ |
| 55 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 56 | |
| 57 | test_write_flush_v2_SOURCES = %reldir%/write_flush_v2.c \ |
| 58 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 59 | |
| 60 | test_mark_write_erased_v2_SOURCES = %reldir%/mark_write_erased_v2.c \ |
| 61 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 62 | |
| 63 | test_bmc_event_ack_v2_SOURCES = %reldir%/bmc_event_ack_v2.c \ |
| 64 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 65 | |
| 66 | test_create_oversize_window_SOURCES = %reldir%/create_oversize_window.c \ |
| 67 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 68 | |
| 69 | test_create_zero_size_window_SOURCES = %reldir%/create_zero_size_window.c \ |
| 70 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 71 | |
| 72 | test_implicit_flush_SOURCES = %reldir%/implicit_flush.c \ |
| 73 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 74 | |
| 75 | test_request_high_version_SOURCES = %reldir%/request_high_version.c \ |
| 76 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 77 | |
| 78 | test_request_low_version_SOURCES = %reldir%/request_low_version.c \ |
| 79 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 80 | |
| 81 | test_mark_read_dirty_SOURCES = %reldir%/mark_read_dirty.c \ |
| 82 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 83 | |
| 84 | test_read_window_write_flush_SOURCES = %reldir%/read_window_write_flush.c \ |
| 85 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 86 | |
| 87 | test_read_window_mark_write_erased_SOURCES = %reldir%/read_window_mark_write_erased.c \ |
| 88 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 89 | |
| 90 | test_write_window_dirty_erase_SOURCES = %reldir%/write_window_dirty_erase.c \ |
| 91 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 92 | |
| 93 | test_invalid_command_SOURCES = %reldir%/invalid_command.c \ |
| 94 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 95 | |
| 96 | test_read_window_cycle_SOURCES = %reldir%/read_window_cycle.c \ |
| 97 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 98 | |
| 99 | test_sequence_numbers_SOURCES = %reldir%/sequence_numbers.c \ |
| 100 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 101 | |
| 102 | test_get_mbox_info_v2_timeout_SOURCES = %reldir%/get_mbox_info_v2_timeout.c \ |
| 103 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 104 | |
| 105 | TEST_MBOX_VPNOR_SRCS = common.c pnor_partition_table.cpp |
| 106 | |
| 107 | test_create_pnor_partition_table_SOURCES = \ |
| 108 | $(TEST_MBOX_VPNOR_SRCS) \ |
| 109 | %reldir%/create_pnor_partition_table.cpp |
| 110 | test_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 111 | test_create_pnor_partition_table_LDADD = -lstdc++fs \ |
| 112 | $(SDBUSPLUS_LIBS) \ |
| 113 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 114 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 115 | |
| 116 | test_create_read_window_vpnor_SOURCES = \ |
| 117 | $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \ |
| 118 | mboxd_msg.c \ |
| 119 | mboxd_windows.c \ |
| 120 | mboxd_lpc.c \ |
| 121 | mboxd_lpc_virtual.cpp \ |
| 122 | mboxd_pnor_partition_table.cpp \ |
| 123 | mboxd_flash_virtual.cpp \ |
| 124 | pnor_partition.cpp \ |
| 125 | %reldir%/create_read_window_vpnor.cpp |
| 126 | test_create_read_window_vpnor_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 127 | test_create_read_window_vpnor_LDADD = -lstdc++fs \ |
| 128 | $(SDBUSPLUS_LIBS) \ |
| 129 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 130 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 131 | |
| 132 | test_write_flash_vpnor_SOURCES = \ |
| 133 | $(TEST_MBOX_VPNOR_SRCS) \ |
| 134 | mboxd_pnor_partition_table.cpp \ |
| 135 | mboxd_flash_virtual.cpp \ |
| 136 | mtd.c \ |
| 137 | pnor_partition.cpp \ |
| 138 | %reldir%/write_flash_vpnor.cpp |
| 139 | test_write_flash_vpnor_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 140 | test_write_flash_vpnor_LDADD = -lstdc++fs \ |
| 141 | $(SDBUSPLUS_LIBS) \ |
| 142 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 143 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 144 | |
| 145 | check_PROGRAMS = %reldir%/sanity \ |
| 146 | %reldir%/copy_flash \ |
| 147 | %reldir%/erase_flash \ |
| 148 | %reldir%/write_flash \ |
| 149 | %reldir%/get_mbox_info_v2 \ |
| 150 | %reldir%/reset_state \ |
| 151 | %reldir%/get_flash_info_v2 \ |
| 152 | %reldir%/create_read_window_v2 \ |
| 153 | %reldir%/create_write_window_v2 \ |
| 154 | %reldir%/close_window_v2 \ |
| 155 | %reldir%/mark_write_dirty_v2 \ |
| 156 | %reldir%/write_flush_v2 \ |
| 157 | %reldir%/mark_write_erased_v2 \ |
| 158 | %reldir%/bmc_event_ack_v2 \ |
| 159 | %reldir%/create_oversize_window \ |
| 160 | %reldir%/create_zero_size_window \ |
| 161 | %reldir%/implicit_flush \ |
| 162 | %reldir%/request_high_version \ |
| 163 | %reldir%/request_low_version \ |
| 164 | %reldir%/mark_read_dirty \ |
| 165 | %reldir%/read_window_write_flush \ |
| 166 | %reldir%/read_window_mark_write_erased \ |
| 167 | %reldir%/write_window_dirty_erase \ |
| 168 | %reldir%/invalid_command \ |
| 169 | %reldir%/read_window_cycle \ |
| 170 | %reldir%/sequence_numbers \ |
| 171 | %reldir%/get_mbox_info_v2_timeout |
| 172 | |
| 173 | if VIRTUAL_PNOR_ENABLED |
| 174 | check_PROGRAMS += \ |
| 175 | %reldir%/create_pnor_partition_table \ |
| 176 | %reldir%/create_read_window_vpnor \ |
| 177 | %reldir%/write_flash_vpnor |
| 178 | endif |