summaryrefslogtreecommitdiff
path: root/tests/fips
diff options
context:
space:
mode:
authorElio Maldonado <emaldona@redhat.com>2013-04-09 22:37:08 -0700
committerElio Maldonado <emaldona@redhat.com>2013-04-09 22:37:08 -0700
commitf5751eef41594717893f21834cb1ba1c225886f5 (patch)
tree5d4054f094dd6487440a4da612cbd8ace5e69a89 /tests/fips
parent05eb18708b148d874d8aa6dd9a0eb5a5bf25b50f (diff)
downloadnss-hg-f5751eef41594717893f21834cb1ba1c225886f5.tar.gz
Bug 835919 - Allow optionally building nss without softoken in the tree, r=rrelya
Diffstat (limited to 'tests/fips')
-rwxr-xr-xtests/fips/fips.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/tests/fips/fips.sh b/tests/fips/fips.sh
index 183d01516..39b49bb75 100755
--- a/tests/fips/fips.sh
+++ b/tests/fips/fips.sh
@@ -223,9 +223,22 @@ fips_140()
# is needed to copy files one by one.
echo "mkdir ${MANGLEDIR}"
mkdir ${MANGLEDIR}
+ # When building nss without softoken use the system installed softoken library located
+ # in SOFTOKEN_LIB_DIR. This variable will have been set by the nss package mainainer.
+ # Fedora, for example, installs it in /usr/lib${ARCH} but other platforms may place
+ # the libraries in a different location.
for lib in `ls ${LIBDIR}`; do
- echo "cp ${LIBDIR}/${lib} ${MANGLEDIR}"
- cp ${LIBDIR}/${lib} ${MANGLEDIR}
+ # Only softoken is used in the mangling test
+ if [ ${lib} = ${DLL_PREFIX}softokn3.so ]; then
+ if [ ${NSS_BUILD_WITHOUT_SOFTOKEN} = "1" ]; then
+ # use the system installed softoken library
+ echo "cp ${SOFTOKEN_LIB_DIR}/${lib} ${MANGLEDIR}"
+ cp ${SOFTOKEN_LIB_DIR}/${lib} ${MANGLEDIR}
+ else
+ echo "cp ${LIBDIR}/${lib} ${MANGLEDIR}"
+ cp ${LIBDIR}/${lib} ${MANGLEDIR}
+ fi
+ fi
done
echo "$SCRIPTNAME: Detect mangled softoken--------------------------"