DescriptionAdd new testing framework along with a few micro-tests.
This is currently a work-in-progress. However, I have not pestered Louis with
a code review in a while, which means it is time to dump hundreds of lines of
indecipherable shell code in his lap :-)
Included in this patch are several micro-tests:
do_tests.sh: the unit test framework
chip_size.sh: test the ability to print the chip's size
wp_range.sh: test the ability to set the chip's write protect range
wp_toggle.sh: test the ability to turn write protection on or off
partial_writes_x86_bios.sh: test partial writes -- ONLY FOR x86 BIOS, DO NOT USE ON EC
partial_writes_ec.sh: test partial writes for EC (it8500 used for testing, may not work on all ECs)
TODO:
1. The partial_writes tests are pretty basic now. We should do it twice -- once to ensure the blocks actually get written (this may require code changes to flashrom), and once again to ensure regions get skipped appropriately.
2. We should make better use of the SPI emulator.
BUG=
TEST=
Patch Set 1 #Patch Set 2 : General updates, add rough EC unit testing #
Total comments: 41
Patch Set 3 : Addressed (most) comments, minor clean-up #Patch Set 4 : asdf #
Messages
Total messages: 5 (0 generated)
|