Closed Bug 979752 Opened 10 years ago Closed 10 years ago

OCSP stapling tests do not run on Solaris and many other platforms

Categories

(NSS :: Test, defect, P2)

3.15.5
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: julien.pierre, Assigned: julien.pierre)

Details

The reason is that the NSS DBs are not being copied properly.

cert.sh is using "cp -rv" . -v is a non-standard argument.
The copy fails, and subsequently selfserv and tsclnt cannot run.
Priority: -- → P2
Target Milestone: --- → 3.16
Patch is as follows :

diff -c cert.sav cert.sh
*** cert.sav    Wed Mar  5 07:22:06 2014
--- cert.sh     Wed Mar  5 07:22:23 2014
***************
*** 940,947 ****
    fi
  
    echo "$SCRIPTNAME: Creating database for OCSP stapling tests  ==============="
!   echo "cp -rv ${SERVERDIR} ${STAPLINGDIR}"
!   cp -rv ${R_SERVERDIR} ${R_STAPLINGDIR}
    pk12u -o ${R_STAPLINGDIR}/ca.p12 -n TestCA -k ${R_PWFILE} -w ${R_PWFILE} -d ${R_CADIR}
    pk12u -i ${R_STAPLINGDIR}/ca.p12 -k ${R_PWFILE} -w ${R_PWFILE} -d ${R_STAPLINGDIR}
  }
--- 940,947 ----
    fi
  
    echo "$SCRIPTNAME: Creating database for OCSP stapling tests  ==============="
!   echo "cp -r ${SERVERDIR} ${STAPLINGDIR}"
!   cp -r ${R_SERVERDIR} ${R_STAPLINGDIR}
    pk12u -o ${R_STAPLINGDIR}/ca.p12 -n TestCA -k ${R_PWFILE} -w ${R_PWFILE} -d ${R_CADIR}
    pk12u -i ${R_STAPLINGDIR}/ca.p12 -k ${R_PWFILE} -w ${R_PWFILE} -d ${R_STAPLINGDIR}
  }
https://hg.mozilla.org/projects/nss/rev/6175ec3bd699
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee: nobody → julien.pierre
You need to log in before you can comment on or make changes to this bug.