summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorsonmi%netscape.com <devnull@localhost>2001-02-23 02:23:05 +0000
committersonmi%netscape.com <devnull@localhost>2001-02-23 02:23:05 +0000
commita7efe3562e21660197a5409ff58981330fff4df9 (patch)
tree2456035c9056d669acf625e0de76726ab1f0b4f0 /security
parent34b2c4361e9c6637343121ca29744bbf433f9f86 (diff)
downloadnss-hg-a7efe3562e21660197a5409ff58981330fff4df9.tar.gz
improvements, bugfixes, intermediate checkin before trying to make
everything run in . and relative paths to also work on cygnus not yet activated
Diffstat (limited to 'security')
-rwxr-xr-xsecurity/nss/tests/cert/cert.sh30
1 files changed, 15 insertions, 15 deletions
diff --git a/security/nss/tests/cert/cert.sh b/security/nss/tests/cert/cert.sh
index c8a0b8bf0..05bcf4d51 100755
--- a/security/nss/tests/cert/cert.sh
+++ b/security/nss/tests/cert/cert.sh
@@ -25,23 +25,21 @@
########################################################################
if [ -z "${INIT_SOURCED}" ] ; then
- . ../common/init.sh
+ cd ../common
+ . init.sh
+fi
+SCRIPTNAME="cert.sh"
+if [ -z "${CLEANUP}" ] ; then
+ CLEANUP="${SCRIPTNAME}"
fi
-TEMPFILES="${PWFILE} ${CERTSCRIPT} ${NOISE_FILE}"
-
-trap "rm -f ${TEMPFILES}; Exit $0 Signal_caught" 2 3
certlog() ###################### write the cert_status file
{
+ echo "$SCRIPTNAME $*"
echo $* >>${CERT_LOG_FILE}
}
-html() ######################### write the results.html file
-{
- echo $* >>${RESULTS}
-}
-
################################ noise ##################################
# Generate noise for our certs
#
@@ -76,10 +74,10 @@ certu()
RET=$?
if [ "$RET" -ne 0 ]; then
CERTFAILED=$RET
- html "<TR><TD>${CU_ACTION} ($RET) $CU_FAILED"
+ html_failed "<TR><TD>${CU_ACTION} ($RET) "
certlog "ERROR: ${CU_ACTION} failed $RET"
else
- html "<TR><TD>${CU_ACTION}$CU_PASSED"
+ html_passed "<TR><TD>${CU_ACTION}"
fi
return $RET
}
@@ -153,7 +151,7 @@ create_cert()
################## main #################################################
-certlog "started"
+certlog "********************** running $SCRIPTNAME **********************"
html "<TABLE BORDER=1><TR><TH COLSPAN=3>Certutil Tests</TH></TR>"
html "<TR><TH width=500>Test Case</TH><TH width=50>Result</TH></TR>"
@@ -280,11 +278,13 @@ if [ "$CERTFAILED" != 0 ] ; then
else
certlog "SUCCESS: SSL passed"
fi
-certlog "finished"
-echo "</TABLE><BR>" >> ${RESULTS}
+certlog "********************** finished $SCRIPTNAME **********************"
+html "</TABLE><BR>"
+
+cd ${CURDIR}
+. ../common/cleanup.sh
-rm -f ${TEMPFILES}
# we will probably need mor for the tools
# tools.sh: generates an alice cert in a "Cert" directory