mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
tests: Add unit test to run init/shutdown for mec1308.c, ene_lpc.c
This patch includes mocks for io operations in hwaccess_x86_io.h because those are needed to test lifecycle of mec1308.c and ene_lpc.c BUG=b:181803212 TEST=builds and ninja test Change-Id: I3af612defe1af3850dfc1626a208d873e3a3eddc Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/51487 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:

committed by
Nico Huber

parent
38c133438c
commit
21e22ba8a7
@ -42,6 +42,8 @@ void probe_spi_st95_test_success(void **state); /* spi95.c */
|
||||
|
||||
/* init_shutdown.c */
|
||||
void dummy_init_and_shutdown_test_success(void **state);
|
||||
void mec1308_init_and_shutdown_test_success(void **state);
|
||||
void ene_lpc_init_and_shutdown_test_success(void **state);
|
||||
void linux_spi_init_and_shutdown_test_success(void **state);
|
||||
|
||||
#endif /* TESTS_H */
|
||||
|
Reference in New Issue
Block a user