security/nss/tests/libpkix/common/libpkix_init_nist.sh

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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 #
    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 #
    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
    28     NIST=${NIST_FILES_DIR}
    29     doNIST=1
    30 fi
    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
    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
    49     NIST_PDTEST=${PDVAL}
    50     doNIST_PDTest=1
    51 fi
    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
    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

mercurial