15345c51eSAndrew JefferyAM_LIBS = $(CODE_COVERAGE_LIBS) 25345c51eSAndrew JefferyAM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) 35345c51eSAndrew JefferyAM_CFLAGS = $(CODE_COVERAGE_CFLAGS) 45345c51eSAndrew JefferyAM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) 55345c51eSAndrew Jeffery 65345c51eSAndrew Jefferytest_sanity_SOURCES = %reldir%/sanity.c 75345c51eSAndrew Jeffery 85345c51eSAndrew Jefferytest_copy_flash_SOURCES = \ 95345c51eSAndrew Jeffery %reldir%/copy_flash.c \ 10*53c21aaaSAndrew Jeffery mboxd_flash.c \ 115345c51eSAndrew Jeffery common.c mtd.c \ 125345c51eSAndrew Jeffery %reldir%/tmpf.c 135345c51eSAndrew Jeffery 145345c51eSAndrew Jefferytest_erase_flash_SOURCES = \ 155345c51eSAndrew Jeffery %reldir%/erase_flash.c \ 16*53c21aaaSAndrew Jeffery mboxd_flash.c \ 175345c51eSAndrew Jeffery common.c \ 185345c51eSAndrew Jeffery %reldir%/tmpf.c 195345c51eSAndrew Jeffery 205345c51eSAndrew Jefferytest_write_flash_SOURCES = \ 215345c51eSAndrew Jeffery %reldir%/write_flash.c \ 22*53c21aaaSAndrew Jeffery mboxd_flash.c \ 235345c51eSAndrew Jeffery common.c \ 245345c51eSAndrew Jeffery %reldir%/tmpf.c 255345c51eSAndrew Jeffery 265345c51eSAndrew JefferyTEST_MBOX_SRCS = \ 275345c51eSAndrew Jeffery mboxd_msg.c \ 285345c51eSAndrew Jeffery mboxd_windows.c \ 295345c51eSAndrew Jeffery mboxd_lpc.c \ 30*53c21aaaSAndrew Jeffery mboxd_lpc_reset.c \ 315345c51eSAndrew Jeffery common.c \ 32*53c21aaaSAndrew Jeffery mboxd_flash.c 335345c51eSAndrew Jeffery 345345c51eSAndrew JefferyTEST_MOCK_SRCS = %reldir%/tmpf.c %reldir%/mbox.c %reldir%/system.c 355345c51eSAndrew Jeffery 365345c51eSAndrew Jefferytest_get_mbox_info_v2_SOURCES = %reldir%/get_mbox_info_v2.c \ 375345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 385345c51eSAndrew Jeffery 395345c51eSAndrew Jefferytest_reset_state_SOURCES = %reldir%/reset_state.c \ 405345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 415345c51eSAndrew Jeffery 425345c51eSAndrew Jefferytest_get_flash_info_v2_SOURCES = %reldir%/get_flash_info_v2.c \ 435345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 445345c51eSAndrew Jeffery 455345c51eSAndrew Jefferytest_create_read_window_v2_SOURCES = %reldir%/create_read_window_v2.c \ 465345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 475345c51eSAndrew Jeffery 485345c51eSAndrew Jefferytest_create_write_window_v2_SOURCES = %reldir%/create_write_window_v2.c \ 495345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 505345c51eSAndrew Jeffery 515345c51eSAndrew Jefferytest_close_window_v2_SOURCES = %reldir%/close_window_v2.c \ 525345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 535345c51eSAndrew Jeffery 545345c51eSAndrew Jefferytest_mark_write_dirty_v2_SOURCES = %reldir%/mark_write_dirty_v2.c \ 555345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 565345c51eSAndrew Jeffery 575345c51eSAndrew Jefferytest_write_flush_v2_SOURCES = %reldir%/write_flush_v2.c \ 585345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 595345c51eSAndrew Jeffery 605345c51eSAndrew Jefferytest_mark_write_erased_v2_SOURCES = %reldir%/mark_write_erased_v2.c \ 615345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 625345c51eSAndrew Jeffery 635345c51eSAndrew Jefferytest_bmc_event_ack_v2_SOURCES = %reldir%/bmc_event_ack_v2.c \ 645345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 655345c51eSAndrew Jeffery 665345c51eSAndrew Jefferytest_create_oversize_window_SOURCES = %reldir%/create_oversize_window.c \ 675345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 685345c51eSAndrew Jeffery 695345c51eSAndrew Jefferytest_create_zero_size_window_SOURCES = %reldir%/create_zero_size_window.c \ 705345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 715345c51eSAndrew Jeffery 725345c51eSAndrew Jefferytest_implicit_flush_SOURCES = %reldir%/implicit_flush.c \ 735345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 745345c51eSAndrew Jeffery 755345c51eSAndrew Jefferytest_request_high_version_SOURCES = %reldir%/request_high_version.c \ 765345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 775345c51eSAndrew Jeffery 785345c51eSAndrew Jefferytest_request_low_version_SOURCES = %reldir%/request_low_version.c \ 795345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 805345c51eSAndrew Jeffery 815345c51eSAndrew Jefferytest_mark_read_dirty_SOURCES = %reldir%/mark_read_dirty.c \ 825345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 835345c51eSAndrew Jeffery 845345c51eSAndrew Jefferytest_read_window_write_flush_SOURCES = %reldir%/read_window_write_flush.c \ 855345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 865345c51eSAndrew Jeffery 875345c51eSAndrew Jefferytest_read_window_mark_write_erased_SOURCES = %reldir%/read_window_mark_write_erased.c \ 885345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 895345c51eSAndrew Jeffery 905345c51eSAndrew Jefferytest_write_window_dirty_erase_SOURCES = %reldir%/write_window_dirty_erase.c \ 915345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 925345c51eSAndrew Jeffery 935345c51eSAndrew Jefferytest_invalid_command_SOURCES = %reldir%/invalid_command.c \ 945345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 955345c51eSAndrew Jeffery 965345c51eSAndrew Jefferytest_read_window_cycle_SOURCES = %reldir%/read_window_cycle.c \ 975345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 985345c51eSAndrew Jeffery 995345c51eSAndrew Jefferytest_sequence_numbers_SOURCES = %reldir%/sequence_numbers.c \ 1005345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 1015345c51eSAndrew Jeffery 1025345c51eSAndrew Jefferytest_get_mbox_info_v2_timeout_SOURCES = %reldir%/get_mbox_info_v2_timeout.c \ 1035345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 1045345c51eSAndrew Jeffery 10585985915SAndrew Jefferycheck_PROGRAMS += \ 10685985915SAndrew Jeffery %reldir%/sanity \ 1075345c51eSAndrew Jeffery %reldir%/copy_flash \ 1085345c51eSAndrew Jeffery %reldir%/erase_flash \ 1095345c51eSAndrew Jeffery %reldir%/write_flash \ 1105345c51eSAndrew Jeffery %reldir%/get_mbox_info_v2 \ 1115345c51eSAndrew Jeffery %reldir%/reset_state \ 1125345c51eSAndrew Jeffery %reldir%/get_flash_info_v2 \ 1135345c51eSAndrew Jeffery %reldir%/create_read_window_v2 \ 1145345c51eSAndrew Jeffery %reldir%/create_write_window_v2 \ 1155345c51eSAndrew Jeffery %reldir%/close_window_v2 \ 1165345c51eSAndrew Jeffery %reldir%/mark_write_dirty_v2 \ 1175345c51eSAndrew Jeffery %reldir%/write_flush_v2 \ 1185345c51eSAndrew Jeffery %reldir%/mark_write_erased_v2 \ 1195345c51eSAndrew Jeffery %reldir%/bmc_event_ack_v2 \ 1205345c51eSAndrew Jeffery %reldir%/create_oversize_window \ 1215345c51eSAndrew Jeffery %reldir%/create_zero_size_window \ 1225345c51eSAndrew Jeffery %reldir%/implicit_flush \ 1235345c51eSAndrew Jeffery %reldir%/request_high_version \ 1245345c51eSAndrew Jeffery %reldir%/request_low_version \ 1255345c51eSAndrew Jeffery %reldir%/mark_read_dirty \ 1265345c51eSAndrew Jeffery %reldir%/read_window_write_flush \ 1275345c51eSAndrew Jeffery %reldir%/read_window_mark_write_erased \ 1285345c51eSAndrew Jeffery %reldir%/write_window_dirty_erase \ 1295345c51eSAndrew Jeffery %reldir%/invalid_command \ 1305345c51eSAndrew Jeffery %reldir%/read_window_cycle \ 1315345c51eSAndrew Jeffery %reldir%/sequence_numbers \ 1325345c51eSAndrew Jeffery %reldir%/get_mbox_info_v2_timeout 133