summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKevin Jacobs <kjacobs@mozilla.com>2021-01-13 02:33:06 +0000
committerKevin Jacobs <kjacobs@mozilla.com>2021-01-13 02:33:06 +0000
commit11925d05e802a578ee2934924483a5f22951bd0e (patch)
treec41e54bf284fed471d444dff0486b8ddef84b652 /tests
parenta8c41b1514115268e5bee6f7bc681f67e058d8e0 (diff)
downloadnss-hg-11925d05e802a578ee2934924483a5f22951bd0e.tar.gz
Bug 1684300 - Disable legacy storage when compiled with NSS_DISABLE_DBM. r=mt
Differential Revision: https://phabricator.services.mozilla.com/D101218
Diffstat (limited to 'tests')
-rwxr-xr-xtests/gtests/gtests.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/gtests/gtests.sh b/tests/gtests/gtests.sh
index 50c0410f0..4005a16a6 100755
--- a/tests/gtests/gtests.sh
+++ b/tests/gtests/gtests.sh
@@ -68,12 +68,23 @@ 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" \
"${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"