mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +09:00
re-introduce old nss im too tired for this
This commit is contained in:
parent
3c46be320d
commit
3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions
64
security/nss/tests/all.sh
Executable file → Normal file
64
security/nss/tests/all.sh
Executable file → Normal file
|
|
@ -51,13 +51,10 @@
|
|||
# pkix - run test suites with PKIX enabled
|
||||
# upgradedb - upgrade existing certificate databases to shareable
|
||||
# format (creates them if doesn't exist yet) and run
|
||||
# test suites with those databases. Requires to enable libdm.
|
||||
# test suites with those databases
|
||||
# sharedb - run test suites with shareable database format
|
||||
# enabled (databases are created directly to this
|
||||
# format). This is the default and doesn't need to be run separately.
|
||||
# threadunsafe - run test suites with thread unsafe environment variable
|
||||
# so simulate running NSS locking for PKCS #11 modules which
|
||||
# are not thread safe.
|
||||
# format)
|
||||
#
|
||||
# Mandatory environment variables (to be set before testing):
|
||||
# -----------------------------------------------------------
|
||||
|
|
@ -78,7 +75,6 @@
|
|||
# NSS_TESTS - list of all test suites to run (separated by space
|
||||
# character, without trailing .sh)
|
||||
# - this list can be reduced for individual test cycles
|
||||
# NSS_THREAD_TESTS - list of test suites run in the threadunsafe cycle
|
||||
#
|
||||
# NSS_SSL_TESTS - list of ssl tests to run (see ssl.sh)
|
||||
# NSS_SSL_RUN - list of ssl sub-tests to run (see ssl.sh)
|
||||
|
|
@ -87,7 +83,7 @@
|
|||
# ---------------
|
||||
# all.sh ~ (main)
|
||||
# | |
|
||||
# +------------+------------+-----------+--- ~ run_cycles
|
||||
# +------------+------------+-----------+ ~ run_cycles
|
||||
# | | | | |
|
||||
# standard pkix upgradedb sharedb ~ run_cycle_*
|
||||
# ... | ... ... |
|
||||
|
|
@ -139,16 +135,16 @@ run_tests()
|
|||
}
|
||||
|
||||
########################## run_cycle_standard ##########################
|
||||
# run test suites with sql database (no PKIX)
|
||||
# run test suites with dbm database (no PKIX, no sharedb)
|
||||
########################################################################
|
||||
run_cycle_standard()
|
||||
{
|
||||
TEST_MODE=STANDARD
|
||||
|
||||
TESTS="${ALL_TESTS}"
|
||||
TESTS_SKIP="libpkix pkits"
|
||||
TESTS_SKIP="cipher libpkix sdr ocsp pkits"
|
||||
|
||||
NSS_DEFAULT_DB_TYPE=${NSS_DEFAULT_DB_TYPE:-"sql"}
|
||||
NSS_DEFAULT_DB_TYPE="dbm"
|
||||
export NSS_DEFAULT_DB_TYPE
|
||||
|
||||
run_tests
|
||||
|
|
@ -253,37 +249,6 @@ run_cycle_shared_db()
|
|||
run_tests
|
||||
}
|
||||
|
||||
########################## run_thread_unsafe #########################
|
||||
# run test suites with an non-thread safe softoken
|
||||
# This simulates loading a non-threadsafe PKCS #11 module and makes
|
||||
# Sure we don't have any deadlocks in our locking code
|
||||
########################################################################
|
||||
run_cycle_thread_unsafe()
|
||||
{
|
||||
TEST_MODE=THREAD_UNSAFE
|
||||
|
||||
TABLE_ARGS="bgcolor=lightgray"
|
||||
html_head "Testing with non-threadsafe softoken"
|
||||
html "</TABLE><BR>"
|
||||
|
||||
HOSTDIR="${HOSTDIR}/threadunsafe"
|
||||
mkdir -p "${HOSTDIR}"
|
||||
init_directories
|
||||
|
||||
NSS_FORCE_TOKEN_LOCK=1
|
||||
export NSS_FORCE_TOKEN_LOCK
|
||||
|
||||
# run the tests for appropriate for thread unsafe
|
||||
# basically it's the ssl tests right now.
|
||||
TESTS="${THREAD_TESTS}"
|
||||
TESTS_SKIP="dbupgrade"
|
||||
|
||||
export -n NSS_SSL_TESTS
|
||||
export -n NSS_SSL_RUN
|
||||
|
||||
run_tests
|
||||
}
|
||||
|
||||
############################# run_cycles ###############################
|
||||
# run test cycles defined in CYCLES variable
|
||||
########################################################################
|
||||
|
|
@ -306,9 +271,6 @@ run_cycles()
|
|||
"sharedb")
|
||||
run_cycle_shared_db
|
||||
;;
|
||||
"threadunsafe")
|
||||
run_cycle_thread_unsafe
|
||||
;;
|
||||
esac
|
||||
. ${ENV_BACKUP}
|
||||
done
|
||||
|
|
@ -326,7 +288,7 @@ if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ]; then
|
|||
. ./init.sh
|
||||
fi
|
||||
|
||||
cycles="standard pkix threadunsafe"
|
||||
cycles="standard pkix upgradedb sharedb"
|
||||
CYCLES=${NSS_CYCLES:-$cycles}
|
||||
|
||||
NO_INIT_SUPPORT=`certutil --build-flags |grep -cw NSS_NO_INIT_SUPPORT`
|
||||
|
|
@ -335,7 +297,6 @@ if [ $NO_INIT_SUPPORT -eq 0 ]; then
|
|||
fi
|
||||
|
||||
tests="cipher lowhash libpkix cert dbtests tools $RUN_FIPS sdr crmf smime ssl ocsp merge pkits ec gtests ssl_gtests policy"
|
||||
thread_tests="ssl ssl_gtests"
|
||||
# Don't run chains tests when we have a gyp build.
|
||||
if [ "$OBJDIR" != "Debug" -a "$OBJDIR" != "Release" ]; then
|
||||
tests="$tests chains"
|
||||
|
|
@ -343,17 +304,6 @@ fi
|
|||
TESTS=${NSS_TESTS:-$tests}
|
||||
|
||||
ALL_TESTS=${TESTS}
|
||||
default_thread=""
|
||||
for i in ${ALL_TESTS}
|
||||
do
|
||||
for j in ${thread_tests}
|
||||
do
|
||||
if [ $i = $j ]; then
|
||||
default_thread="$default_thread $i"
|
||||
fi
|
||||
done
|
||||
done
|
||||
THREAD_TESTS=${NSS_THREAD_TESTS-$default_thread}
|
||||
|
||||
nss_ssl_tests="crl iopr policy normal_normal"
|
||||
if [ $NO_INIT_SUPPORT -eq 0 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue