mirror of
https://review.coreboot.org/flashrom.git
synced 2025-08-16 03:44:41 +02:00
tests: Add tests to read from chip
Two tests cover the code which performs do_read operation. First one works with fake chip and dummy programmer. Fake chip has all operations defined, and a buffer to emulate chip memory. Second one uses the chip which is closer to the real one, because read/write/unlock/erase operations are real. The tests takes the advantage of dummyflasher's capability of emulating a W25Q128.V chip. BUG=b:181803212 TEST=builds and ninja test Change-Id: Ia57781ebc670c7bd6197e56fe8a20651a425c756 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/57326 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:

committed by
Nico Huber

parent
2d538d87eb
commit
1f62b8346e
@@ -39,8 +39,14 @@ mocks = [
|
||||
'-Wl,--wrap=write',
|
||||
'-Wl,--wrap=fopen',
|
||||
'-Wl,--wrap=fopen64',
|
||||
'-Wl,--wrap=fwrite',
|
||||
'-Wl,--wrap=fflush',
|
||||
'-Wl,--wrap=stat',
|
||||
'-Wl,--wrap=stat64',
|
||||
'-Wl,--wrap=fstat',
|
||||
'-Wl,--wrap=fstat64',
|
||||
'-Wl,--wrap=fileno',
|
||||
'-Wl,--wrap=fsync',
|
||||
'-Wl,--wrap=fread',
|
||||
'-Wl,--wrap=fgets',
|
||||
'-Wl,--wrap=fclose',
|
||||
|
Reference in New Issue
Block a user