Runnning openssl test

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Runnning openssl test

Dharmesh Vyas
Hello,

I just started working on openssl. I am running make test and redirecting the output to a log file. After that I am writing a parser that will scan the log file and will show the count of tests passed, failed, warnings etc.

I have one doubt on this. I went throught the log file attached. In that it shows the 2220 tests passed, but after that also there are some statements like

----------->
test elliptic curves
SEC2 curve secp160r1 -- Generator:
     x = 0x4A96B5688EF573284664698968C38BB913CBFC82
     y = 0x23A628553168947D59DCC912042351377AC5FB32
verify degree ... ok
verify group order .... ok

testing ECDSA_sign() and ECDSA_verify() with some internal curves:
secp160k1: ....... ok
secp160r1: ....... ok
secp160r2: ....... ok
secp192k1: ....... ok


Testing key generation with NIST Prime-Curve P-192 .... ok
Testing key generation with NIST Prime-Curve P-224 .... ok

testing X509 conversions
p -> d
p -> n
p -> p
d -> d
n -> d
p -> d

PKCS #1 v1.5 encryption/decryption ok

Testing cipher AES-128-ECB(encrypt)
Key
0000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
Plaintext
0000 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff
Ciphertext
0000 69 c4 e0 d8 6a 7b 04 30 d8 cd b7 80 70 b4 c5 5a

test tls1 with 1024bit anonymous DH, multiple handshakes
Available compression methods:
  NONE
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
10 handshakes of 256 bytes done                ---------------------->

can anyone please tell me how to count the no. of tests?? is it like 2220 is the count of all the tests?? or
all showed as 'Ok' or 'Done' or '10 handshakes of 256 bytes done' are different tests or what??? how shall i count them?

please guild me on this, what's the format of the log file?? how can i differentiate on no. of tests, no. of tests passed, failed , errors etc.

Thanks and Regards
Dharmesh.

Reply | Threaded
Open this post in threaded view
|

RE: Runnning openssl test

Steven Reddie
Hi Dharmesh,
 
The output hasn't been made to facilitate easy parsing.  A pragmatic approach may be to grep for "done" and "ok" (and perhaps "fail" and "err") and save the output from a known good run and compare subsequent runs against that.
 
Regards,
 
Steven


From: [hidden email] [mailto:[hidden email]] On Behalf Of Dharmesh Vyas
Sent: Friday, 21 October 2005 4:19 AM
To: undisclosed-recipients:
Subject: Runnning openssl test

Hello,

I just started working on openssl. I am running make test and redirecting the output to a log file. After that I am writing a parser that will scan the log file and will show the count of tests passed, failed, warnings etc.

I have one doubt on this. I went throught the log file attached. In that it shows the 2220 tests passed, but after that also there are some statements like

----------->
test elliptic curves
SEC2 curve secp160r1 -- Generator:
     x = 0x4A96B5688EF573284664698968C38BB913CBFC82
     y = 0x23A628553168947D59DCC912042351377AC5FB32
verify degree ... ok
verify group order .... ok

testing ECDSA_sign() and ECDSA_verify() with some internal curves:
secp160k1: ....... ok
secp160r1: ....... ok
secp160r2: ....... ok
secp192k1: ....... ok


Testing key generation with NIST Prime-Curve P-192 .... ok
Testing key generation with NIST Prime-Curve P-224 .... ok

testing X509 conversions
p -> d
p -> n
p -> p
d -> d
n -> d
p -> d

PKCS #1 v1.5 encryption/decryption ok

Testing cipher AES-128-ECB(encrypt)
Key
0000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
Plaintext
0000 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff
Ciphertext
0000 69 c4 e0 d8 6a 7b 04 30 d8 cd b7 80 70 b4 c5 5a

test tls1 with 1024bit anonymous DH, multiple handshakes
Available compression methods:
  NONE
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
DONE via BIO pair: TLSv1, cipher TLSv1/SSLv3 ADH-AES256-SHA
10 handshakes of 256 bytes done                ---------------------->

can anyone please tell me how to count the no. of tests?? is it like 2220 is the count of all the tests?? or
all showed as 'Ok' or 'Done' or '10 handshakes of 256 bytes done' are different tests or what??? how shall i count them?

please guild me on this, what's the format of the log file?? how can i differentiate on no. of tests, no. of tests passed, failed , errors etc.

Thanks and Regards
Dharmesh.

Reply | Threaded
Open this post in threaded view
|

Re: Runnning openssl test

Dr. Stephen Henson
In reply to this post by Dharmesh Vyas
On Thu, Oct 20, 2005, Dharmesh Vyas wrote:

>
> please guild me on this, what's the format of the log file?? how can i
> differentiate on no. of tests, no. of tests passed, failed , errors etc.
>

Well normally you don't need to worry about that. If there is a "real" error
(i.e. one which indicates a library failure) the test sequence will exit
immediately.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

[openssl.org #1227] Runnning openssl test

Rich Salz via RT
In reply to this post by Dharmesh Vyas
you have to look at the exit code.
--
Rich Salz, OpenSSL dev team; [hidden email]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]