libpkix_init_nist.sh (2528B)
1 #!/bin/sh 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 # libpkix_init_nist.sh 8 # 9 10 # 11 # Any test that uses NIST files should have a tag of either NIST-Test or 12 # NIST-Test-Files-Used at the command option so if there are no NIST files 13 # installed in the system, the test can be skipped 14 # 15 16 if [ -z "${NIST_FILES_DIR}" ] ; then 17 Display "" 18 Display "*******************************************************************************" 19 Display "The environment variable NIST_FILES_DIR is not defined. Therefore" 20 Display "tests depending on it will be skipped. To enable these tests set" 21 Display "NIST_FILES_DIR to the directory where NIST Certificates and CRLs" 22 Display "are located." 23 Display "*******************************************************************************" 24 Display "" 25 doNIST=0 26 else 27 28 NIST=${NIST_FILES_DIR} 29 doNIST=1 30 fi 31 32 # 33 # Any tests that use NIST Path Discovery files should have a tag of NIST-PDTest 34 # at the command option so if there are no NIST Path Discovery files 35 # installed in the system, the test can be skipped 36 # 37 if [ ${doPD} -eq 1 -a -z "${PDVAL}" ] ; then 38 39 Display "" 40 Display "*******************************************************************************" 41 Display "The environment variable PDVAL is not defined. Therefore tests" 42 Display "depending on it will be skipped. To enable these tests set PDVAL to" 43 Display "the directory where NIST Path Discovery Certificates are located." 44 Display "*******************************************************************************" 45 Display "" 46 doNIST_PDTest=0 47 else 48 49 NIST_PDTEST=${PDVAL} 50 doNIST_PDTest=1 51 fi 52 53 # 54 # Any tests that use an OCSP Server should have a tag of OCSP-Test at the 55 # command option so if there is no OCSP Server installed in the system, the 56 # test can be skipped 57 # 58 if [ ${doOCSP} -eq 1 -a -z "${OCSP}" ] ; then 59 60 Display "" 61 Display "*******************************************************************************" 62 Display "The environment variable OCSP is not defined. Therefore tests" 63 Display "depending on it will be skipped. To enable these tests set OCSP" 64 Display "non-NULL (the actual URI used is taken from the AIA extension)." 65 Display "*******************************************************************************" 66 Display "" 67 doOCSPTest=0 68 else 69 doOCSPTest=1 70 fi