mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 01:17:34 +09:00
Replace NSS with Pale Moon's
This commit is contained in:
parent
ff1e5e48bf
commit
8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions
27
security/nss/tests/policy/policy.sh
Normal file → Executable file
27
security/nss/tests/policy/policy.sh
Normal file → Executable file
|
|
@ -12,6 +12,28 @@
|
|||
#
|
||||
########################################################################
|
||||
|
||||
policy_init()
|
||||
{
|
||||
SCRIPTNAME=policy.sh # sourced - $0 would point to all.sh
|
||||
|
||||
if [ -z "${CLEANUP}" ] ; then # if nobody else is responsible for
|
||||
CLEANUP="${SCRIPTNAME}" # cleaning this script will do it
|
||||
fi
|
||||
|
||||
if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ]; then
|
||||
cd ../common
|
||||
. ./init.sh
|
||||
fi
|
||||
SCRIPTNAME=policy.sh
|
||||
|
||||
}
|
||||
|
||||
policy_cleanup()
|
||||
{
|
||||
cd ${QADIR}
|
||||
. common/cleanup.sh
|
||||
}
|
||||
|
||||
ignore_blank_lines()
|
||||
{
|
||||
LC_ALL=C egrep -v '^[[:space:]]*(#|$)' "$1"
|
||||
|
|
@ -41,7 +63,7 @@ NSS=flags=policyOnly,moduleDB
|
|||
echo "config=\"${policy}\"" >> "$POLICY_FILE"
|
||||
echo "" >> "$POLICY_FILE"
|
||||
|
||||
nss-policy-check "$POLICY_FILE" >${TMP}/$HOST.tmp.$$ 2>&1
|
||||
nss-policy-check -f identifier -f value "$POLICY_FILE" >${TMP}/$HOST.tmp.$$ 2>&1
|
||||
ret=$?
|
||||
cat ${TMP}/$HOST.tmp.$$
|
||||
|
||||
|
|
@ -53,6 +75,9 @@ NSS=flags=policyOnly,moduleDB
|
|||
html_msg $ret 0 "\"${testname}\" output is expected to match \"${match}\""
|
||||
|
||||
done
|
||||
html "</TABLE><BR>"
|
||||
}
|
||||
|
||||
policy_init
|
||||
policy_run_tests
|
||||
policy_cleanup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue