mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
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 <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/56470 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
This commit is contained in:

committed by
Edward O'Callaghan

parent
56c82fe623
commit
e0ece4a4bb
@ -89,6 +89,15 @@ void mec1308_init_and_shutdown_test_success(void **state)
|
||||
#endif
|
||||
}
|
||||
|
||||
void nicrealtek_init_and_shutdown_test_success(void **state)
|
||||
{
|
||||
#if CONFIG_NICREALTEK == 1
|
||||
run_lifecycle(state, &programmer_nicrealtek, "");
|
||||
#else
|
||||
skip();
|
||||
#endif
|
||||
}
|
||||
|
||||
int dediprog_libusb_control_transfer(void *state,
|
||||
libusb_device_handle *devh,
|
||||
uint8_t bmRequestType,
|
||||
|
Reference in New Issue
Block a user