Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1104)

Unified Diff: util/README

Issue 5136001: Add new testing framework along with a few micro-tests. (Closed) Base URL: svn://coreboot.org/flashrom/trunk/util
Patch Set: asdf Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | util/chip_size.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/README
diff --git a/util/README b/util/README
new file mode 100644
index 0000000000000000000000000000000000000000..656f27570c013f68d56751ded67e6ef2d2ca7ffd
--- /dev/null
+++ b/util/README
@@ -0,0 +1,33 @@
+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 <test1> <test2>
+
+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.
« no previous file with comments | « no previous file | util/chip_size.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698