Stefan Tauner 34f6f5a944 Add ich_descriptor_tool to decode all flash descriptors stored in a flash dump file 8 lat temu
..
ich_descriptors_tool 34f6f5a944 Add ich_descriptor_tool to decode all flash descriptors stored in a flash dump file 8 lat temu
README d7c4bd5a62 Add new testing framework along with a few micro-tests. 14 lat temu
getversion.sh c87afa2763 add Carl-Daniel to copyright line 12 lat temu
z60_flashrom.rules 64e8d6fbaa Add support for the GOEPEL PicoTAP programmer. 13 lat temu

README

Flashrom Testing

Overall idea:
- Break tests into small chunks
- Have a single program that does generic setup and shutdown functions
- Executes specified tests in a simple loop

Dependencies:
- uuencode
- diff
- A version of flashrom which is installed in $PATH. This is assumed to be a
"good" version of Flashrom and will be used to obtain a backup copy of the
ROM image at the beginning, and restore the image at the end.

Important environment variables:
FLASHROM: Path to the Flashrom binary to test
FLASHROM_PARAM: Extra parameters to pass into flashrom, such as -p. Do *not*
specify chip operations such as read/write/erase/verify here, as they are
redundant with commands the script executes.

Important global variables:
BACKUP: The backup copy of ROM image which is read before executing any tests,
and restored unconditionally after execution of tests.

Syntax:
ENV_VARS="blah" ./do_tests.sh

Example:
FLASHROM="../flashrom" FLASHROM_PARAM="-p internal:bus=spi" ./do_tests foo.sh bar.sh

Each unit test might have its own special requirements, such as extra
environment variables, layout files, etc. Please read the comments at the top
of each unit test to ensure there are no special dependencies.