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

Issue 1056001: Additional cases for the test suite, and more commands added to TLCL (Closed)

Created:
10 years, 9 months ago by Luigi Semenzato
Modified:
9 years, 7 months ago
Reviewers:
gauravsh
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

Additional cases for the test suite, and more commands added to TLCL to support the new cases.

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 14

Patch Set 3 : Various fixes for review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -1 line) Patch
M src/platform/tpm_lite/src/include/tlcl.h View 2 chunks +17 lines, -0 lines 0 comments Download
M src/platform/tpm_lite/src/testsuite/Makefile View 1 chunk +1 line, -1 line 0 comments Download
A src/platform/tpm_lite/src/testsuite/clear.c View 1 chunk +45 lines, -0 lines 0 comments Download
A src/platform/tpm_lite/src/testsuite/lock.c View 1 chunk +31 lines, -0 lines 0 comments Download
A src/platform/tpm_lite/src/testsuite/writelimit.c View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
M src/platform/tpm_lite/src/tlcl/generator.c View 1 2 chunks +45 lines, -0 lines 0 comments Download
M src/platform/tpm_lite/src/tlcl/tlcl.c View 1 2 chunks +47 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Luigi Semenzato
Current state of testing.
10 years, 9 months ago (2010-03-16 21:47:02 UTC) #1
gauravsh
My high level comment is that you should clarify what the test expectations are - ...
10 years, 9 months ago (2010-03-17 00:15:24 UTC) #2
Luigi Semenzato
Thanks Gaurav. http://codereview.chromium.org/1056001/diff/2001/3003 File src/platform/tpm_lite/src/testsuite/clear.c (right): http://codereview.chromium.org/1056001/diff/2001/3003#newcode38 src/platform/tpm_lite/src/testsuite/clear.c:38: printf("tpm is %sowned\n", owned? "" : "NOT ...
10 years, 9 months ago (2010-03-17 05:08:28 UTC) #3
gauravsh
10 years, 9 months ago (2010-03-17 18:56:28 UTC) #4
lgtm

http://codereview.chromium.org/1056001/diff/2001/3003
File src/platform/tpm_lite/src/testsuite/clear.c (right):

http://codereview.chromium.org/1056001/diff/2001/3003#newcode38
src/platform/tpm_lite/src/testsuite/clear.c:38: printf("tpm is %sowned\n",
owned?  "" : "NOT ");
On 2010/03/17 05:08:28, Luigi Semenzato wrote:
> On 2010/03/17 00:15:24, gauravsh wrote:
> > Nit: space between %s and owned
> 
> The space is the one after the "NOT".  Otherwise I get two spaces.

Ok. I missed that.

http://codereview.chromium.org/1056001/diff/2001/3003#newcode43
src/platform/tpm_lite/src/testsuite/clear.c:43: 
On 2010/03/17 05:08:28, Luigi Semenzato wrote:
> On 2010/03/17 00:15:24, gauravsh wrote:
> > If these are tests, how do they inform the caller (environment) whether they
> > failed or succeeded?
> 
> Yes, you're right---the tests should be scriptable.  I used this particular
test
> mostly to check my implementation of IsOwned and ForceClear, since there
already
> is a tpm_clear program in tpm_tools.  Those commands are implemented so that
if
> they emit warnings for failures, since at this stage I was more interested in
a
> visual verification of the output.  But I agree that I need a driver script
and
> better error reporting conventions.  Should I do both in a following change or
> in this one?
> 
> Actually, I can't run these tests automatically until I have a machine that
can
> reboot without hanging...

You can make the change in a separate CL. Let's get these in for now.

Powered by Google App Engine
This is Rietveld 408576698