changeset 10803:e44aa23ce826

8059313: Enable keytool NSS test on Mac Reviewed-by: vinnie
author weijun
date Sun, 28 Sep 2014 10:42:50 +0800
parents 85d80971d5c7
children 3289ca2569ca
files test/sun/security/tools/keytool/autotest.sh
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/security/tools/keytool/autotest.sh	Sat Sep 27 03:49:31 2014 +0000
+++ b/test/sun/security/tools/keytool/autotest.sh	Sun Sep 28 10:42:50 2014 +0800
@@ -84,6 +84,11 @@
             "/usr/lib/nss/libsoftokn3.so"`
     fi
     ;;
+  Darwin )
+    LIBNAME=`find_one \
+            "/Applications/Firefox.app/Contents/MacOS/libsoftokn3.dylib" \
+            "/Applications/Thunderbird.app//Contents/MacOS/libsoftokn3.dylib"`
+    ;;
   * )
     echo "Will not run test on: ${OS}"
     exit 0;
@@ -95,6 +100,12 @@
   exit 0
 fi
 
+echo "Using NSS lib at $LIBNAME"
+
+if [ $OS = Darwin ]; then
+    export DYLD_LIBRARY_PATH=`dirname $LIBNAME`
+fi
+
 ${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d . -XDignore.symbol.file \
         ${TESTSRC}${FS}KeyToolTest.java || exit 10