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

Side by Side 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: General updates, add rough EC unit testing Created 10 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | util/chip_size.sh » ('j') | util/chip_size.sh » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
Stefan Reinauer 2010/11/23 19:05:30 Really? It would be very nice not having to rely o
dhendrix 2010/11/24 02:48:14 It is intended to be the "known good" version used
12
13 Important environment variables:
14 FLASHROM: Path to the Flashrom binary to test
15 FLASHROM_PARAM: Parameters to pass into flashrom
Stefan Reinauer 2010/11/23 19:05:30 The example below indicates that this would be use
dhendrix 2010/11/24 02:48:14 Good point. Chip operations such as -r and -w are
16
17 Important global variables:
Stefan Reinauer 2010/11/23 19:05:30 Why are you differentiating between global and env
dhendrix 2010/11/24 02:48:14 Good question. That bit about global variables doe
18 BACKUP: The backup copy of ROM image which is read before executing any tests,
Stefan Reinauer 2010/11/23 19:05:30 Does this have a default, if BACKUP is not set by
dhendrix 2010/11/24 02:48:14 Heh, this is probably why it should be documented
19 and restored unconditionally after execution of tests.
20
21 Syntax:
22 ENV_VARS="blah" ./do_tests.sh <test1> <test2>
23
24 Example:
25 FLASHROM="../flashrom" FLASHROM_PARAM="-p internal:bus=spi" ./do_tests foo.sh ba r.sh
26
27 Each unit test might have its own special requirements, such as extra
28 environment variables, layout files, etc. Please read the comments at the top
29 of each unit test to ensure there are no special dependencies.
OLDNEW
« no previous file with comments | « no previous file | util/chip_size.sh » ('j') | util/chip_size.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698