blob: addf2f9168c4b6fa38ad50dd6c9fab76090ec5da [file] [log] [blame]
Andrew Jeffery5345c512018-02-21 21:36:59 +10301test_sanity_SOURCES = %reldir%/sanity.c
2
Andrew Jefferye0cdd3e2018-08-08 16:51:44 +09303test_flash_copy_SOURCES = \
4 %reldir%/flash_copy.c \
Evan Lojewskif1e547c2019-03-14 14:34:33 +10305 mtd/backend.c \
6 lpc.c \
Andrew Jeffery5345c512018-02-21 21:36:59 +10307 common.c mtd.c \
Andrew Jeffery2dfc2a22019-03-14 16:42:15 +10308 %reldir%/tmpf.c \
9 %reldir%/system.c
Andrew Jeffery5345c512018-02-21 21:36:59 +103010
Andrew Jeffery4f5d29c2018-08-08 16:58:04 +093011test_flash_erase_SOURCES = \
12 %reldir%/flash_erase.c \
Evan Lojewskif1e547c2019-03-14 14:34:33 +103013 mtd/backend.c \
14 lpc.c \
Andrew Jeffery5345c512018-02-21 21:36:59 +103015 common.c \
16 %reldir%/tmpf.c
17
Andrew Jeffery0293f2f2018-08-08 16:59:45 +093018test_flash_write_SOURCES = \
19 %reldir%/flash_write.c \
Evan Lojewskif1e547c2019-03-14 14:34:33 +103020 mtd/backend.c \
21 lpc.c \
Andrew Jeffery5345c512018-02-21 21:36:59 +103022 common.c \
23 %reldir%/tmpf.c
24
25TEST_MBOX_SRCS = \
Andrew Jeffery457a6e52018-08-08 11:21:08 +093026 transport_mbox.c \
Andrew Jefferyf593b1b2018-08-08 11:01:04 +093027 windows.c \
Andrew Jefferycd186112018-08-08 10:47:55 +093028 lpc.c \
Andrew Jeffery5345c512018-02-21 21:36:59 +103029 common.c \
Andrew Jefferycb935042019-03-15 09:54:33 +103030 protocol.c
Andrew Jeffery5345c512018-02-21 21:36:59 +103031
Evan Lojewskif1e547c2019-03-14 14:34:33 +103032TEST_MOCK_CORE = \
33 %reldir%/tmpf.c \
34 mtd/backend.c \
35 %reldir%/mbox.c \
36 %reldir%/system.c
37
Andrew Jeffery5320f6e2019-03-15 12:40:41 +103038TEST_MOCK_SRCS = $(TEST_MOCK_CORE)
Andrew Jeffery5345c512018-02-21 21:36:59 +103039
40test_get_mbox_info_v2_SOURCES = %reldir%/get_mbox_info_v2.c \
41 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
42
43test_reset_state_SOURCES = %reldir%/reset_state.c \
44 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
45
46test_get_flash_info_v2_SOURCES = %reldir%/get_flash_info_v2.c \
47 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
48
49test_create_read_window_v2_SOURCES = %reldir%/create_read_window_v2.c \
50 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
51
52test_create_write_window_v2_SOURCES = %reldir%/create_write_window_v2.c \
53 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
54
55test_close_window_v2_SOURCES = %reldir%/close_window_v2.c \
56 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
57
58test_mark_write_dirty_v2_SOURCES = %reldir%/mark_write_dirty_v2.c \
59 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
60
61test_write_flush_v2_SOURCES = %reldir%/write_flush_v2.c \
62 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
63
64test_mark_write_erased_v2_SOURCES = %reldir%/mark_write_erased_v2.c \
65 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
66
67test_bmc_event_ack_v2_SOURCES = %reldir%/bmc_event_ack_v2.c \
68 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
69
70test_create_oversize_window_SOURCES = %reldir%/create_oversize_window.c \
71 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
72
73test_create_zero_size_window_SOURCES = %reldir%/create_zero_size_window.c \
74 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
75
76test_implicit_flush_SOURCES = %reldir%/implicit_flush.c \
77 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
78
79test_request_high_version_SOURCES = %reldir%/request_high_version.c \
80 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
81
82test_request_low_version_SOURCES = %reldir%/request_low_version.c \
83 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
84
85test_mark_read_dirty_SOURCES = %reldir%/mark_read_dirty.c \
86 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
87
88test_read_window_write_flush_SOURCES = %reldir%/read_window_write_flush.c \
89 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
90
91test_read_window_mark_write_erased_SOURCES = %reldir%/read_window_mark_write_erased.c \
92 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
93
94test_write_window_dirty_erase_SOURCES = %reldir%/write_window_dirty_erase.c \
95 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
96
97test_invalid_command_SOURCES = %reldir%/invalid_command.c \
98 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
99
100test_read_window_cycle_SOURCES = %reldir%/read_window_cycle.c \
101 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
102
103test_sequence_numbers_SOURCES = %reldir%/sequence_numbers.c \
104 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
105
106test_get_mbox_info_v2_timeout_SOURCES = %reldir%/get_mbox_info_v2_timeout.c \
107 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
108
Andrew Jefferyc84b8f82018-08-28 16:50:09 +0930109test_windows_equally_evictable_SOURCES = %reldir%/windows_equally_evictable.c \
110 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
111
Andrew Jeffery5345c512018-02-21 21:36:59 +1030112check_PROGRAMS += \
Andrew Jeffery85985912018-02-22 10:20:31 +1030113 %reldir%/sanity \
Andrew Jefferye0cdd3e2018-08-08 16:51:44 +0930114 %reldir%/flash_copy \
Andrew Jeffery4f5d29c2018-08-08 16:58:04 +0930115 %reldir%/flash_erase \
Andrew Jeffery0293f2f2018-08-08 16:59:45 +0930116 %reldir%/flash_write \
Andrew Jeffery85985912018-02-22 10:20:31 +1030117 %reldir%/get_mbox_info_v2 \
118 %reldir%/reset_state \
119 %reldir%/get_flash_info_v2 \
120 %reldir%/create_read_window_v2 \
121 %reldir%/create_write_window_v2 \
122 %reldir%/close_window_v2 \
123 %reldir%/mark_write_dirty_v2 \
124 %reldir%/write_flush_v2 \
125 %reldir%/mark_write_erased_v2 \
126 %reldir%/bmc_event_ack_v2 \
127 %reldir%/create_oversize_window \
128 %reldir%/create_zero_size_window \
129 %reldir%/implicit_flush \
130 %reldir%/request_high_version \
131 %reldir%/request_low_version \
132 %reldir%/mark_read_dirty \
133 %reldir%/read_window_write_flush \
134 %reldir%/read_window_mark_write_erased \
135 %reldir%/write_window_dirty_erase \
136 %reldir%/invalid_command \
137 %reldir%/read_window_cycle \
138 %reldir%/sequence_numbers \
Andrew Jefferyc84b8f82018-08-28 16:50:09 +0930139 %reldir%/get_mbox_info_v2_timeout \
140 %reldir%/windows_equally_evictable