mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 18:07: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
27
security/nss/tests/policy/policy.sh
Executable file → Normal file
27
security/nss/tests/policy/policy.sh
Executable file → Normal file
|
|
@ -12,28 +12,6 @@
|
|||
#
|
||||
########################################################################
|
||||
|
||||
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"
|
||||
|
|
@ -63,7 +41,7 @@ NSS=flags=policyOnly,moduleDB
|
|||
echo "config=\"${policy}\"" >> "$POLICY_FILE"
|
||||
echo "" >> "$POLICY_FILE"
|
||||
|
||||
nss-policy-check -f identifier -f value "$POLICY_FILE" >${TMP}/$HOST.tmp.$$ 2>&1
|
||||
nss-policy-check "$POLICY_FILE" >${TMP}/$HOST.tmp.$$ 2>&1
|
||||
ret=$?
|
||||
cat ${TMP}/$HOST.tmp.$$
|
||||
|
||||
|
|
@ -75,9 +53,6 @@ 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