3 # ***** BEGIN LICENSE BLOCK *****
4 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 # The contents of this file are subject to the Mozilla Public License Version
7 # 1.1 (the "License"); you may not use this file except in compliance with
8 # the License. You may obtain a copy of the License at
9 # http://www.mozilla.org/MPL/
11 # Software distributed under the License is distributed on an "AS IS" basis,
12 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 # for the specific language governing rights and limitations under the
16 # The Original Code is the Netscape security libraries.
18 # The Initial Developer of the Original Code is
19 # Netscape Communications Corporation.
20 # Portions created by the Initial Developer are Copyright (C) 1994-2000
21 # the Initial Developer. All Rights Reserved.
25 # Alternatively, the contents of this file may be used under the terms of
26 # either the GNU General Public License Version 2 or later (the "GPL"), or
27 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 # in which case the provisions of the GPL or the LGPL are applicable instead
29 # of those above. If you wish to allow use of your version of this file only
30 # under the terms of either the GPL or the LGPL, and not to allow others to
31 # use your version of this file under the terms of the MPL, indicate your
32 # decision by deleting the provisions above and replace them with the notice
33 # and other provisions required by the GPL or the LGPL. If you do not delete
34 # the provisions above, a recipient may use your version of this file under
35 # the terms of any one of the MPL, the GPL or the LGPL.
37 # ***** END LICENSE BLOCK *****
39 ########################################################################
40 # Script to run small tests to test specific crashes of NSS
42 # needs to work on all Unix and Windows platforms
49 # vercrt (verify encryption cert - bugzilla bug 119059)
50 # vercrtfps (verify encryption cert in fips mode - bugzilla bug 119214)
51 # test3 (CERT_FindUserCertByUsage called 2nd time - bug 118864)
56 ########################################################################
58 ############################## cmdtests_init ###########################
59 # local shell function to initialize this script
60 ########################################################################
63 SCRIPTNAME=cmdtests.sh # sourced - $0 would point to all.sh
65 if [ -z "${CLEANUP}" ] ; then # if nobody else is responsible for
66 CLEANUP="${SCRIPTNAME}" # cleaning this script will do it
69 if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ]; then
73 if [ ! -r $CERT_LOG_FILE ]; then # we need certificates here
77 SCRIPTNAME=cmdtests.sh
78 html_head "Tests in cmd/tests"
80 # grep "SUCCESS: cmd/tests passed" $CERT_LOG_FILE >/dev/null || {
81 # Exit 15 "Fatal - cert.sh needs to pass first"
84 CMDTESTSDIR=${HOSTDIR}/cmd/tests
85 COPYDIR=${CMDTESTSDIR}/copydir
87 R_CMDTESTSDIR=../cmd/tests
88 R_COPYDIR=../cmd/tests/copydir
89 P_R_COPYDIR=${R_COPYDIR}
91 if [ -n "${MULTIACCESS_DBM}" ]; then
92 P_R_COPYDIR="multiaccess:Cmdtests.$version"
95 mkdir -p ${CMDTESTSDIR}
97 mkdir -p ${CMDTESTSDIR}/html
102 ############################## ct_vercrt ##################################
103 # CERT_VerifyCert should not fail when verifying encryption cert
104 # Bugzilla Bug 119059
105 ########################################################################
108 # echo "$SCRIPTNAME: Verify encryption certificate ----------------------"
112 # html_msg $ret 0 "Verify encryption certificate (vercrt)"
117 ############################## cmdtests_cleanup ########################
118 # local shell function to finish this script (no exit since it might be
120 ########################################################################
128 ################## main #################################################