From e0ece4a4bb200ed28859419e5349a38a9b02baf1 Mon Sep 17 00:00:00 2001 From: Anastasia Klimchuk Date: Wed, 21 Jul 2021 14:53:16 +1000 Subject: tests: Add init-shutdown test for nicrealtek This patch adds a test and mocks for two pci functions that nicreltek is using. Main reason for this is to have at least one test for par master (currently there are none), in preparation for a change like CB:56103 but for par masters. BUG=b:181803212 TEST=ninja test Change-Id: Iaed14fe1d83c8eb45ec185ebd3f1c97cb81941f4 Signed-off-by: Anastasia Klimchuk Reviewed-on: https://review.coreboot.org/c/flashrom/+/56470 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan --- tests/meson.build | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/meson.build') diff --git a/tests/meson.build b/tests/meson.build index 5776862de..9fb86c71e 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -26,6 +26,8 @@ mocks = [ '-Wl,--wrap=strdup', '-Wl,--wrap=physunmap', '-Wl,--wrap=physmap', + '-Wl,--wrap=pcidev_init', + '-Wl,--wrap=pcidev_readbar', '-Wl,--wrap=spi_send_command', '-Wl,--wrap=sio_write', '-Wl,--wrap=sio_read', -- cgit v1.2.3