blob: 42512475043f5d717e51d38a5fff44d9d26f978b [file] [log] [blame]
Andrew Jeffery5345c512018-02-21 21:36:59 +10301AM_LIBS = $(CODE_COVERAGE_LIBS)
2AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)
3AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
4AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
5
6test_sanity_SOURCES = %reldir%/sanity.c
7
8test_copy_flash_SOURCES = \
9 %reldir%/copy_flash.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103010 mboxd_flash.c \
Andrew Jeffery5345c512018-02-21 21:36:59 +103011 common.c mtd.c \
12 %reldir%/tmpf.c
13
14test_erase_flash_SOURCES = \
15 %reldir%/erase_flash.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103016 mboxd_flash.c \
Andrew Jeffery5345c512018-02-21 21:36:59 +103017 common.c \
18 %reldir%/tmpf.c
19
20test_write_flash_SOURCES = \
21 %reldir%/write_flash.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103022 mboxd_flash.c \
Andrew Jeffery5345c512018-02-21 21:36:59 +103023 common.c \
24 %reldir%/tmpf.c
25
26TEST_MBOX_SRCS = \
27 mboxd_msg.c \
28 mboxd_windows.c \
29 mboxd_lpc.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103030 mboxd_lpc_reset.c \
Andrew Jeffery5345c512018-02-21 21:36:59 +103031 common.c \
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103032 mboxd_flash.c
Andrew Jeffery5345c512018-02-21 21:36:59 +103033
34TEST_MOCK_SRCS = %reldir%/tmpf.c %reldir%/mbox.c %reldir%/system.c
35
36test_get_mbox_info_v2_SOURCES = %reldir%/get_mbox_info_v2.c \
37 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
38
39test_reset_state_SOURCES = %reldir%/reset_state.c \
40 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
41
42test_get_flash_info_v2_SOURCES = %reldir%/get_flash_info_v2.c \
43 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
44
45test_create_read_window_v2_SOURCES = %reldir%/create_read_window_v2.c \
46 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
47
48test_create_write_window_v2_SOURCES = %reldir%/create_write_window_v2.c \
49 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
50
51test_close_window_v2_SOURCES = %reldir%/close_window_v2.c \
52 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
53
54test_mark_write_dirty_v2_SOURCES = %reldir%/mark_write_dirty_v2.c \
55 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
56
57test_write_flush_v2_SOURCES = %reldir%/write_flush_v2.c \
58 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
59
60test_mark_write_erased_v2_SOURCES = %reldir%/mark_write_erased_v2.c \
61 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
62
63test_bmc_event_ack_v2_SOURCES = %reldir%/bmc_event_ack_v2.c \
64 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
65
66test_create_oversize_window_SOURCES = %reldir%/create_oversize_window.c \
67 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
68
69test_create_zero_size_window_SOURCES = %reldir%/create_zero_size_window.c \
70 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
71
72test_implicit_flush_SOURCES = %reldir%/implicit_flush.c \
73 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
74
75test_request_high_version_SOURCES = %reldir%/request_high_version.c \
76 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
77
78test_request_low_version_SOURCES = %reldir%/request_low_version.c \
79 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
80
81test_mark_read_dirty_SOURCES = %reldir%/mark_read_dirty.c \
82 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
83
84test_read_window_write_flush_SOURCES = %reldir%/read_window_write_flush.c \
85 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
86
87test_read_window_mark_write_erased_SOURCES = %reldir%/read_window_mark_write_erased.c \
88 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
89
90test_write_window_dirty_erase_SOURCES = %reldir%/write_window_dirty_erase.c \
91 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
92
93test_invalid_command_SOURCES = %reldir%/invalid_command.c \
94 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
95
96test_read_window_cycle_SOURCES = %reldir%/read_window_cycle.c \
97 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
98
99test_sequence_numbers_SOURCES = %reldir%/sequence_numbers.c \
100 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
101
102test_get_mbox_info_v2_timeout_SOURCES = %reldir%/get_mbox_info_v2_timeout.c \
103 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
104
Andrew Jeffery5345c512018-02-21 21:36:59 +1030105check_PROGRAMS += \
Andrew Jeffery85985912018-02-22 10:20:31 +1030106 %reldir%/sanity \
107 %reldir%/copy_flash \
108 %reldir%/erase_flash \
109 %reldir%/write_flash \
110 %reldir%/get_mbox_info_v2 \
111 %reldir%/reset_state \
112 %reldir%/get_flash_info_v2 \
113 %reldir%/create_read_window_v2 \
114 %reldir%/create_write_window_v2 \
115 %reldir%/close_window_v2 \
116 %reldir%/mark_write_dirty_v2 \
117 %reldir%/write_flush_v2 \
118 %reldir%/mark_write_erased_v2 \
119 %reldir%/bmc_event_ack_v2 \
120 %reldir%/create_oversize_window \
121 %reldir%/create_zero_size_window \
122 %reldir%/implicit_flush \
123 %reldir%/request_high_version \
124 %reldir%/request_low_version \
125 %reldir%/mark_read_dirty \
126 %reldir%/read_window_write_flush \
127 %reldir%/read_window_mark_write_erased \
128 %reldir%/write_window_dirty_erase \
129 %reldir%/invalid_command \
130 %reldir%/read_window_cycle \
131 %reldir%/sequence_numbers \
132 %reldir%/get_mbox_info_v2_timeout