1ACLOCAL_AMFLAGS = -I m4 2sbin_PROGRAMS = mboxd mboxctl 3 4mboxd_SOURCES = mboxd.c common.c mboxd_dbus.c mboxd_flash.c mboxd_lpc.c mboxd_msg.c mboxd_windows.c mtd.c 5mboxd_LDFLAGS = $(LIBSYSTEMD_LIBS) 6mboxd_CFLAGS = $(LIBSYSTEMD_CFLAGS) 7 8mboxctl_SOURCES = mboxctl.c 9mboxctl_LDFLAGS = $(LIBSYSTEMD_LIBS) 10mboxctl_CFLAGS = $(LIBSYSTEMD_CFLAGS) 11 12@CODE_COVERAGE_RULES@ 13 14AM_LIBS = $(CODE_COVERAGE_LIBS) 15AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) 16AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) 17 18test_sanity_SOURCES = test/sanity.c 19 20test_copy_flash_SOURCES = test/copy_flash.c mboxd_flash.c common.c mtd.c test/tmpf.c 21 22test_erase_flash_SOURCES = test/erase_flash.c mboxd_flash.c common.c test/tmpf.c 23 24test_write_flash_SOURCES = test/write_flash.c mboxd_flash.c common.c test/tmpf.c 25 26TEST_MBOX_SRCS = mboxd_msg.c mboxd_windows.c mboxd_lpc.c mboxd_flash.c common.c 27TEST_MOCK_SRCS = test/tmpf.c test/mbox.c test/system.c 28 29test_get_mbox_info_v2_SOURCES = test/get_mbox_info_v2.c \ 30 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 31 32test_reset_state_SOURCES = test/reset_state.c \ 33 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 34 35test_get_flash_info_v2_SOURCES = test/get_flash_info_v2.c \ 36 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 37 38test_create_read_window_v2_SOURCES = test/create_read_window_v2.c \ 39 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 40 41test_create_write_window_v2_SOURCES = test/create_write_window_v2.c \ 42 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 43 44test_close_window_v2_SOURCES = test/close_window_v2.c \ 45 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 46 47test_mark_write_dirty_v2_SOURCES = test/mark_write_dirty_v2.c \ 48 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 49 50test_write_flush_v2_SOURCES = test/write_flush_v2.c \ 51 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 52 53test_mark_write_erased_v2_SOURCES = test/mark_write_erased_v2.c \ 54 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 55 56test_bmc_event_ack_v2_SOURCES = test/bmc_event_ack_v2.c \ 57 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 58 59test_create_oversize_window_SOURCES = test/create_oversize_window.c \ 60 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 61 62test_create_zero_size_window_SOURCES = test/create_zero_size_window.c \ 63 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 64 65test_implicit_flush_SOURCES = test/implicit_flush.c \ 66 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 67 68test_request_high_version_SOURCES = test/request_high_version.c \ 69 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 70 71test_request_low_version_SOURCES = test/request_low_version.c \ 72 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 73 74test_mark_read_dirty_SOURCES = test/mark_read_dirty.c \ 75 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 76 77test_read_window_write_flush_SOURCES = test/read_window_write_flush.c \ 78 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 79 80test_read_window_mark_write_erased_SOURCES = test/read_window_mark_write_erased.c \ 81 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 82 83test_write_window_dirty_erase_SOURCES = test/write_window_dirty_erase.c \ 84 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 85 86test_invalid_command_SOURCES = test/invalid_command.c \ 87 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 88 89test_read_window_cycle_SOURCES = test/read_window_cycle.c \ 90 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 91 92test_sequence_numbers_SOURCES = test/sequence_numbers.c \ 93 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 94 95check_PROGRAMS = test/sanity \ 96 test/copy_flash \ 97 test/erase_flash \ 98 test/write_flash \ 99 test/get_mbox_info_v2 \ 100 test/reset_state \ 101 test/get_flash_info_v2 \ 102 test/create_read_window_v2 \ 103 test/create_write_window_v2 \ 104 test/close_window_v2 \ 105 test/mark_write_dirty_v2 \ 106 test/write_flush_v2 \ 107 test/mark_write_erased_v2 \ 108 test/bmc_event_ack_v2 \ 109 test/create_oversize_window \ 110 test/create_zero_size_window \ 111 test/implicit_flush \ 112 test/request_high_version \ 113 test/request_low_version \ 114 test/mark_read_dirty \ 115 test/read_window_write_flush \ 116 test/read_window_mark_write_erased \ 117 test/write_window_dirty_erase \ 118 test/invalid_command \ 119 test/read_window_cycle \ 120 test/sequence_numbers 121 122TESTS = $(check_PROGRAMS) 123