mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-23 00:47:31 +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
30
security/nss/tests/gtests/gtests.sh
Executable file → Normal file
30
security/nss/tests/gtests/gtests.sh
Executable file → Normal file
|
|
@ -24,8 +24,6 @@ gtest_init()
|
|||
{
|
||||
cd "$(dirname "$1")"
|
||||
pwd
|
||||
SOURCE_DIR="$PWD"/../..
|
||||
|
||||
if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ]; then
|
||||
cd ../common
|
||||
. ./init.sh
|
||||
|
|
@ -70,26 +68,25 @@ gtest_start()
|
|||
if [ "$i" = "mozpkix_gtest" ]; then
|
||||
EXTRA_ASAN_OPTIONS="detect_odr_violation=0"
|
||||
fi
|
||||
# NSS CI sets a lower max for PBE iterations, otherwise cert.sh
|
||||
# is very slow. Unset this maxiumum for softoken_gtest, as it
|
||||
# needs to check the default value.
|
||||
if [ "$i" = "softoken_gtest" ]; then
|
||||
OLD_MAX_PBE_ITERATIONS=$NSS_MAX_MP_PBE_ITERATION_COUNT
|
||||
unset NSS_MAX_MP_PBE_ITERATION_COUNT
|
||||
fi
|
||||
echo "executing $i"
|
||||
ASAN_OPTIONS="$ASAN_OPTIONS:$EXTRA_ASAN_OPTIONS" "${BINDIR}/$i" \
|
||||
-s "${SOURCE_DIR}/gtests/$i" \
|
||||
"${SOURCE_DIR}/gtests/freebl_gtest/kat/Hash_DRBG.rsp" \
|
||||
-d "$DIR" -w --gtest_output=xml:"${GTESTREPORT}" \
|
||||
--gtest_filter="${GTESTFILTER:-*}"
|
||||
html_msg $? 0 "$i run successfully"
|
||||
if [ "$i" = "softoken_gtest" ]; then
|
||||
export NSS_MAX_MP_PBE_ITERATION_COUNT=$OLD_MAX_PBE_ITERATIONS
|
||||
fi
|
||||
|
||||
echo "test output dir: ${GTESTREPORT}"
|
||||
echo "executing sed to parse the xml report"
|
||||
sed -f "${COMMON}/parsegtestreport.sed" "$GTESTREPORT" > "$PARSED_REPORT"
|
||||
echo "processing the parsed report"
|
||||
gtest_parse_report ${GTESTREPORT}
|
||||
cat "$PARSED_REPORT" | while read result name; do
|
||||
if [ "$result" = "notrun" ]; then
|
||||
echo "$name" SKIPPED
|
||||
elif [ "$result" = "run" ]; then
|
||||
html_passed_ignore_core "$name"
|
||||
else
|
||||
html_failed_ignore_core "$name"
|
||||
fi
|
||||
done
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
|
@ -101,7 +98,8 @@ gtest_cleanup()
|
|||
}
|
||||
|
||||
################## main #################################################
|
||||
GTESTS="${GTESTS:-base_gtest certhigh_gtest certdb_gtest der_gtest pk11_gtest util_gtest freebl_gtest softoken_gtest sysinit_gtest smime_gtest mozpkix_gtest}"
|
||||
GTESTS="${GTESTS:-base_gtest prng_gtest certhigh_gtest certdb_gtest der_gtest pk11_gtest util_gtest freebl_gtest softoken_gtest sysinit_gtest blake2b_gtest smime_gtest mozpkix_gtest}"
|
||||
SOURCE_DIR="$PWD"/../..
|
||||
gtest_init "$0"
|
||||
gtest_start
|
||||
gtest_cleanup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue