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

Issue 2663002: Add space redefinition test, early NV read test and early extend test. (Closed)

Created:
10 years, 6 months ago by Luigi Semenzato
Modified:
9 years, 7 months ago
Reviewers:
gauravsh
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://git@chromiumos-git/tpm_lite.git
Visibility:
Public.

Description

Add space redefinition test, early NV read test and early extend test. Fix Makefile.

Patch Set 1 #

Patch Set 2 : Add an early write test #

Patch Set 3 : Fix printf #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+300 lines, -2 lines) Patch
M src/testsuite/Makefile View 1 3 chunks +7 lines, -1 line 1 comment Download
A src/testsuite/earlyextend.c View 1 chunk +38 lines, -0 lines 1 comment Download
A src/testsuite/earlynvram.c View 1 chunk +56 lines, -0 lines 0 comments Download
A src/testsuite/earlynvram2.c View 2 1 chunk +56 lines, -0 lines 0 comments Download
A src/testsuite/redefine.c View 1 chunk +78 lines, -0 lines 0 comments Download
M src/tlcl/generator.c View 3 chunks +18 lines, -0 lines 0 comments Download
M src/tlcl/tlcl.h View 3 chunks +18 lines, -1 line 0 comments Download
M src/tlcl/tlcl.c View 4 chunks +28 lines, -0 lines 0 comments Download
M src/tlcl/tlcl_internal.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Luigi Semenzato
Hi Gaurav, here are some more tests.
10 years, 6 months ago (2010-06-07 15:31:09 UTC) #1
gauravsh
lgtm http://codereview.chromium.org/2663002/diff/6001/7001 File src/testsuite/Makefile (right): http://codereview.chromium.org/2663002/diff/6001/7001#newcode34 src/testsuite/Makefile:34: tpmtest_redefine \ nit: alpha order http://codereview.chromium.org/2663002/diff/6001/7002 File src/testsuite/earlyextend.c ...
10 years, 6 months ago (2010-06-08 07:53:43 UTC) #2
Luigi Semenzato
On 2010/06/08 07:53:43, gauravsh wrote: > lgtm > > http://codereview.chromium.org/2663002/diff/6001/7001 > File src/testsuite/Makefile (right): > ...
10 years, 6 months ago (2010-06-09 16:23:05 UTC) #3
gauravsh
On 2010/06/09 16:23:05, Luigi Semenzato wrote: > On 2010/06/08 07:53:43, gauravsh wrote: > > lgtm ...
10 years, 6 months ago (2010-06-09 18:33:56 UTC) #4
Luigi Semenzato
10 years, 6 months ago (2010-06-09 19:45:37 UTC) #5
I will do both in an upcoming CL.

On Wed, Jun 9, 2010 at 11:33 AM,  <gauravsh@chromium.org> wrote:
> On 2010/06/09 16:23:05, Luigi Semenzato wrote:
>>
>> On 2010/06/08 07:53:43, gauravsh wrote:
>> > lgtm
>> >
>> > http://codereview.chromium.org/2663002/diff/6001/7001
>> > File src/testsuite/Makefile (right):
>> >
>> > http://codereview.chromium.org/2663002/diff/6001/7001#newcode34
>> > src/testsuite/Makefile:34: tpmtest_redefine \
>> > nit: alpha order
>
>> Thanks---I was using creation order, but alpha order is better.
>
>> >
>> > http://codereview.chromium.org/2663002/diff/6001/7002
>> > File src/testsuite/earlyextend.c (right):
>> >
>> > http://codereview.chromium.org/2663002/diff/6001/7002#newcode33
>> > src/testsuite/earlyextend.c:33: } while (result == TPM_E_DOING_SELFTEST
>> > ||
>> > so this tests keep on calling extend until it succeeds. But since it's a
>
> test,
>>
>> > shouldn't it fail if it doesn't succeed the first time?
>
>> I wrote this test to get the timing.  As a test, it doesn't have to fail
>> if
>> TPM_Extend isn't immediately available---only if it takes too long to be
>> available.  So, what's "too long"?  200ms?
>
> I prefer having an explicit notion of what constitutes a test success (since
> it
> is a test for something). I can think of 2 options for this  -
>
> 1) Make sure TPM_Extend() either returns success or self test running error
> -
> but not another error. This ensures that the only time TPM_Extend fails is
> if
> self test is running and we already have ways to measure how long that
> takes.
>
> 2) I prefer this option. Explicitly set the duration to a reasonable value -
> as
> long as it's a parameter (200 ms is fine) which can be changed easily, it
> should
> be ok. This will also be useful later if we want to make this test a part of
> the
> hwqual autotest suite.
>
>
> http://codereview.chromium.org/2663002/show
>

Powered by Google App Engine
This is Rietveld 408576698