Closed Bug 231221 Opened 22 years ago Closed 22 years ago

pkits test script reporting incorrect results

Categories

(NSS :: Test, defect, P1)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: nelson, Assigned: bishakhabanerjee)

Details

Attachments

(1 file)

The pkits test script checked in in nss/tests/pkits/pkits.sh has several problems that cause it to report success on negative test cases that failed, and to report failure for some positive test cases that should have succeeded. It also prompts the user for a password. I have fixed these problems (patch forthcoming), and now the test results are quite different than before. I will file new bugs to reflect the new failures.
Attached patch patch v1Splinter Review
The script was reporting NO ERRORS, even though there were known and previously reported errors occurring. This patch corrects that. I have checked this patch in. If reviewers decide this patch is not ideal, then another more ideal patch can be checked in later. /cvsroot/mozilla/security/nss/tests/pkits/pkits.sh,v <-- pkits.sh new revision: 1.2; previous revision: 1.1
Priority: -- → P1
Target Milestone: --- → 3.9.1
I found another test case where the wrong cert file names had been given. Here's the patch: Index: pkits.sh =================================================================== RCS file: /cvsroot/mozilla/security/nss/tests/pkits/pkits.sh,v retrieving revision 1.2 diff -u -r1.2 pkits.sh --- pkits.sh 17 Jan 2004 05:04:42 -0000 1.2 +++ pkits.sh 17 Jan 2004 05:52:31 -0000 @@ -611,8 +611,8 @@ $certs/TrustAnchorRootCertificate.crt VFY_ACTION="Valid RFC822 nameConstraints Test25" - pkits $certs/InvalidRFC822nameConstraintsTest24EE.crt \ - $certs/nameConstraintsRFC822CA2Cert.crt \ + pkits $certs/ValidRFC822nameConstraintsTest25EE.crt \ + $certs/nameConstraintsRFC822CA3Cert.crt \ $certs/TrustAnchorRootCertificate.crt VFY_ACTION="Invalid RFC822 nameConstraints Test26" This case now passes. Checked in. /cvsroot/mozilla/security/nss/tests/pkits/pkits.sh,v <-- pkits.sh new revision: 1.3; previous revision: 1.2
r=bb Thanks, Nelson. I didn't report Test 25 for Name Constraints, because these typos were fixed in my workspace. I wasn't seeing that test fail. Ditto for teh "equal to" typo as well. My workspace script has a lot of debug stuff in it, which I need to clean up, and check in, this revision will have the CRLs loaded and unloaded (for the ones not needed) as per your suggestion on Thursday.
Bishakha, I checked in my patches. Please review the pkits.sh script to ensure that all the file names are correct, and then (if there are no more errors) resolve this bug as fixed. Thanks.
Filenames are correct on the test cases. Resolving fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: