michael@0: #!/bin/sh michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: # michael@0: # libpkix_init_nist.sh michael@0: # michael@0: michael@0: # michael@0: # Any test that uses NIST files should have a tag of either NIST-Test or michael@0: # NIST-Test-Files-Used at the command option so if there are no NIST files michael@0: # installed in the system, the test can be skipped michael@0: # michael@0: michael@0: if [ -z "${NIST_FILES_DIR}" ] ; then michael@0: Display "" michael@0: Display "*******************************************************************************" michael@0: Display "The environment variable NIST_FILES_DIR is not defined. Therefore" michael@0: Display "tests depending on it will be skipped. To enable these tests set" michael@0: Display "NIST_FILES_DIR to the directory where NIST Certificates and CRLs" michael@0: Display "are located." michael@0: Display "*******************************************************************************" michael@0: Display "" michael@0: doNIST=0 michael@0: else michael@0: michael@0: NIST=${NIST_FILES_DIR} michael@0: doNIST=1 michael@0: fi michael@0: michael@0: # michael@0: # Any tests that use NIST Path Discovery files should have a tag of NIST-PDTest michael@0: # at the command option so if there are no NIST Path Discovery files michael@0: # installed in the system, the test can be skipped michael@0: # michael@0: if [ ${doPD} -eq 1 -a -z "${PDVAL}" ] ; then michael@0: michael@0: Display "" michael@0: Display "*******************************************************************************" michael@0: Display "The environment variable PDVAL is not defined. Therefore tests" michael@0: Display "depending on it will be skipped. To enable these tests set PDVAL to" michael@0: Display "the directory where NIST Path Discovery Certificates are located." michael@0: Display "*******************************************************************************" michael@0: Display "" michael@0: doNIST_PDTest=0 michael@0: else michael@0: michael@0: NIST_PDTEST=${PDVAL} michael@0: doNIST_PDTest=1 michael@0: fi michael@0: michael@0: # michael@0: # Any tests that use an OCSP Server should have a tag of OCSP-Test at the michael@0: # command option so if there is no OCSP Server installed in the system, the michael@0: # test can be skipped michael@0: # michael@0: if [ ${doOCSP} -eq 1 -a -z "${OCSP}" ] ; then michael@0: michael@0: Display "" michael@0: Display "*******************************************************************************" michael@0: Display "The environment variable OCSP is not defined. Therefore tests" michael@0: Display "depending on it will be skipped. To enable these tests set OCSP" michael@0: Display "non-NULL (the actual URI used is taken from the AIA extension)." michael@0: Display "*******************************************************************************" michael@0: Display "" michael@0: doOCSPTest=0 michael@0: else michael@0: doOCSPTest=1 michael@0: fi