blob: 9d1ee3a12d35d2f6a86bd814c6914df4cbcc38dc [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 Jeffery0484c752017-04-12 14:20:18 +093062check_PROGRAMS = test/sanity \
Andrew Jefferyc1e7db32017-04-12 14:36:10 +093063 test/copy_flash \
64 test/erase_flash \
65 test/write_flash \
Andrew Jeffery16be9f62017-04-12 14:36:49 +093066 test/get_mbox_info_v2 \
Andrew Jeffery182d4fe2017-04-12 14:39:24 +093067 test/reset_state \
Andrew Jeffery3e3cf282017-04-12 14:40:31 +093068 test/get_flash_info_v2 \
Andrew Jefferyccaec502017-04-12 14:42:36 +093069 test/create_read_window_v2 \
Andrew Jefferyd8f24ef2017-04-12 14:43:57 +093070 test/create_write_window_v2 \
Andrew Jeffery4397af92017-04-12 14:46:22 +093071 test/close_window_v2 \
Andrew Jeffery1a036472017-04-12 14:47:03 +093072 test/mark_write_dirty_v2 \
Andrew Jefferyc5da1482017-04-12 14:49:07 +093073 test/write_flush_v2 \
Andrew Jeffery1770ce82017-04-12 14:50:32 +093074 test/mark_write_erased_v2 \
Andrew Jeffery5f374bc2017-04-12 22:06:06 +093075 test/bmc_event_ack_v2 \
76 test/create_oversize_window
Andrew Jeffery62af1ba2017-04-24 13:36:46 +093077
78TESTS = $(check_PROGRAMS)