blob: 71fa8518d19f48da42c65cd2abcfe8bc9308533d [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 \
Andrew Jefferyeebc6bd2018-08-08 10:38:19 +09305 flash.c \
Andrew Jeffery5345c512018-02-21 21:36:59 +10306 common.c mtd.c \
7 %reldir%/tmpf.c
8
Andrew Jeffery4f5d29c2018-08-08 16:58:04 +09309test_flash_erase_SOURCES = \
10 %reldir%/flash_erase.c \
Andrew Jefferyeebc6bd2018-08-08 10:38:19 +093011 flash.c \
Andrew Jeffery5345c512018-02-21 21:36:59 +103012 common.c \
13 %reldir%/tmpf.c
14
Andrew Jeffery0293f2f2018-08-08 16:59:45 +093015test_flash_write_SOURCES = \
16 %reldir%/flash_write.c \
Andrew Jefferyeebc6bd2018-08-08 10:38:19 +093017 flash.c \
Andrew Jeffery5345c512018-02-21 21:36:59 +103018 common.c \
19 %reldir%/tmpf.c
20
21TEST_MBOX_SRCS = \
Andrew Jeffery457a6e52018-08-08 11:21:08 +093022 transport_mbox.c \
Andrew Jefferyf593b1b2018-08-08 11:01:04 +093023 windows.c \
Andrew Jefferycd186112018-08-08 10:47:55 +093024 lpc.c \
25 lpc_reset.c \
Andrew Jeffery5345c512018-02-21 21:36:59 +103026 common.c \
Andrew Jeffery1e531af2018-08-07 13:32:57 +093027 flash.c \
28 protocol.c
Andrew Jeffery5345c512018-02-21 21:36:59 +103029
30TEST_MOCK_SRCS = %reldir%/tmpf.c %reldir%/mbox.c %reldir%/system.c
31
32test_get_mbox_info_v2_SOURCES = %reldir%/get_mbox_info_v2.c \
33 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
34
35test_reset_state_SOURCES = %reldir%/reset_state.c \
36 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
37
38test_get_flash_info_v2_SOURCES = %reldir%/get_flash_info_v2.c \
39 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
40
41test_create_read_window_v2_SOURCES = %reldir%/create_read_window_v2.c \
42 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
43
44test_create_write_window_v2_SOURCES = %reldir%/create_write_window_v2.c \
45 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
46
47test_close_window_v2_SOURCES = %reldir%/close_window_v2.c \
48 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
49
50test_mark_write_dirty_v2_SOURCES = %reldir%/mark_write_dirty_v2.c \
51 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
52
53test_write_flush_v2_SOURCES = %reldir%/write_flush_v2.c \
54 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
55
56test_mark_write_erased_v2_SOURCES = %reldir%/mark_write_erased_v2.c \
57 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
58
59test_bmc_event_ack_v2_SOURCES = %reldir%/bmc_event_ack_v2.c \
60 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
61
62test_create_oversize_window_SOURCES = %reldir%/create_oversize_window.c \
63 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
64
65test_create_zero_size_window_SOURCES = %reldir%/create_zero_size_window.c \
66 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
67
68test_implicit_flush_SOURCES = %reldir%/implicit_flush.c \
69 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
70
71test_request_high_version_SOURCES = %reldir%/request_high_version.c \
72 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
73
74test_request_low_version_SOURCES = %reldir%/request_low_version.c \
75 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
76
77test_mark_read_dirty_SOURCES = %reldir%/mark_read_dirty.c \
78 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
79
80test_read_window_write_flush_SOURCES = %reldir%/read_window_write_flush.c \
81 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
82
83test_read_window_mark_write_erased_SOURCES = %reldir%/read_window_mark_write_erased.c \
84 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
85
86test_write_window_dirty_erase_SOURCES = %reldir%/write_window_dirty_erase.c \
87 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
88
89test_invalid_command_SOURCES = %reldir%/invalid_command.c \
90 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
91
92test_read_window_cycle_SOURCES = %reldir%/read_window_cycle.c \
93 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
94
95test_sequence_numbers_SOURCES = %reldir%/sequence_numbers.c \
96 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
97
98test_get_mbox_info_v2_timeout_SOURCES = %reldir%/get_mbox_info_v2_timeout.c \
99 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
100
Andrew Jeffery5345c512018-02-21 21:36:59 +1030101check_PROGRAMS += \
Andrew Jeffery85985912018-02-22 10:20:31 +1030102 %reldir%/sanity \
Andrew Jefferye0cdd3e2018-08-08 16:51:44 +0930103 %reldir%/flash_copy \
Andrew Jeffery4f5d29c2018-08-08 16:58:04 +0930104 %reldir%/flash_erase \
Andrew Jeffery0293f2f2018-08-08 16:59:45 +0930105 %reldir%/flash_write \
Andrew Jeffery85985912018-02-22 10:20:31 +1030106 %reldir%/get_mbox_info_v2 \
107 %reldir%/reset_state \
108 %reldir%/get_flash_info_v2 \
109 %reldir%/create_read_window_v2 \
110 %reldir%/create_write_window_v2 \
111 %reldir%/close_window_v2 \
112 %reldir%/mark_write_dirty_v2 \
113 %reldir%/write_flush_v2 \
114 %reldir%/mark_write_erased_v2 \
115 %reldir%/bmc_event_ack_v2 \
116 %reldir%/create_oversize_window \
117 %reldir%/create_zero_size_window \
118 %reldir%/implicit_flush \
119 %reldir%/request_high_version \
120 %reldir%/request_low_version \
121 %reldir%/mark_read_dirty \
122 %reldir%/read_window_write_flush \
123 %reldir%/read_window_mark_write_erased \
124 %reldir%/write_window_dirty_erase \
125 %reldir%/invalid_command \
126 %reldir%/read_window_cycle \
127 %reldir%/sequence_numbers \
128 %reldir%/get_mbox_info_v2_timeout