summaryrefslogtreecommitdiff
path: root/tests/common/init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common/init.sh')
-rw-r--r--tests/common/init.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/common/init.sh b/tests/common/init.sh
index b3d44b034..d625b7701 100644
--- a/tests/common/init.sh
+++ b/tests/common/init.sh
@@ -647,6 +647,14 @@ if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ]; then
ulimit -c unlimited
fi
+ #################################################################
+ # If we built nss without softoken use the system installed tool.
+ # Fedora, for example, uses /usr/lib${ARCH}/unsupported-tools but
+ # other platform may place the system installed tests somewhere else.
+ # The FREEBL_BINDIR environment variable will have been set by the
+ # package maintainer.
+ #
+ FREEBL_BINDIR = [ ${NSS_BUILD_WITHOUT_SOFTOKEN} = "1" ] && ${FREEBL_BINDIR} || ${BINDIR}
SCRIPTNAME=$0
INIT_SOURCED=TRUE #whatever one does - NEVER export this one please
fi