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 | 0484c75 | 2017-04-12 14:20:18 +0930 | [diff] [blame] | 62 | check_PROGRAMS = test/sanity \ |
Andrew Jeffery | c1e7db3 | 2017-04-12 14:36:10 +0930 | [diff] [blame] | 63 | test/copy_flash \ |
| 64 | test/erase_flash \ |
| 65 | test/write_flash \ |
Andrew Jeffery | 16be9f6 | 2017-04-12 14:36:49 +0930 | [diff] [blame] | 66 | test/get_mbox_info_v2 \ |
Andrew Jeffery | 182d4fe | 2017-04-12 14:39:24 +0930 | [diff] [blame] | 67 | test/reset_state \ |
Andrew Jeffery | 3e3cf28 | 2017-04-12 14:40:31 +0930 | [diff] [blame] | 68 | test/get_flash_info_v2 \ |
Andrew Jeffery | ccaec50 | 2017-04-12 14:42:36 +0930 | [diff] [blame] | 69 | test/create_read_window_v2 \ |
Andrew Jeffery | d8f24ef | 2017-04-12 14:43:57 +0930 | [diff] [blame] | 70 | test/create_write_window_v2 \ |
Andrew Jeffery | 4397af9 | 2017-04-12 14:46:22 +0930 | [diff] [blame] | 71 | test/close_window_v2 \ |
Andrew Jeffery | 1a03647 | 2017-04-12 14:47:03 +0930 | [diff] [blame] | 72 | test/mark_write_dirty_v2 \ |
Andrew Jeffery | c5da148 | 2017-04-12 14:49:07 +0930 | [diff] [blame] | 73 | test/write_flush_v2 \ |
Andrew Jeffery | 1770ce8 | 2017-04-12 14:50:32 +0930 | [diff] [blame] | 74 | test/mark_write_erased_v2 \ |
Andrew Jeffery | 5f374bc | 2017-04-12 22:06:06 +0930 | [diff] [blame^] | 75 | test/bmc_event_ack_v2 \ |
| 76 | test/create_oversize_window |
Andrew Jeffery | 62af1ba | 2017-04-24 13:36:46 +0930 | [diff] [blame] | 77 | |
| 78 | TESTS = $(check_PROGRAMS) |