opensc/src/tests/regression
aet 886de97b27 More consistent indentation for multi-line variables
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1312 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-29 10:04:40 +00:00
..
.cvsignore Resync .cvsignore files 2003-07-17 12:39:11 +00:00
Makefile.am More consistent indentation for multi-line variables 2003-07-29 10:04:40 +00:00
README - more tests 2003-05-15 15:30:34 +00:00
crypt0001 - specify user pin when erasing card 2003-05-28 13:36:55 +00:00
crypt0002 - specify user pin when erasing card 2003-05-28 13:36:55 +00:00
crypt0003 - specify user pin when erasing card 2003-05-28 13:36:55 +00:00
crypt0004 - specify user pin when erasing card 2003-05-28 13:36:55 +00:00
erase - added 2003-05-28 18:05:18 +00:00
functions - added function skip_if_card to allow tests to be skipped for certain cards 2003-05-28 20:52:46 +00:00
init0001 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0002 - added function skip_if_card to allow tests to be skipped for certain cards 2003-05-28 20:52:46 +00:00
init0003 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0004 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0005 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0006 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0007 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0008 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0009 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0010 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0011 - erase card using --secret 2003-05-23 10:10:45 +00:00
run-all - better handling of failures 2003-05-28 13:36:25 +00:00
test.p12 - added pkcs15-init pkcs12 test case 2003-05-16 09:27:38 +00:00

README


This directory contains regression test scripts.  Note this is still
work in progress, hopefully we will add more scripts by and by.

Run the test scripts from this directory. You need to have
OpenSC fully built in order for them to do anything useful.

All test scripts accept the following set of arguments

 --use-default-transport-keys
	if your card requires a transport key in pkcs15-init (for
	instance, the GPK and Cryptoflex do), and the default transport
	key as determined by OpenSC works fine.  [If it doesn't please
	get in contact with us!]

 --split-key
	For CardOS/M4 - when creating or installing a key intended for
	both signing and decryption, pkcs15-init must install a the same
	key twice, with different usage labels: one for each usage. This
	is called a "split key".

 --reader N
 	Use the specified reader


 *** ATTENTION ***

Some cards require that you present one or several PINs when erasing
them. That is because these cards to not support a native mechanism
for erasing the card. In this case, OpenSC will perform a recursive
removal of files, pretty much like a "rm -rf" in Unix.

As some of these files are PIN protected against deletion, we have
to present the PIN before being allowed to do so. For this reason,
the tests may ask you for various PINs.

When asking for the SO PIN, the prompt will always refer to the
"Security Officer PIN". Any other prompts (Test User PIN, etc)
refer to the user PIN.

All tests use the same PINs:

	999999		as the SO PIN, if one is used
	888888		as the SO PUK, if one is used
	0000		as the user PIN, if one is used
	111111		as the user PUK, if one is used

Some tests will install more than one user PIN, but they will
all have the same value.