OLD | NEW |
(Empty) | |
| 1 Flashrom Testing |
| 2 |
| 3 Overall idea: |
| 4 - Break tests into small chunks |
| 5 - Have a single program that does generic setup and shutdown functions |
| 6 - Executes specified tests in a simple loop |
| 7 |
| 8 Dependencies: |
| 9 - uuencode |
| 10 - diff |
| 11 - A version of flashrom which is installed in $PATH. This is assumed to be a |
| 12 "good" version of Flashrom and will be used to obtain a backup copy of the |
| 13 ROM image at the beginning, and restore the image at the end. |
| 14 |
| 15 Important environment variables: |
| 16 FLASHROM: Path to the Flashrom binary to test |
| 17 FLASHROM_PARAM: Extra parameters to pass into flashrom, such as -p. Do *not* |
| 18 specify chip operations such as read/write/erase/verify here, as they are |
| 19 redundant with commands the script executes. |
| 20 |
| 21 Important global variables: |
| 22 BACKUP: The backup copy of ROM image which is read before executing any tests, |
| 23 and restored unconditionally after execution of tests. |
| 24 |
| 25 Syntax: |
| 26 ENV_VARS="blah" ./do_tests.sh <test1> <test2> |
| 27 |
| 28 Example: |
| 29 FLASHROM="../flashrom" FLASHROM_PARAM="-p internal:bus=spi" ./do_tests foo.sh ba
r.sh |
| 30 |
| 31 Each unit test might have its own special requirements, such as extra |
| 32 environment variables, layout files, etc. Please read the comments at the top |
| 33 of each unit test to ensure there are no special dependencies. |
OLD | NEW |