3
# The contents of this file are subject to the Mozilla Public
4
# License Version 1.1 (the "License"); you may not use this file
5
# except in compliance with the License. You may obtain a copy of
6
# the License at http://www.mozilla.org/MPL/
8
# Software distributed under the License is distributed on an "AS
9
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10
# implied. See the License for the specific language governing
11
# rights and limitations under the License.
13
# The Original Code is the Netscape security libraries.
15
# The Initial Developer of the Original Code is Netscape
16
# Communications Corporation. Portions created by Netscape are
17
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
22
# Alternatively, the contents of this file may be used under the
23
# terms of the GNU General Public License Version 2 or later (the
24
# "GPL"), in which case the provisions of the GPL are applicable
25
# instead of those above. If you wish to allow use of your
26
# version of this file only under the terms of the GPL and not to
27
# allow others to use your version of this file under the MPL,
28
# indicate your decision by deleting the provisions above and
29
# replace them with the notice and other provisions required by
30
# the GPL. If you do not delete the provisions above, a recipient
31
# may use your version of this file under either the MPL or the
35
########################################################################
37
# mozilla/security/nss/cmd/tests/cmdtests.sh
39
# Script to run small tests to test specific crashes of NSS
41
# needs to work on all Unix and Windows platforms
48
# vercrt (verify encryption cert - bugzilla bug 119059)
49
# vercrtfps (verify encryption cert in fips mode - bugzilla bug 119214)
50
# test3 (CERT_FindUserCertByUsage called 2nd time - bug 118864)
55
########################################################################
57
############################## cmdtests_init ###########################
58
# local shell function to initialize this script
59
########################################################################
62
SCRIPTNAME=cmdtests.sh # sourced - $0 would point to all.sh
64
if [ -z "${CLEANUP}" ] ; then # if nobody else is responsible for
65
CLEANUP="${SCRIPTNAME}" # cleaning this script will do it
68
if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ]; then
72
if [ ! -r $CERT_LOG_FILE ]; then # we need certificates here
76
SCRIPTNAME=cmdtests.sh
77
html_head "Tests in cmd/tests"
79
# grep "SUCCESS: cmd/tests passed" $CERT_LOG_FILE >/dev/null || {
80
# Exit 15 "Fatal - cert.sh needs to pass first"
83
CMDTESTSDIR=${HOSTDIR}/cmd/tests
84
COPYDIR=${CMDTESTSDIR}/copydir
86
R_CMDTESTSDIR=../cmd/tests
87
R_COPYDIR=../cmd/tests/copydir
88
P_R_COPYDIR=${R_COPYDIR}
90
if [ -n "${MULTIACCESS_DBM}" ]; then
91
P_R_COPYDIR="multiaccess:Cmdtests.$version"
94
mkdir -p ${CMDTESTSDIR}
96
mkdir -p ${CMDTESTSDIR}/html
101
############################## ct_vercrt ##################################
102
# CERT_VerifyCert should not fail when verifying encryption cert
103
# Bugzilla Bug 119059
104
########################################################################
107
# echo "$SCRIPTNAME: Verify encryption certificate ----------------------"
111
# html_msg $ret 0 "Verify encryption certificate (vercrt)"
116
############################## cmdtests_cleanup ########################
117
# local shell function to finish this script (no exit since it might be
119
########################################################################
127
################## main #################################################