1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-08-16 03:44:41 +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:
Anastasia Klimchuk
2021-05-10 10:19:25 +10:00
committed by Nico Huber
parent 38c133438c
commit 21e22ba8a7
7 changed files with 224 additions and 7 deletions

View File

@@ -32,6 +32,13 @@ mocks = [
'-Wl,--wrap=ioctl',
'-Wl,--wrap=fopen',
'-Wl,--wrap=fopen64',
'-Wl,--wrap=rget_io_perms',
'-Wl,--wrap=test_outb',
'-Wl,--wrap=test_inb',
'-Wl,--wrap=test_outw',
'-Wl,--wrap=test_inw',
'-Wl,--wrap=test_outl',
'-Wl,--wrap=test_inl',
'-Wl,--gc-sections',
]