зеркало из https://github.com/mozilla/gecko-dev.git
Bugzilla bug 358785: landed libpkix test scripts and data on the trunk.
This commit is contained in:
Родитель
76307b7b4f
Коммит
58dd621592
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -0,0 +1,356 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1994-2000
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
# libpkix_init.sh
|
||||
#
|
||||
|
||||
### when the script is exiting, handle it in the Cleanup routine...the result
|
||||
### value will get set to 0 if all the tests completed successfully, so we can
|
||||
### use that value in the handler
|
||||
|
||||
trap 'Cleanup' EXIT
|
||||
|
||||
result=1
|
||||
checkmem=0
|
||||
arenas=0
|
||||
quiet=0
|
||||
|
||||
doNIST=1
|
||||
doNIST_PDTest=0
|
||||
doPD=0
|
||||
doTop=0
|
||||
doModule=0
|
||||
doPki=0
|
||||
doOCSP=0
|
||||
doOCSPTest=0
|
||||
|
||||
combinedErrors=0
|
||||
totalErrors=0
|
||||
prematureTermination=0
|
||||
errors=0
|
||||
|
||||
if [ -z "${INIT_SOURCED}" ] ; then
|
||||
libpkixCommondir=`pwd`
|
||||
cd ../../common
|
||||
. ./init.sh > /dev/null
|
||||
cd ${libpkixCommondir}
|
||||
fi
|
||||
|
||||
DIST_BIN=${DIST}/${OBJDIR}/bin
|
||||
|
||||
### setup some defaults
|
||||
WD=`pwd`
|
||||
prog=`basename $0`
|
||||
testOut=${HOSTDIR}/${prog}.$$
|
||||
testOutMem=${HOSTDIR}/${prog}_mem.$$
|
||||
|
||||
####################
|
||||
# cleanup from tests
|
||||
####################
|
||||
Cleanup()
|
||||
{
|
||||
if [ ${testOut} != "" ]; then
|
||||
rm -f ${testOut}
|
||||
fi
|
||||
|
||||
if [ ${testOutMem} != "" ]; then
|
||||
rm -f ${testOutMem}
|
||||
fi
|
||||
|
||||
if [ -d ../../nist_pkits/certs ]; then
|
||||
rm -f ../../nist_pkits/certs
|
||||
fi
|
||||
|
||||
if [ ${doTop} -eq 1 ]; then
|
||||
for i in ${linkMStoreNistFiles}; do
|
||||
if [ -f ${HOSTDIR}/rev_data/multiple_certstores/$i ]; then
|
||||
rm -f ${HOSTDIR}/rev_data/multiple_certstores/$i
|
||||
fi
|
||||
done
|
||||
if [ -d ${HOSTDIR}/rev_data/multiple_certstores ]; then
|
||||
rm -fr ${HOSTDIR}/rev_data/multiple_certstores
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ${doModule} -eq 1 ]; then
|
||||
for i in ${linkModuleNistFiles}; do
|
||||
if [ -f ${HOSTDIR}/rev_data/local/$i ]; then
|
||||
rm -f ${HOSTDIR}/rev_data/local/$i
|
||||
fi
|
||||
done
|
||||
for i in ${localCRLFiles}; do
|
||||
if [ -f ${HOSTDIR}/rev_data/local/$i ]; then
|
||||
rm -f ${HOSTDIR}/rev_data/local/$i
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [ ${doPki} -eq 1 ]; then
|
||||
for i in ${linkPkiNistFiles}; do
|
||||
if [ -f ${HOSTDIR}/rev_data/local/$i ]; then
|
||||
rm -f ${HOSTDIR}/rev_data/local/$i
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
return ${result}
|
||||
}
|
||||
|
||||
### ParseArgs
|
||||
ParseArgs() # args
|
||||
{
|
||||
while [ $# -gt 0 ]; do
|
||||
if [ $1 = "-checkmem" ]; then
|
||||
checkmem=1
|
||||
elif [ $1 = "-quiet" ]; then
|
||||
quiet=1
|
||||
elif [ $1 = "-arenas" ]; then
|
||||
arenas=1
|
||||
fi
|
||||
shift
|
||||
done
|
||||
}
|
||||
|
||||
Display() # string
|
||||
{
|
||||
if [ ${quiet} -eq 0 ]; then
|
||||
echo "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
testHeadingEcho()
|
||||
{
|
||||
echo "*******************************************************************************"
|
||||
echo "START OF TESTS FOR ${testunit}${memText}"
|
||||
echo "*******************************************************************************"
|
||||
echo ""
|
||||
}
|
||||
|
||||
testEndingEcho()
|
||||
{
|
||||
if [ ${totalErrors} -eq 0 ]; then
|
||||
echo ""
|
||||
echo "************************************************************"
|
||||
echo "END OF TESTS FOR ${testunit}: ALL TESTS COMPLETED SUCCESSFULLY"
|
||||
echo "************************************************************"
|
||||
echo ""
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [ ${totalErrors} -eq 1 ]; then
|
||||
plural=""
|
||||
else
|
||||
plural="S"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "************************************************************"
|
||||
echo "END OF TESTS FOR ${testunit}: ${totalErrors} TEST${plural} FAILED"
|
||||
echo "************************************************************"
|
||||
echo ""
|
||||
return ${totalErrors}
|
||||
}
|
||||
|
||||
###########
|
||||
# RunTests
|
||||
###########
|
||||
RunTests()
|
||||
{
|
||||
errors=0
|
||||
memErrors=0
|
||||
prematureErrors=0
|
||||
|
||||
failedpgms=""
|
||||
failedmempgms=""
|
||||
failedprematurepgms=""
|
||||
memText=""
|
||||
arenaCmd=""
|
||||
|
||||
if [ ${checkmem} -eq 1 ]; then
|
||||
memText=" (Memory Checking Enabled)"
|
||||
fi
|
||||
|
||||
if [ ${arenas} -eq 1 ]; then
|
||||
arenaCmd="-arenas"
|
||||
fi
|
||||
|
||||
#
|
||||
# Announce start of tests
|
||||
#
|
||||
Display "*******************************************************************************"
|
||||
Display "START OF TESTS FOR PKIX ${testunit} ${memText}"
|
||||
Display "*******************************************************************************"
|
||||
Display ""
|
||||
|
||||
# run each test specified by the input redirection below
|
||||
|
||||
while read testPgm args; do
|
||||
|
||||
shortTestPurpose=`echo $args | awk '{print $1 " " $2 " "}'`
|
||||
fullTestPurpose=${args}
|
||||
if [ ${doTop} -eq 1 -o ${doModule} -eq 1 -o ${doPki} -eq 1 ]; then
|
||||
testPurpose=${shortTestPurpose}
|
||||
else
|
||||
testPurpose=${fullTestPurpose}
|
||||
fi
|
||||
|
||||
# If we want shorter command printout for NIST tests, delete next line
|
||||
testPurpose=${fullTestPurpose}
|
||||
|
||||
# Skip OCSP tests if OCSP is not defined in the environment
|
||||
if [ ${doOCSPTest} -eq 0 ]; then
|
||||
hasOCSP=`echo ${args} | grep OCSP-Test`
|
||||
if [ ! -z "${hasOCSP}" ]; then
|
||||
Display "SKIPPING ${testPgm} ${testPurpose}"
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ${doNIST} -eq 0 ]; then
|
||||
hasNIST=`echo ${args} | grep NIST-Test`
|
||||
if [ ! -z "${hasNIST}" ]; then
|
||||
Display "SKIPPING ${testPgm} ${testPurpose}"
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
|
||||
# This "if" is not reached when doNIST is not set. The assumption
|
||||
# is that NIST tests are basic, NIST Path Discovery tests are
|
||||
# additional
|
||||
if [ ${doNIST_PDTest} -eq 0 ]; then
|
||||
hasNIST=`echo ${args} | grep NIST-PDTest`
|
||||
if [ ! -z "${hasNIST}" ]; then
|
||||
Display "SKIPPING ${testPgm} ${testPurpose}"
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
|
||||
Display "RUNNING ${testPgm} ${arenaCmd} ${testPurpose}"
|
||||
|
||||
numtests=`expr ${numtests} + 1`
|
||||
|
||||
if [ ${checkmem} -eq 1 ]; then
|
||||
dbx -C -c "runargs ${arenaCmd} ${args};check -all;run;exit" ${DIST_BIN}/${testPgm} > ${testOut} 2>&1
|
||||
else
|
||||
${DIST_BIN}/${testPgm} ${arenaCmd} ${args} > ${testOut} 2>&1
|
||||
fi
|
||||
|
||||
# Examine output file to see if test failed and keep track of number
|
||||
# of failures and names of failed tests. This assumes that the test
|
||||
# uses our utility library for displaying information
|
||||
|
||||
cat ${testOut} | tail -2 | grep "COMPLETED SUCCESSFULLY" >/dev/null 2>&1
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
testFail=1
|
||||
errors=`expr ${errors} + 1`
|
||||
failedpgms="${failedpgms}\n${testPgm} ${testPurpose} "
|
||||
# cat ${testOut}
|
||||
else
|
||||
testFail=0
|
||||
passed=`expr ${passed} + 1`
|
||||
fi
|
||||
cat ${testOut}
|
||||
html_msg ${testFail} 0 "${testPgm} ${arenaCmd} ${shortTestPurpose}"
|
||||
|
||||
if [ ${checkmem} -eq 1 ]; then
|
||||
grep "(actual leaks:" ${testOut} > ${testOutMem} 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
prematureErrors=`expr ${prematureErrors} + 1`
|
||||
failedprematurepgms="${failedprematurepgms}${testPgm} "
|
||||
Display "...program terminated prematurely (unable to check for memory leak errors) ..."
|
||||
else
|
||||
#grep "(actual leaks: 0" ${testOut} > /dev/null 2>&1
|
||||
# special consideration for memory leak in NSS_NoDB_Init
|
||||
grep "(actual leaks: 1 total size: 4 bytes)" ${testOut} > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
memErrors=`expr ${memErrors} + 1`
|
||||
failedmempgms="${failedmempgms}${testPgm} "
|
||||
cat ${testOutMem}
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
if [ ${errors} -eq 0 ]; then
|
||||
if [ ${memErrors} -eq 0 ]; then
|
||||
Display ""
|
||||
Display "************************************************************"
|
||||
Display "END OF TESTS FOR PKIX ${testunit}: ALL TESTS COMPLETED SUCCESSFULLY"
|
||||
Display "************************************************************"
|
||||
Display ""
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ${errors} -eq 1 ]; then
|
||||
plural=""
|
||||
else
|
||||
plural="S"
|
||||
fi
|
||||
|
||||
Display ""
|
||||
Display "*******************************************************************************"
|
||||
Display "END OF TESTS FOR PKIX ${testunit}: ${errors} UNIT TEST${plural} FAILED: ${failedpgms}"
|
||||
Display ""
|
||||
if [ ${checkmem} -eq 1 ]; then
|
||||
if [ ${memErrors} -eq 1 ]; then
|
||||
memPlural=""
|
||||
else
|
||||
memPlural="S"
|
||||
fi
|
||||
Display " ${memErrors} MEMORY LEAK TEST${memPlural} FAILED: ${failedmempgms}"
|
||||
|
||||
if [ ${prematureErrors} -ne 0 ]; then
|
||||
if [ ${prematureErrors} -eq 1 ]; then
|
||||
prematurePlural=""
|
||||
else
|
||||
prematurePlural="S"
|
||||
fi
|
||||
Display " ${prematureErrors} MEMORY LEAK TEST${prematurePlural} INDETERMINATE: ${failedprematurepgms}"
|
||||
fi
|
||||
|
||||
fi
|
||||
Display "*******************************************************************************"
|
||||
Display ""
|
||||
combinedErrors=`expr ${errors} + ${memErrors} + ${prematureErrors}`
|
||||
|
||||
return ${combinedErrors}
|
||||
|
||||
}
|
|
@ -0,0 +1,102 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1994-2000
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
# libpkix_init_nist.sh
|
||||
#
|
||||
|
||||
#
|
||||
# Any test that uses NIST files should have a tag of either NIST-Test or
|
||||
# NIST-Test-Files-Used at the command option so if there are no NIST files
|
||||
# installed in the system, the test can be skipped
|
||||
#
|
||||
|
||||
if [ -z "${NIST_FILES_DIR}" ] ; then
|
||||
Display ""
|
||||
Display "*******************************************************************************"
|
||||
Display "The environment variable NIST_FILES_DIR is not defined. Therefore"
|
||||
Display "tests depending on it will be skipped. To enable these tests set"
|
||||
Display "NIST_FILES_DIR to the directory where NIST Certificates and CRLs"
|
||||
Display "are located."
|
||||
Display "*******************************************************************************"
|
||||
Display ""
|
||||
doNIST=0
|
||||
else
|
||||
|
||||
NIST=${NIST_FILES_DIR}
|
||||
doNIST=1
|
||||
fi
|
||||
|
||||
#
|
||||
# Any tests that use NIST Path Discovery files should have a tag of NIST-PDTest
|
||||
# at the command option so if there are no NIST Path Discovery files
|
||||
# installed in the system, the test can be skipped
|
||||
#
|
||||
if [ ${doPD} -eq 1 -a -z "${PDVAL}" ] ; then
|
||||
|
||||
Display ""
|
||||
Display "*******************************************************************************"
|
||||
Display "The environment variable PDVAL is not defined. Therefore tests"
|
||||
Display "depending on it will be skipped. To enable these tests set PDVAL to"
|
||||
Display "the directory where NIST Path Discovery Certificates are located."
|
||||
Display "*******************************************************************************"
|
||||
Display ""
|
||||
doNIST_PDTest=0
|
||||
else
|
||||
|
||||
NIST_PDTEST=${PDVAL}
|
||||
doNIST_PDTest=1
|
||||
fi
|
||||
|
||||
#
|
||||
# Any tests that use an OCSP Server should have a tag of OCSP-Test at the
|
||||
# command option so if there is no OCSP Server installed in the system, the
|
||||
# test can be skipped
|
||||
#
|
||||
if [ ${doOCSP} -eq 1 -a -z "${OCSP}" ] ; then
|
||||
|
||||
Display ""
|
||||
Display "*******************************************************************************"
|
||||
Display "The environment variable OCSP is not defined. Therefore tests"
|
||||
Display "depending on it will be skipped. To enable these tests set OCSP"
|
||||
Display "non-NULL (the actual URI used is taken from the AIA extension)."
|
||||
Display "*******************************************************************************"
|
||||
Display ""
|
||||
doOCSPTest=0
|
||||
else
|
||||
doOCSPTest=1
|
||||
fi
|
|
@ -0,0 +1,186 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1994-2000
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
# runTests.sh
|
||||
#
|
||||
|
||||
totalErrors=0
|
||||
pkixErrors=0
|
||||
pkixplErrors=0
|
||||
checkMemArg=""
|
||||
arenasArg=""
|
||||
quietArg=""
|
||||
memText=""
|
||||
|
||||
############################## libpkix_init ###############################
|
||||
# local shell function to initialize this script
|
||||
########################################################################
|
||||
libpkix_init()
|
||||
{
|
||||
SCRIPTNAME="libpkixs.sh"
|
||||
if [ -z "${CLEANUP}" ] ; then # if nobody else is responsible for
|
||||
CLEANUP="${SCRIPTNAME}" # cleaning this script will do it
|
||||
fi
|
||||
|
||||
LIBPKIX_CURDIR=`pwd`
|
||||
if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ] ; then
|
||||
cd ../common
|
||||
. ./init.sh
|
||||
fi
|
||||
cd ${LIBPKIX_CURDIR}
|
||||
|
||||
# test at libpkix is written in ksh and hence cannot be sourced "."
|
||||
# by this sh script. While we want to provide each libpkix test script the
|
||||
# ability to be executed alone, we will need to use common/init.sh
|
||||
# to set up bin etc. Since variable values can not be passed to sub-directory
|
||||
# script for checking ($INIT_SOURCED), log is recreated and old data lost.
|
||||
# The cludge way provided here is not ideal, but works (for now) :
|
||||
# We save the log up to this point then concatenate it with libpkix log
|
||||
# as the final one.
|
||||
LOGFILE_ALL=${LOGFILE}
|
||||
if [ ! -z ${LOGFILE_ALL} ] ; then
|
||||
mv ${LOGFILE_ALL} ${LOGFILE_ALL}.tmp
|
||||
touch ${LOGFILE_ALL}
|
||||
fi
|
||||
|
||||
SCRIPTNAME="libpkixs.sh"
|
||||
LIBPKIX_LOG=${HOSTDIR}/libpkix.log #we don't want all the errormessages
|
||||
# in the output.log, otherwise we can't tell what's a real error
|
||||
|
||||
html_head "LIBPKIX Tests"
|
||||
|
||||
}
|
||||
|
||||
############################## libpkix_cleanup ############################
|
||||
# local shell function to finish this script (no exit since it might be
|
||||
# sourced)
|
||||
########################################################################
|
||||
libpkix_cleanup()
|
||||
{
|
||||
if [ ! -z ${LOGFILE_ALL} ] ; then
|
||||
rm ${LOGFILE_ALL}
|
||||
cat ${LOGFILE_ALL}.tmp ${LIBPKIX_LOG} > ${LOGFILE_ALL}
|
||||
rm ${LOGFILE_ALL}.tmp
|
||||
fi
|
||||
|
||||
html "</TABLE><BR>"
|
||||
cd ${QADIR}
|
||||
. common/cleanup.sh
|
||||
}
|
||||
|
||||
ParseArgs ()
|
||||
{
|
||||
while [ $# -gt 0 ]; do
|
||||
if [ $1 == "-checkmem" ]; then
|
||||
checkMemArg=$1
|
||||
memText=" (Memory Checking Enabled)"
|
||||
elif [ $1 == "-quiet" ]; then
|
||||
quietArg=$1
|
||||
elif [ $1 == "-arenas" ]; then
|
||||
arenasArg=$1
|
||||
fi
|
||||
shift
|
||||
done
|
||||
}
|
||||
|
||||
libpkix_main()
|
||||
{
|
||||
|
||||
ParseArgs
|
||||
|
||||
echo "*******************************************************************************"
|
||||
echo "START OF ALL TESTS${memText}"
|
||||
echo "*******************************************************************************"
|
||||
echo ""
|
||||
|
||||
echo "RUNNING tests in pkix_pl_test";
|
||||
html_msg 0 0 "Running tests in pkix_pl_test:"
|
||||
cd pkix_pl_tests;
|
||||
runPLTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
|
||||
pkixplErrors=$?
|
||||
html_msg $? 0 "Results of tests in pkix_pl_test"
|
||||
|
||||
echo "RUNNING tests in pkix_test";
|
||||
html_msg 0 0 "Running tests in pkix_test:"
|
||||
cd ../pkix_tests;
|
||||
runTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
|
||||
pkixErrors=$?
|
||||
html_msg $? 0 "Results of tests in pkix_test"
|
||||
|
||||
echo "RUNNING performance tests in sample_apps";
|
||||
html_msg 0 0 "Running performance tests in sample_apps:"
|
||||
cd ../sample_apps;
|
||||
runPerf.sh ${arenasArg} ${checkMemArg} ${quietArg}
|
||||
pkixPerfErrors=$?
|
||||
html_msg $? 0 "Results of performance tests in sample_apps"
|
||||
|
||||
totalErrors=`expr ${pkixErrors} + ${pkixplErrors} + ${pkixPerfErrors}`
|
||||
|
||||
if [ ${totalErrors} -eq 0 ]; then
|
||||
echo ""
|
||||
echo "************************************************************"
|
||||
echo "END OF ALL TESTS: ALL TESTS COMPLETED SUCCESSFULLY"
|
||||
echo "************************************************************"
|
||||
html_msg ${totalErrors} 0 "ALL LIBPKIX TESTS COMPLETED SUCCESSFULLY"
|
||||
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [ ${totalErrors} -eq 1 ]; then
|
||||
plural=""
|
||||
else
|
||||
plural="S"
|
||||
fi
|
||||
|
||||
if [ ${totalErrors} -ne 0 ]; then
|
||||
echo ""
|
||||
echo "************************************************************"
|
||||
echo "END OF ALL TESTS: ${totalErrors} TEST${plural} FAILED"
|
||||
echo "************************************************************"
|
||||
html_msg 1 0 "${totalErrors} LIBPKIX TEST${plural} FAILED"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
################## main #################################################
|
||||
|
||||
libpkix_init
|
||||
libpkix_main | tee ${LIBPKIX_LOG}
|
||||
libpkix_cleanup
|
||||
|
||||
|
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/local/crldiff.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/local/crldiff.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/local/crlgood.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/local/crlgood.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/local/issuer-hanfei.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/local/issuer-hanfei.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/local/issuer-none.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/local/issuer-none.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_all.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_all.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_allbutcodesigningEE.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_allbutcodesigningEE.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_clientauth.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_clientauth.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_clientauthEE.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_clientauthEE.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_codesigning_clientauth.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_codesigning_clientauth.crt
Executable file
Двоичный файл не отображается.
|
@ -0,0 +1,133 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1994-2000
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
# runPLTests.sh
|
||||
#
|
||||
|
||||
curdir=`pwd`
|
||||
cd ../../common
|
||||
. ./libpkix_init.sh > /dev/null
|
||||
. ./libpkix_init_nist.sh
|
||||
cd ${curdir}
|
||||
|
||||
numtests=0
|
||||
passed=0
|
||||
testunit=MODULE
|
||||
doModule=1
|
||||
|
||||
### setup NIST files need to link in
|
||||
linkModuleNistFiles="InvalidDNnameConstraintsTest3EE.crt
|
||||
InvalidonlySomeReasonsTest21EE.crt
|
||||
indirectCRLCA3cRLIssuerCRL.crl
|
||||
nameConstraintsDN3subCA2Cert.crt
|
||||
nameConstraintsDN4CACert.crt
|
||||
nameConstraintsDN5CACert.crt
|
||||
onlyContainsAttributeCertsCACRL.crl
|
||||
onlyContainsCACertsCACRL.crl
|
||||
onlyContainsUserCertsCACRL.crl
|
||||
onlySomeReasonsCA3compromiseCRL.crl
|
||||
requireExplicitPolicy2CACert.crt
|
||||
inhibitPolicyMapping5CACert.crt
|
||||
inhibitAnyPolicy5CACert.crt
|
||||
inhibitAnyPolicy0CACert.crt
|
||||
P1Mapping1to234CACert.crt
|
||||
UserNoticeQualifierTest15EE.crt
|
||||
UserNoticeQualifierTest16EE.crt
|
||||
UserNoticeQualifierTest17EE.crt
|
||||
UserNoticeQualifierTest18EE.crt
|
||||
CPSPointerQualifierTest20EE.crt"
|
||||
|
||||
if [ -n "${NIST_FILES_DIR}" ]; then
|
||||
if [ ! -d ${HOSTDIR}/rev_data/local ]; then
|
||||
mkdir -p ${HOSTDIR}/rev_data/local
|
||||
fi
|
||||
|
||||
for i in ${linkModuleNistFiles}; do
|
||||
if [ -f ${HOSTDIR}/rev_data/local/$i ]; then
|
||||
rm ${HOSTDIR}/rev_data/local/$i
|
||||
fi
|
||||
cp ${NIST_FILES_DIR}/$i ${HOSTDIR}/rev_data/local/$i
|
||||
done
|
||||
|
||||
localCRLFiles="crlgood.crl
|
||||
crldiff.crl
|
||||
issuer-hanfei.crl
|
||||
issuer-none.crl"
|
||||
|
||||
for i in ${localCRLFiles}; do
|
||||
cp ${curdir}/rev_data/local/$i ${HOSTDIR}/rev_data/local/$i
|
||||
done
|
||||
fi
|
||||
|
||||
##########
|
||||
# main
|
||||
##########
|
||||
|
||||
ParseArgs $*
|
||||
|
||||
SOCKETTRACE=0
|
||||
export SOCKETTRACE
|
||||
|
||||
RunTests <<EOF
|
||||
test_colcertstore NIST-Test-Files-Used rev_data/local ${HOSTDIR}
|
||||
test_pk11certstore ../../pkix_pl_tests/module ../../pkix_tests/top/rev_data/crlchecker
|
||||
test_ekuchecker "Test-EKU-without-OID" ENE "" rev_data test_eku_codesigning_clientauth.crt test_eku_clientauth.crt test_eku_clientauthEE.crt
|
||||
test_ekuchecker "Test-EKU-with-good-OID" ENE "1.3.6.1.5.5.7.3.3" rev_data test_eku_codesigning_clientauth.crt test_eku_clientauth.crt test_eku_clientauthEE.crt
|
||||
test_ekuchecker "Test-EKU-with-bad-OID" EE "1.3.6.1.5.5.7.3.4" rev_data test_eku_codesigning_clientauth.crt test_eku_clientauth.crt test_eku_clientauthEE.crt
|
||||
test_ekuchecker "Test-EKU-with-good-and-bad-OID" EE "1.3.6.1.5.5.7.3.3,1.3.6.1.5.5.7.3.4" rev_data test_eku_codesigning_clientauth.crt test_eku_clientauth.crt test_eku_clientauthEE.crt
|
||||
test_ekuchecker "Test-EKU-only-EE-with-good-OID" ENE "E1.3.6.1.5.5.7.3.3" rev_data test_eku_codesigning_clientauth.crt test_eku_clientauth.crt test_eku_clientauthEE.crt
|
||||
test_ekuchecker "Test-EKU-only-EE-with-bad-OID" EE "E1.3.6.1.5.5.7.3.4" rev_data test_eku_codesigning_clientauth.crt test_eku_clientauth.crt test_eku_clientauthEE.crt
|
||||
test_ekuchecker "Test-EKU-serverAuth" ENE "1.3.6.1.5.5.7.3.1" rev_data test_eku_all.crt test_eku_allbutcodesigningEE.crt
|
||||
test_ekuchecker "Test-EKU-clientAuth" ENE "1.3.6.1.5.5.7.3.2" rev_data test_eku_all.crt test_eku_allbutcodesigningEE.crt
|
||||
test_ekuchecker "Test-EKU-codesigning-without-OID" EE "1.3.6.1.5.5.7.3.3" rev_data test_eku_all.crt test_eku_allbutcodesigningEE.crt
|
||||
test_ekuchecker "Test-EKU-emailProtection" ENE "1.3.6.1.5.5.7.3.4" rev_data test_eku_all.crt test_eku_allbutcodesigningEE.crt
|
||||
test_ekuchecker "Test-EKU-timestamping" ENE "1.3.6.1.5.5.7.3.8" rev_data test_eku_all.crt test_eku_allbutcodesigningEE.crt
|
||||
test_ekuchecker "Test-EKU-OCSPSigning" ENE "1.3.6.1.5.5.7.3.9" rev_data test_eku_all.crt test_eku_allbutcodesigningEE.crt
|
||||
test_ekuchecker "Test-EKU-only-EE-serverAuth" ENE "E1.3.6.1.5.5.7.3.1" rev_data test_eku_all.crt test_eku_allbutcodesigningEE.crt
|
||||
test_ekuchecker "Test-EKU-only-EE-clientAuth" ENE "E1.3.6.1.5.5.7.3.2" rev_data test_eku_all.crt test_eku_allbutcodesigningEE.crt
|
||||
test_ekuchecker "Test-EKU-only-EE-codesigning-without-OID" EE "E1.3.6.1.5.5.7.3.3" rev_data test_eku_all.crt test_eku_allbutcodesigningEE.crt
|
||||
test_ekuchecker "Test-EKU-only-EE-emailProtection" ENE "E1.3.6.1.5.5.7.3.4" rev_data test_eku_all.crt test_eku_allbutcodesigningEE.crt
|
||||
test_ekuchecker "Test-EKU-only-EE-timestamping" ENE "E1.3.6.1.5.5.7.3.8" rev_data test_eku_all.crt test_eku_allbutcodesigningEE.crt
|
||||
test_ekuchecker "Test-EKU-only-EE-ocspSigning" ENE "E1.3.6.1.5.5.7.3.9" rev_data test_eku_all.crt test_eku_allbutcodesigningEE.crt
|
||||
test_socket ${HOSTADDR}:2000
|
||||
EOF
|
||||
|
||||
totalErrors=$?
|
||||
html_msg ${totalErrors} 0 " ${testunit}: passed ${passed} of ${numtests} tests"
|
||||
exit ${totalErrors}
|
||||
|
Двоичный файл не отображается.
|
@ -0,0 +1,3 @@
|
|||
If the total number of CRL files is changed in this directory,
|
||||
the define PKIX_TEST_COLLECTIONCERTSTORE_NUM_CRLS under the
|
||||
test directory also need to be changed.
|
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/pki/rev_data/local/crldiff.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/pki/rev_data/local/crldiff.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/pki/rev_data/local/crlgood.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/pki/rev_data/local/crlgood.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/pki/rev_data/local/issuer-hanfei.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/pki/rev_data/local/issuer-hanfei.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/pki/rev_data/local/issuer-none.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_pl_tests/pki/rev_data/local/issuer-none.crl
Executable file
Двоичный файл не отображается.
|
@ -0,0 +1,113 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1994-2000
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
# runPLTests.sh
|
||||
#
|
||||
|
||||
curdir=`pwd`
|
||||
cd ../../common
|
||||
. ./libpkix_init.sh > /dev/null
|
||||
doPD=1
|
||||
. ./libpkix_init_nist.sh
|
||||
cd ${curdir}
|
||||
|
||||
numtests=0
|
||||
passed=0
|
||||
testunit=PKI
|
||||
doPki=1
|
||||
|
||||
### setup NIST files need to link in
|
||||
linkPkiNistFiles="InvalidDNnameConstraintsTest3EE.crt
|
||||
InvalidonlySomeReasonsTest21EE.crt
|
||||
indirectCRLCA3cRLIssuerCRL.crl
|
||||
nameConstraintsDN3subCA2Cert.crt
|
||||
nameConstraintsDN4CACert.crt
|
||||
nameConstraintsDN5CACert.crt
|
||||
onlyContainsAttributeCertsCACRL.crl
|
||||
onlyContainsCACertsCACRL.crl
|
||||
onlyContainsUserCertsCACRL.crl
|
||||
onlySomeReasonsCA3compromiseCRL.crl
|
||||
requireExplicitPolicy2CACert.crt
|
||||
inhibitPolicyMapping5CACert.crt
|
||||
inhibitAnyPolicy5CACert.crt
|
||||
inhibitAnyPolicy0CACert.crt
|
||||
P1Mapping1to234CACert.crt
|
||||
UserNoticeQualifierTest15EE.crt
|
||||
UserNoticeQualifierTest16EE.crt
|
||||
UserNoticeQualifierTest17EE.crt
|
||||
UserNoticeQualifierTest18EE.crt
|
||||
CPSPointerQualifierTest20EE.crt"
|
||||
|
||||
if [ -n "${NIST_FILES_DIR}" ]; then
|
||||
if [ ! -d ${HOSTDIR}/rev_data/local ]; then
|
||||
mkdir -p ${HOSTDIR}/rev_data/local
|
||||
fi
|
||||
|
||||
for i in ${linkPkiNistFiles}; do
|
||||
if [ -f ${HOSTDIR}/rev_data/local/$i ]; then
|
||||
rm ${HOSTDIR}/rev_data/local/$i
|
||||
fi
|
||||
cp ${NIST_FILES_DIR}/$i ${HOSTDIR}/rev_data/local/$i
|
||||
done
|
||||
fi
|
||||
|
||||
##########
|
||||
# main
|
||||
#########
|
||||
|
||||
TZ=US/Eastern
|
||||
|
||||
ParseArgs $*
|
||||
|
||||
RunTests <<EOF
|
||||
test_cert NIST-Test-Files-Used ../../certs ${HOSTDIR}/rev_data/local
|
||||
test_crl NIST-Test-Files-Used ../../certs
|
||||
test_x500name
|
||||
test_generalname
|
||||
test_date NIST-Test-Files-Used
|
||||
test_crlentry ../../certs
|
||||
test_nameconstraints NIST-Test-Files-Used rev_data/local ${HOSTDIR}
|
||||
test_authorityinfoaccess NIST-PDTest ${NIST_PDTEST} certs/BasicLDAPURIPathDiscoveryOU1EE1.crt certs/BasicHTTPURITrustAnchorRootCert.crt
|
||||
test_subjectinfoaccess NIST-PDTest ${NIST_PDTEST} certs/BasicHTTPURITrustAnchorRootCert.crt certs/BasicLDAPURIPathDiscoveryOU1EE1.crt
|
||||
EOF
|
||||
|
||||
totalErrors=$?
|
||||
html_msg ${totalErrors} 0 " ${testunit}: passed ${passed} of ${numtests} tests"
|
||||
exit ${totalErrors}
|
||||
|
||||
|
|
@ -0,0 +1,99 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1994-2000
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
# runPLTests.sh
|
||||
#
|
||||
|
||||
curdir=`pwd`
|
||||
cd ../common
|
||||
. ./libpkix_init.sh > /dev/null
|
||||
cd ${curdir}
|
||||
|
||||
testunit="PKIX_PL"
|
||||
|
||||
totalErrors=0
|
||||
moduleErrors=0
|
||||
systemErrors=0
|
||||
pkiErrors=0
|
||||
quiet=0
|
||||
|
||||
checkMemArg=""
|
||||
arenasArg=""
|
||||
quietArg=""
|
||||
|
||||
### ParseArgs
|
||||
myParseArgs() # args
|
||||
{
|
||||
while [ $# -gt 0 ]; do
|
||||
if [ $1 = "-checkmem" ]; then
|
||||
checkMemArg=$1
|
||||
elif [ $1 = "-quiet" ]; then
|
||||
quietArg=$1
|
||||
quiet=1
|
||||
elif [ $1 = "-arenas" ]; then
|
||||
arenasArg=$1
|
||||
fi
|
||||
shift
|
||||
done
|
||||
}
|
||||
|
||||
myParseArgs $*
|
||||
|
||||
testHeadingEcho
|
||||
|
||||
echo "RUNNING tests in pki";
|
||||
cd pki;
|
||||
runPLTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
|
||||
pkiErrors=$?
|
||||
|
||||
echo "RUNNING tests in system";
|
||||
cd ../system;
|
||||
runPLTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
|
||||
systemErrors=$?
|
||||
|
||||
echo "RUNNING tests in module";
|
||||
cd ../module;
|
||||
runPLTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
|
||||
moduleErrors=$?
|
||||
|
||||
totalErrors=`expr $moduleErrors + $systemErrors + $pkiErrors`
|
||||
|
||||
testEndingEcho
|
||||
|
||||
exit ${totalErrors}
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1994-2000
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
# runPLTests.sh
|
||||
#
|
||||
|
||||
curdir=`pwd`
|
||||
cd ../../common
|
||||
. ./libpkix_init.sh > /dev/null
|
||||
cd ${curdir}
|
||||
|
||||
numtests=0
|
||||
passed=0
|
||||
testunit=SYSTEM
|
||||
|
||||
|
||||
##########
|
||||
# main
|
||||
##########
|
||||
|
||||
ParseArgs $*
|
||||
|
||||
RunTests <<EOF
|
||||
test_mem
|
||||
test_object
|
||||
test_string
|
||||
test_bigint
|
||||
test_bytearray
|
||||
test_mutex
|
||||
test_mutex2
|
||||
test_mutex3
|
||||
test_monitorlock
|
||||
test_oid
|
||||
test_hashtable
|
||||
EOF
|
||||
|
||||
totalErrors=$?
|
||||
html_msg ${totalErrors} 0 " ${testunit}: passed ${passed} of ${numtests} tests"
|
||||
exit ${totalErrors}
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1994-2000
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
# runTests.sh
|
||||
#
|
||||
|
||||
curdir=`pwd`
|
||||
cd ../../common
|
||||
. ./libpkix_init.sh > /dev/null
|
||||
. ./libpkix_init_nist.sh
|
||||
cd ${curdir}
|
||||
|
||||
numtests=0
|
||||
passed=0
|
||||
testunit=CERTSEL
|
||||
|
||||
##########
|
||||
# main
|
||||
##########
|
||||
|
||||
ParseArgs $*
|
||||
|
||||
RunTests <<EOF
|
||||
test_comcertselparams ${NIST} NIST-Test-Files-Used
|
||||
test_certselector ${NIST} NIST-Test-Files-Used ../../pkix_pl_tests/module/rev_data
|
||||
EOF
|
||||
|
||||
totalErrors=$?
|
||||
html_msg ${totalErrors} 0 " ${testunit}: passed ${passed} of ${numtests} tests"
|
||||
exit ${totalErrors}
|
|
@ -0,0 +1,63 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1994-2000
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
# runTests.sh
|
||||
#
|
||||
|
||||
curdir=`pwd`
|
||||
cd ../../common
|
||||
. ./libpkix_init.sh > /dev/null
|
||||
cd ${curdir}
|
||||
|
||||
numtests=0
|
||||
passed=0
|
||||
testunit=CHECKER
|
||||
|
||||
##########
|
||||
# main
|
||||
##########
|
||||
|
||||
ParseArgs $*
|
||||
|
||||
RunTests <<EOF
|
||||
test_certchainchecker
|
||||
EOF
|
||||
|
||||
totalErrors=$?
|
||||
html_msg ${totalErrors} 0 " ${testunit}: passed ${passed} of ${numtests} tests"
|
||||
exit ${totalErrors}
|
|
@ -0,0 +1,65 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1994-2000
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
# runTests.sh
|
||||
#
|
||||
|
||||
curdir=`pwd`
|
||||
cd ../../common
|
||||
. ./libpkix_init.sh > /dev/null
|
||||
cd ${curdir}
|
||||
|
||||
numtests=0
|
||||
passed=0
|
||||
testunit=CRLSEL
|
||||
|
||||
|
||||
##########
|
||||
# main
|
||||
##########
|
||||
|
||||
ParseArgs $*
|
||||
|
||||
RunTests <<EOF
|
||||
test_comcrlselparams ../../certs
|
||||
test_crlselector
|
||||
EOF
|
||||
|
||||
totalErrors=$?
|
||||
html_msg ${totalErrors} 0 " ${testunit}: passed ${passed} of ${numtests} tests"
|
||||
exit ${totalErrors}
|
|
@ -0,0 +1,68 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1994-2000
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
# runTests.sh
|
||||
#
|
||||
|
||||
curdir=`pwd`
|
||||
cd ../../common
|
||||
. ./libpkix_init.sh > /dev/null
|
||||
. ./libpkix_init_nist.sh
|
||||
cd ${curdir}
|
||||
|
||||
numtests=0
|
||||
passed=0
|
||||
testunit=PARAMS
|
||||
|
||||
|
||||
##########
|
||||
# main
|
||||
##########
|
||||
|
||||
ParseArgs $*
|
||||
|
||||
RunTests <<EOF
|
||||
test_valparams ../../certs
|
||||
test_procparams ../../certs
|
||||
test_trustanchor ${NIST} ../../certs NIST-Test-Files-Used
|
||||
test_resourcelimits
|
||||
EOF
|
||||
|
||||
totalErrors=$?
|
||||
html_msg ${totalErrors} 0 " ${testunit}: passed ${passed} of ${numtests} tests"
|
||||
exit ${totalErrors}
|
|
@ -0,0 +1,68 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1994-2000
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
# runTests.sh
|
||||
#
|
||||
|
||||
curdir=`pwd`
|
||||
cd ../../common
|
||||
. ./libpkix_init.sh > /dev/null
|
||||
. ./libpkix_init_nist.sh
|
||||
cd ${curdir}
|
||||
|
||||
numtests=0
|
||||
passed=0
|
||||
testunit=RESULTS
|
||||
|
||||
|
||||
##########
|
||||
# main
|
||||
##########
|
||||
|
||||
ParseArgs $*
|
||||
|
||||
RunTests <<EOF
|
||||
test_policynode ${NIST} NIST-Test-Files-Used
|
||||
test_valresult ../../certs
|
||||
test_buildresult ../../certs
|
||||
test_verifynode ${NIST} TrustAnchorRootCertificate.crt GoodCACert.crt ValidCertificatePathTest1EE.crt
|
||||
EOF
|
||||
|
||||
totalErrors=$?
|
||||
html_msg ${totalErrors} 0 " ${testunit}: passed ${passed} of ${numtests} tests"
|
||||
exit ${totalErrors}
|
|
@ -0,0 +1,130 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1994-2000
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
# runTests.sh
|
||||
#
|
||||
|
||||
curdir=`pwd`
|
||||
cd ../common
|
||||
. ./libpkix_init.sh > /dev/null
|
||||
cd ${curdir}
|
||||
|
||||
testunit="PKIX"
|
||||
|
||||
totalErrors=0
|
||||
utilErrors=0
|
||||
crlselErrors=0
|
||||
paramsErrors=0
|
||||
resultsErrors=0
|
||||
topErrors=0
|
||||
checkerErrors=0
|
||||
certselErrors=0
|
||||
quiet=0
|
||||
|
||||
checkMemArg=""
|
||||
arenasArg=""
|
||||
quietArg=""
|
||||
memText=""
|
||||
|
||||
### ParseArgs
|
||||
ParseArgs() # args
|
||||
{
|
||||
while [ $# -gt 0 ]; do
|
||||
if [ $1 = "-checkmem" ]; then
|
||||
checkMemArg=$1
|
||||
memText=" (Memory Checking Enabled)"
|
||||
elif [ $1 = "-quiet" ]; then
|
||||
quietArg=$1
|
||||
quiet=1
|
||||
elif [ $1 = "-arenas" ]; then
|
||||
arenasArg=$1
|
||||
fi
|
||||
shift
|
||||
done
|
||||
}
|
||||
|
||||
ParseArgs $*
|
||||
|
||||
testHeadingEcho
|
||||
|
||||
echo "RUNNING tests in certsel";
|
||||
cd certsel;
|
||||
runTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
|
||||
certselErrors=$?
|
||||
|
||||
echo "RUNNING tests in checker";
|
||||
cd ../checker;
|
||||
runTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
|
||||
checkerErrors=$?
|
||||
|
||||
echo "RUNNING tests in results";
|
||||
cd ../results;
|
||||
runTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
|
||||
resultsErrors=$?
|
||||
|
||||
echo "RUNNING tests in params";
|
||||
cd ../params;
|
||||
runTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
|
||||
paramsErrors=$?
|
||||
|
||||
echo "RUNNING tests in crlsel";
|
||||
cd ../crlsel;
|
||||
runTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
|
||||
crlselErrors=$?
|
||||
|
||||
echo "RUNNING tests in store";
|
||||
cd ../store;
|
||||
runTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
|
||||
storeErrors=$?
|
||||
|
||||
echo "RUNNING tests in util";
|
||||
cd ../util;
|
||||
runTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
|
||||
utilErrors=$?
|
||||
|
||||
echo "RUNNING tests in top";
|
||||
cd ../top;
|
||||
runTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
|
||||
topErrors=$?
|
||||
|
||||
totalErrors=`expr ${certselErrors} + ${checkerErrors} + ${resultsErrors} + ${paramsErrors} + ${crlselErrors} + ${storeErrors} + ${utilErrors} + ${topErrors}`
|
||||
|
||||
testEndingEcho
|
||||
|
||||
exit ${totalErrors}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1994-2000
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
# runTests.sh
|
||||
#
|
||||
|
||||
curdir=`pwd`
|
||||
cd ../../common
|
||||
. ./libpkix_init.sh > /dev/null
|
||||
cd ${curdir}
|
||||
|
||||
numtests=0
|
||||
passed=0
|
||||
testunit=STORE
|
||||
|
||||
|
||||
##########
|
||||
# main
|
||||
##########
|
||||
|
||||
ParseArgs $*
|
||||
|
||||
RunTests <<EOF
|
||||
test_store genericCertStore rev_data/crlchecker ${HOSTDIR}
|
||||
EOF
|
||||
|
||||
totalErrors=$?
|
||||
html_msg ${totalErrors} 0 " ${testunit}: passed ${passed} of ${numtests} tests"
|
||||
exit ${totalErrors}
|
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/greg.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/greg.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/greg2yassir_badsig.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/greg2yassir_badsig.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/jes.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/jes.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/jes2greg.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/jes2greg.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/jes2jes.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/jes2jes.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/jes2labs.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/jes2labs.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/labs.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/labs.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/labs2yassir.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/labs2yassir.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/yassir.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/yassir.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/yassir2hanfei.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/yassir2hanfei.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/greg.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/greg.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/greg2yassir.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/greg2yassir.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/jes.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/jes.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/jes2greg.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/jes2greg.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/jes2jes.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/jes2jes.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/jes2labs.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/jes2labs.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/labs.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/labs.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/labs2yassir.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/labs2yassir.crt
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/yassir.crl
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/yassir.crl
Executable file
Двоичный файл не отображается.
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/yassir2hanfei.crt
Executable file
Двоичные данные
security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/yassir2hanfei.crt
Executable file
Двоичный файл не отображается.
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче