Andrew Jeffery | 2277804 | 2017-01-13 22:37:26 +1030 | [diff] [blame] | 1 | ACLOCAL_AMFLAGS = -I m4 |
Suraj Jitindar Singh | ddf0edb | 2017-03-28 10:50:40 +1100 | [diff] [blame] | 2 | sbin_PROGRAMS = mboxd mboxctl |
Andrew Jeffery | 2277804 | 2017-01-13 22:37:26 +1030 | [diff] [blame] | 3 | |
Andrew Jeffery | 41f211b | 2017-04-12 14:08:03 +0930 | [diff] [blame] | 4 | mboxd_SOURCES = mboxd.c common.c mboxd_dbus.c mboxd_flash.c mboxd_lpc.c mboxd_msg.c mboxd_windows.c mtd.c |
Suraj Jitindar Singh | e39c916 | 2017-03-28 10:47:43 +1100 | [diff] [blame] | 5 | mboxd_LDFLAGS = $(LIBSYSTEMD_LIBS) |
| 6 | mboxd_CFLAGS = $(LIBSYSTEMD_CFLAGS) |
Suraj Jitindar Singh | ddf0edb | 2017-03-28 10:50:40 +1100 | [diff] [blame] | 7 | |
| 8 | mboxctl_SOURCES = mboxctl.c |
| 9 | mboxctl_LDFLAGS = $(LIBSYSTEMD_LIBS) |
| 10 | mboxctl_CFLAGS = $(LIBSYSTEMD_CFLAGS) |
Andrew Jeffery | 65e2162 | 2017-04-12 20:25:31 +0930 | [diff] [blame] | 11 | |
| 12 | @CODE_COVERAGE_RULES@ |
| 13 | |
| 14 | AM_LIBS = $(CODE_COVERAGE_LIBS) |
| 15 | AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) |
| 16 | AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
Andrew Jeffery | 62af1ba | 2017-04-24 13:36:46 +0930 | [diff] [blame] | 17 | |
| 18 | test_sanity_SOURCES = test/sanity.c |
| 19 | |
Andrew Jeffery | 0484c75 | 2017-04-12 14:20:18 +0930 | [diff] [blame] | 20 | test_copy_flash_SOURCES = test/copy_flash.c mboxd_flash.c common.c mtd.c test/tmpf.c |
| 21 | |
Andrew Jeffery | f37ae02 | 2017-04-12 14:21:37 +0930 | [diff] [blame] | 22 | test_erase_flash_SOURCES = test/erase_flash.c mboxd_flash.c common.c test/tmpf.c |
| 23 | |
Andrew Jeffery | 26b3567 | 2017-04-12 14:22:25 +0930 | [diff] [blame] | 24 | test_write_flash_SOURCES = test/write_flash.c mboxd_flash.c common.c test/tmpf.c |
| 25 | |
Andrew Jeffery | c1e7db3 | 2017-04-12 14:36:10 +0930 | [diff] [blame] | 26 | TEST_MBOX_SRCS = mboxd_msg.c mboxd_windows.c mboxd_lpc.c mboxd_flash.c common.c |
| 27 | TEST_MOCK_SRCS = test/tmpf.c test/mbox.c test/system.c |
| 28 | |
| 29 | test_get_mbox_info_v2_SOURCES = test/get_mbox_info_v2.c \ |
| 30 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 31 | |
Andrew Jeffery | 16be9f6 | 2017-04-12 14:36:49 +0930 | [diff] [blame] | 32 | test_reset_state_SOURCES = test/reset_state.c \ |
| 33 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 34 | |
Andrew Jeffery | 182d4fe | 2017-04-12 14:39:24 +0930 | [diff] [blame] | 35 | test_get_flash_info_v2_SOURCES = test/get_flash_info_v2.c \ |
| 36 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 37 | |
Andrew Jeffery | 3e3cf28 | 2017-04-12 14:40:31 +0930 | [diff] [blame] | 38 | test_create_read_window_v2_SOURCES = test/create_read_window_v2.c \ |
| 39 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 40 | |
Andrew Jeffery | ccaec50 | 2017-04-12 14:42:36 +0930 | [diff] [blame] | 41 | test_create_write_window_v2_SOURCES = test/create_write_window_v2.c \ |
| 42 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 43 | |
Andrew Jeffery | d8f24ef | 2017-04-12 14:43:57 +0930 | [diff] [blame] | 44 | test_close_window_v2_SOURCES = test/close_window_v2.c \ |
| 45 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 46 | |
Andrew Jeffery | 4397af9 | 2017-04-12 14:46:22 +0930 | [diff] [blame] | 47 | test_mark_write_dirty_v2_SOURCES = test/mark_write_dirty_v2.c \ |
| 48 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 49 | |
Andrew Jeffery | 1a03647 | 2017-04-12 14:47:03 +0930 | [diff] [blame] | 50 | test_write_flush_v2_SOURCES = test/write_flush_v2.c \ |
| 51 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 52 | |
Andrew Jeffery | c5da148 | 2017-04-12 14:49:07 +0930 | [diff] [blame] | 53 | test_mark_write_erased_v2_SOURCES = test/mark_write_erased_v2.c \ |
| 54 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 55 | |
Andrew Jeffery | 1770ce8 | 2017-04-12 14:50:32 +0930 | [diff] [blame] | 56 | test_bmc_event_ack_v2_SOURCES = test/bmc_event_ack_v2.c \ |
| 57 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 58 | |
Andrew Jeffery | 5f374bc | 2017-04-12 22:06:06 +0930 | [diff] [blame] | 59 | test_create_oversize_window_SOURCES = test/create_oversize_window.c \ |
| 60 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 61 | |
Andrew Jeffery | efc6ada | 2017-04-12 22:13:59 +0930 | [diff] [blame] | 62 | test_create_zero_size_window_SOURCES = test/create_zero_size_window.c \ |
| 63 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 64 | |
Andrew Jeffery | d4a5fc8 | 2017-04-12 22:50:04 +0930 | [diff] [blame] | 65 | test_implicit_flush_SOURCES = test/implicit_flush.c \ |
| 66 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 67 | |
Andrew Jeffery | 4510a19 | 2017-04-13 13:40:03 +0930 | [diff] [blame] | 68 | test_request_high_version_SOURCES = test/request_high_version.c \ |
| 69 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 70 | |
Andrew Jeffery | bcacb4e | 2017-04-13 13:45:13 +0930 | [diff] [blame] | 71 | test_request_low_version_SOURCES = test/request_low_version.c \ |
| 72 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 73 | |
Andrew Jeffery | ea469b0 | 2017-04-13 13:56:43 +0930 | [diff] [blame] | 74 | test_mark_read_dirty_SOURCES = test/mark_read_dirty.c \ |
| 75 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 76 | |
Andrew Jeffery | acdb4b3 | 2017-04-13 14:02:23 +0930 | [diff] [blame] | 77 | test_read_window_write_flush_SOURCES = test/read_window_write_flush.c \ |
| 78 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 79 | |
Andrew Jeffery | aed3a5f | 2017-04-13 14:44:26 +0930 | [diff] [blame] | 80 | test_read_window_mark_write_erased_SOURCES = test/read_window_mark_write_erased.c \ |
| 81 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 82 | |
Andrew Jeffery | 4edb58c | 2017-04-13 15:10:15 +0930 | [diff] [blame] | 83 | test_write_window_dirty_erase_SOURCES = test/write_window_dirty_erase.c \ |
| 84 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 85 | |
Andrew Jeffery | 9d4b888 | 2017-04-13 15:39:45 +0930 | [diff] [blame] | 86 | test_invalid_command_SOURCES = test/invalid_command.c \ |
| 87 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 88 | |
Andrew Jeffery | b34cc54 | 2017-04-13 16:09:19 +0930 | [diff] [blame] | 89 | test_read_window_cycle_SOURCES = test/read_window_cycle.c \ |
| 90 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 91 | |
Andrew Jeffery | cbbc13c | 2017-04-24 17:22:21 +0930 | [diff] [blame^] | 92 | test_sequence_numbers_SOURCES = test/sequence_numbers.c \ |
| 93 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 94 | |
Andrew Jeffery | 0484c75 | 2017-04-12 14:20:18 +0930 | [diff] [blame] | 95 | check_PROGRAMS = test/sanity \ |
Andrew Jeffery | c1e7db3 | 2017-04-12 14:36:10 +0930 | [diff] [blame] | 96 | test/copy_flash \ |
| 97 | test/erase_flash \ |
| 98 | test/write_flash \ |
Andrew Jeffery | 16be9f6 | 2017-04-12 14:36:49 +0930 | [diff] [blame] | 99 | test/get_mbox_info_v2 \ |
Andrew Jeffery | 182d4fe | 2017-04-12 14:39:24 +0930 | [diff] [blame] | 100 | test/reset_state \ |
Andrew Jeffery | 3e3cf28 | 2017-04-12 14:40:31 +0930 | [diff] [blame] | 101 | test/get_flash_info_v2 \ |
Andrew Jeffery | ccaec50 | 2017-04-12 14:42:36 +0930 | [diff] [blame] | 102 | test/create_read_window_v2 \ |
Andrew Jeffery | d8f24ef | 2017-04-12 14:43:57 +0930 | [diff] [blame] | 103 | test/create_write_window_v2 \ |
Andrew Jeffery | 4397af9 | 2017-04-12 14:46:22 +0930 | [diff] [blame] | 104 | test/close_window_v2 \ |
Andrew Jeffery | 1a03647 | 2017-04-12 14:47:03 +0930 | [diff] [blame] | 105 | test/mark_write_dirty_v2 \ |
Andrew Jeffery | c5da148 | 2017-04-12 14:49:07 +0930 | [diff] [blame] | 106 | test/write_flush_v2 \ |
Andrew Jeffery | 1770ce8 | 2017-04-12 14:50:32 +0930 | [diff] [blame] | 107 | test/mark_write_erased_v2 \ |
Andrew Jeffery | 5f374bc | 2017-04-12 22:06:06 +0930 | [diff] [blame] | 108 | test/bmc_event_ack_v2 \ |
Andrew Jeffery | efc6ada | 2017-04-12 22:13:59 +0930 | [diff] [blame] | 109 | test/create_oversize_window \ |
Andrew Jeffery | d4a5fc8 | 2017-04-12 22:50:04 +0930 | [diff] [blame] | 110 | test/create_zero_size_window \ |
Andrew Jeffery | 4510a19 | 2017-04-13 13:40:03 +0930 | [diff] [blame] | 111 | test/implicit_flush \ |
Andrew Jeffery | bcacb4e | 2017-04-13 13:45:13 +0930 | [diff] [blame] | 112 | test/request_high_version \ |
Andrew Jeffery | ea469b0 | 2017-04-13 13:56:43 +0930 | [diff] [blame] | 113 | test/request_low_version \ |
Andrew Jeffery | acdb4b3 | 2017-04-13 14:02:23 +0930 | [diff] [blame] | 114 | test/mark_read_dirty \ |
Andrew Jeffery | aed3a5f | 2017-04-13 14:44:26 +0930 | [diff] [blame] | 115 | test/read_window_write_flush \ |
Andrew Jeffery | 4edb58c | 2017-04-13 15:10:15 +0930 | [diff] [blame] | 116 | test/read_window_mark_write_erased \ |
Andrew Jeffery | 9d4b888 | 2017-04-13 15:39:45 +0930 | [diff] [blame] | 117 | test/write_window_dirty_erase \ |
Andrew Jeffery | b34cc54 | 2017-04-13 16:09:19 +0930 | [diff] [blame] | 118 | test/invalid_command \ |
Andrew Jeffery | cbbc13c | 2017-04-24 17:22:21 +0930 | [diff] [blame^] | 119 | test/read_window_cycle \ |
| 120 | test/sequence_numbers |
Andrew Jeffery | 62af1ba | 2017-04-24 13:36:46 +0930 | [diff] [blame] | 121 | |
| 122 | TESTS = $(check_PROGRAMS) |