1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/tests/libpkix/common/libpkix_init_nist.sh Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,70 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 +# 1.10 +# libpkix_init_nist.sh 1.11 +# 1.12 + 1.13 +# 1.14 +# Any test that uses NIST files should have a tag of either NIST-Test or 1.15 +# NIST-Test-Files-Used at the command option so if there are no NIST files 1.16 +# installed in the system, the test can be skipped 1.17 +# 1.18 + 1.19 +if [ -z "${NIST_FILES_DIR}" ] ; then 1.20 + Display "" 1.21 + Display "*******************************************************************************" 1.22 + Display "The environment variable NIST_FILES_DIR is not defined. Therefore" 1.23 + Display "tests depending on it will be skipped. To enable these tests set" 1.24 + Display "NIST_FILES_DIR to the directory where NIST Certificates and CRLs" 1.25 + Display "are located." 1.26 + Display "*******************************************************************************" 1.27 + Display "" 1.28 + doNIST=0 1.29 +else 1.30 + 1.31 + NIST=${NIST_FILES_DIR} 1.32 + doNIST=1 1.33 +fi 1.34 + 1.35 +# 1.36 +# Any tests that use NIST Path Discovery files should have a tag of NIST-PDTest 1.37 +# at the command option so if there are no NIST Path Discovery files 1.38 +# installed in the system, the test can be skipped 1.39 +# 1.40 +if [ ${doPD} -eq 1 -a -z "${PDVAL}" ] ; then 1.41 + 1.42 + Display "" 1.43 + Display "*******************************************************************************" 1.44 + Display "The environment variable PDVAL is not defined. Therefore tests" 1.45 + Display "depending on it will be skipped. To enable these tests set PDVAL to" 1.46 + Display "the directory where NIST Path Discovery Certificates are located." 1.47 + Display "*******************************************************************************" 1.48 + Display "" 1.49 + doNIST_PDTest=0 1.50 +else 1.51 + 1.52 + NIST_PDTEST=${PDVAL} 1.53 + doNIST_PDTest=1 1.54 +fi 1.55 + 1.56 +# 1.57 +# Any tests that use an OCSP Server should have a tag of OCSP-Test at the 1.58 +# command option so if there is no OCSP Server installed in the system, the 1.59 +# test can be skipped 1.60 +# 1.61 +if [ ${doOCSP} -eq 1 -a -z "${OCSP}" ] ; then 1.62 + 1.63 + Display "" 1.64 + Display "*******************************************************************************" 1.65 + Display "The environment variable OCSP is not defined. Therefore tests" 1.66 + Display "depending on it will be skipped. To enable these tests set OCSP" 1.67 + Display "non-NULL (the actual URI used is taken from the AIA extension)." 1.68 + Display "*******************************************************************************" 1.69 + Display "" 1.70 + doOCSPTest=0 1.71 +else 1.72 + doOCSPTest=1 1.73 +fi