blob: 5a2691687946e26468e4ba0795b934108367f062 [file] [log] [blame]
Andrew Jeffery22778042017-01-13 22:37:26 +10301ACLOCAL_AMFLAGS = -I m4
Suraj Jitindar Singhddf0edb2017-03-28 10:50:40 +11002sbin_PROGRAMS = mboxd mboxctl
Andrew Jeffery22778042017-01-13 22:37:26 +10303
Andrew Jeffery41f211b2017-04-12 14:08:03 +09304mboxd_SOURCES = mboxd.c common.c mboxd_dbus.c mboxd_flash.c mboxd_lpc.c mboxd_msg.c mboxd_windows.c mtd.c
Suraj Jitindar Singhe39c9162017-03-28 10:47:43 +11005mboxd_LDFLAGS = $(LIBSYSTEMD_LIBS)
6mboxd_CFLAGS = $(LIBSYSTEMD_CFLAGS)
Suraj Jitindar Singhddf0edb2017-03-28 10:50:40 +11007
8mboxctl_SOURCES = mboxctl.c
9mboxctl_LDFLAGS = $(LIBSYSTEMD_LIBS)
10mboxctl_CFLAGS = $(LIBSYSTEMD_CFLAGS)
Andrew Jeffery65e21622017-04-12 20:25:31 +093011
12@CODE_COVERAGE_RULES@
13
14AM_LIBS = $(CODE_COVERAGE_LIBS)
15AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)
16AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
Andrew Jeffery62af1ba2017-04-24 13:36:46 +093017
18test_sanity_SOURCES = test/sanity.c
19
Andrew Jeffery0484c752017-04-12 14:20:18 +093020test_copy_flash_SOURCES = test/copy_flash.c mboxd_flash.c common.c mtd.c test/tmpf.c
21
Andrew Jefferyf37ae022017-04-12 14:21:37 +093022test_erase_flash_SOURCES = test/erase_flash.c mboxd_flash.c common.c test/tmpf.c
23
Andrew Jeffery26b35672017-04-12 14:22:25 +093024test_write_flash_SOURCES = test/write_flash.c mboxd_flash.c common.c test/tmpf.c
25
Andrew Jefferyc1e7db32017-04-12 14:36:10 +093026TEST_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
Andrew Jeffery16be9f62017-04-12 14:36:49 +093032test_reset_state_SOURCES = test/reset_state.c \
33 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
34
Andrew Jeffery182d4fe2017-04-12 14:39:24 +093035test_get_flash_info_v2_SOURCES = test/get_flash_info_v2.c \
36 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
37
Andrew Jeffery3e3cf282017-04-12 14:40:31 +093038test_create_read_window_v2_SOURCES = test/create_read_window_v2.c \
39 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
40
Andrew Jefferyccaec502017-04-12 14:42:36 +093041test_create_write_window_v2_SOURCES = test/create_write_window_v2.c \
42 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
43
Andrew Jefferyd8f24ef2017-04-12 14:43:57 +093044test_close_window_v2_SOURCES = test/close_window_v2.c \
45 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
46
Andrew Jeffery4397af92017-04-12 14:46:22 +093047test_mark_write_dirty_v2_SOURCES = test/mark_write_dirty_v2.c \
48 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
49
Andrew Jeffery1a036472017-04-12 14:47:03 +093050test_write_flush_v2_SOURCES = test/write_flush_v2.c \
51 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
52
Andrew Jefferyc5da1482017-04-12 14:49:07 +093053test_mark_write_erased_v2_SOURCES = test/mark_write_erased_v2.c \
54 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
55
Andrew Jeffery1770ce82017-04-12 14:50:32 +093056test_bmc_event_ack_v2_SOURCES = test/bmc_event_ack_v2.c \
57 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
58
Andrew Jeffery5f374bc2017-04-12 22:06:06 +093059test_create_oversize_window_SOURCES = test/create_oversize_window.c \
60 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
61
Andrew Jefferyefc6ada2017-04-12 22:13:59 +093062test_create_zero_size_window_SOURCES = test/create_zero_size_window.c \
63 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
64
Andrew Jefferyd4a5fc82017-04-12 22:50:04 +093065test_implicit_flush_SOURCES = test/implicit_flush.c \
66 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
67
Andrew Jeffery4510a192017-04-13 13:40:03 +093068test_request_high_version_SOURCES = test/request_high_version.c \
69 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
70
Andrew Jefferybcacb4e2017-04-13 13:45:13 +093071test_request_low_version_SOURCES = test/request_low_version.c \
72 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
73
Andrew Jefferyea469b02017-04-13 13:56:43 +093074test_mark_read_dirty_SOURCES = test/mark_read_dirty.c \
75 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
76
Andrew Jefferyacdb4b32017-04-13 14:02:23 +093077test_read_window_write_flush_SOURCES = test/read_window_write_flush.c \
78 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
79
Andrew Jefferyaed3a5f2017-04-13 14:44:26 +093080test_read_window_mark_write_erased_SOURCES = test/read_window_mark_write_erased.c \
81 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
82
Andrew Jeffery4edb58c2017-04-13 15:10:15 +093083test_write_window_dirty_erase_SOURCES = test/write_window_dirty_erase.c \
84 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
85
Andrew Jeffery9d4b8882017-04-13 15:39:45 +093086test_invalid_command_SOURCES = test/invalid_command.c \
87 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
88
Andrew Jefferyb34cc542017-04-13 16:09:19 +093089test_read_window_cycle_SOURCES = test/read_window_cycle.c \
90 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
91
Andrew Jefferycbbc13c2017-04-24 17:22:21 +093092test_sequence_numbers_SOURCES = test/sequence_numbers.c \
93 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
94
Suraj Jitindar Singh29b3e8a2017-05-01 16:00:39 +100095test_get_mbox_info_v2_timeout_SOURCES = test/get_mbox_info_v2_timeout.c \
96 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
97
Andrew Jeffery0484c752017-04-12 14:20:18 +093098check_PROGRAMS = test/sanity \
Andrew Jefferyc1e7db32017-04-12 14:36:10 +093099 test/copy_flash \
100 test/erase_flash \
101 test/write_flash \
Andrew Jeffery16be9f62017-04-12 14:36:49 +0930102 test/get_mbox_info_v2 \
Andrew Jeffery182d4fe2017-04-12 14:39:24 +0930103 test/reset_state \
Andrew Jeffery3e3cf282017-04-12 14:40:31 +0930104 test/get_flash_info_v2 \
Andrew Jefferyccaec502017-04-12 14:42:36 +0930105 test/create_read_window_v2 \
Andrew Jefferyd8f24ef2017-04-12 14:43:57 +0930106 test/create_write_window_v2 \
Andrew Jeffery4397af92017-04-12 14:46:22 +0930107 test/close_window_v2 \
Andrew Jeffery1a036472017-04-12 14:47:03 +0930108 test/mark_write_dirty_v2 \
Andrew Jefferyc5da1482017-04-12 14:49:07 +0930109 test/write_flush_v2 \
Andrew Jeffery1770ce82017-04-12 14:50:32 +0930110 test/mark_write_erased_v2 \
Andrew Jeffery5f374bc2017-04-12 22:06:06 +0930111 test/bmc_event_ack_v2 \
Andrew Jefferyefc6ada2017-04-12 22:13:59 +0930112 test/create_oversize_window \
Andrew Jefferyd4a5fc82017-04-12 22:50:04 +0930113 test/create_zero_size_window \
Andrew Jeffery4510a192017-04-13 13:40:03 +0930114 test/implicit_flush \
Andrew Jefferybcacb4e2017-04-13 13:45:13 +0930115 test/request_high_version \
Andrew Jefferyea469b02017-04-13 13:56:43 +0930116 test/request_low_version \
Andrew Jefferyacdb4b32017-04-13 14:02:23 +0930117 test/mark_read_dirty \
Andrew Jefferyaed3a5f2017-04-13 14:44:26 +0930118 test/read_window_write_flush \
Andrew Jeffery4edb58c2017-04-13 15:10:15 +0930119 test/read_window_mark_write_erased \
Andrew Jeffery9d4b8882017-04-13 15:39:45 +0930120 test/write_window_dirty_erase \
Andrew Jefferyb34cc542017-04-13 16:09:19 +0930121 test/invalid_command \
Andrew Jefferycbbc13c2017-04-24 17:22:21 +0930122 test/read_window_cycle \
Suraj Jitindar Singh29b3e8a2017-05-01 16:00:39 +1000123 test/sequence_numbers \
124 test/get_mbox_info_v2_timeout
Andrew Jeffery62af1ba2017-04-24 13:36:46 +0930125
126TESTS = $(check_PROGRAMS)