Am Donnerstag 04 Februar 2010 08:04:07 schrieb Jean-Michel Pouré:
> Dear friends,
> 
> Would it be possible to discuss about regression tests. I would like to
> review these tests to certify a number of cards.
> 
> On my system, regression test fail during erase because pkcs15-init -E
> may return messages and fail.

sorry, but I think you are doing something wrong.
if I take a blank supported card, start the run-all script (with
whatever parameters are needed), the end result is all passed,
plus again a blank card.

and if a test fails, the card is kept as it. that is good.
that way I can look at the logs and the card in details.
once my analysis is done, I can delete the logs and
erase the card with the erase script. works well for me.

> In particular, running pkcs15-init twice fails:
> http://www.opensc-project.org/opensc/ticket/195
> 
> Regression test make heavy use of blanking cards.

well, but they have clear rules:
* expect a blank card to start with
* erase it at the end. once.

the problems you posted is strange stuff, like
* erasing a blank card (can't work, nothing to erase)
* starting with a card that is not blank (can't work)
* erasing a card twice (can't work for the 2nd erase)

sorry, but it looks to me like that is improper use of the
card, and not an issue with opensc, the opensc tools, or the
regression suite.

> I see a lot of changes in SVN these last days. Would it be possible for
> you to change/fix regression test and/or make initialization work.
> 
> If this is not possible, feel free to explain why and how we could
> modify regression tests.

I'm a fan of using the regression tests and improving the regression
suite. but I don't know what you want to try. for me the suite looks
perfectly fine and ok.

why do you want to change it? why not change your usage/code to adapt
how opensc, the opensc tools and the regression suite works?

Regards, Andreas
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to