security/nss/tests/ocsp/ocsp.sh

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:c56715e9f302
1 #! /bin/bash
2 #
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7 ########################################################################
8 #
9 # mozilla/security/nss/tests/ocsp/ocsp.sh
10 #
11 # Script to test NSS OCSP
12 #
13 # needs to work on all Unix and Windows platforms
14 #
15 # special strings
16 # ---------------
17 # FIXME ... known problems, search for this string
18 # NOTE .... unexpected behavior
19 #
20 ########################################################################
21
22 ############################## ssl_init ################################
23 # local shell function to initialize this script
24 ########################################################################
25 ocsp_init()
26 {
27 SCRIPTNAME=ocsp.sh # sourced - $0 would point to all.sh
28
29 if [ -z "${CLEANUP}" ] ; then # if nobody else is responsible for
30 CLEANUP="${SCRIPTNAME}" # cleaning this script will do it
31 fi
32
33 if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ]; then
34 cd ../common
35 . ./init.sh
36 fi
37 if [ -z "${IOPR_OCSP_SOURCED}" ]; then
38 . ../iopr/ocsp_iopr.sh
39 fi
40 if [ ! -r $CERT_LOG_FILE ]; then # we need certificates here
41 cd ../cert
42 . ./cert.sh
43 fi
44 SCRIPTNAME=ocsp.sh
45 echo "$SCRIPTNAME: OCSP tests ==============================="
46
47 REQF=${QADIR}/ssl/sslreq.dat
48
49 cd ${CLIENTDIR}
50 }
51
52 ################## main #################################################
53 ocsp_init
54 ocsp_iopr_run

mercurial