7102106: TEST_BUG: sun/security/util/Oid/S11N.sh should be modified
authorweijun
Tue, 17 Jul 2012 11:57:37 +0800
changeset 13253 58b99f570bc7
parent 13252 ff713ad9ba3c
child 13255 2a310dd80800
7102106: TEST_BUG: sun/security/util/Oid/S11N.sh should be modified Reviewed-by: mullan
jdk/test/sun/security/util/Oid/S11N.sh
--- a/jdk/test/sun/security/util/Oid/S11N.sh	Tue Jul 17 11:28:16 2012 +0800
+++ b/jdk/test/sun/security/util/Oid/S11N.sh	Tue Jul 17 11:57:37 2012 +0800
@@ -71,7 +71,7 @@
       i[3-6]86 )
         PF="linux-i586"
         ;;
-      amd64* )
+      amd64* | x86_64 )
         PF="linux-amd64"
         ;;
       * )
@@ -97,15 +97,29 @@
     ;;
 esac
 
+echo "==================================================="
+echo "Try to set ALT_JAVA_RE_JDK if you see timeout error"
+echo "==================================================="
+
 # the test code
 
 ${TESTJAVA}${FS}bin${FS}javac -target 1.4 -source 1.4 \
         -d . ${TESTSRC}${FS}SerialTest.java || exit 10
 
+# You can set ALT_JAVA_RE_JDK to another location that contains the
+# binaries for older JDK releases. You can set it to a non-existent
+# directory to skip the interop tests between different versions.
+
+if [ "$ALT_JAVA_RE_JDK" = "" ]; then
+    JAVA_RE_JDK=/java/re/j2se
+else
+    JAVA_RE_JDK=$ALT_JAVA_RE_JDK
+fi
+
 OLDJAVA="
-    /java/re/j2se/1.6.0/latest/binaries/${PF}
-    /java/re/j2se/1.5.0/latest/binaries/${PF}
-    /java/re/j2se/1.4.2/latest/binaries/${PF}
+    $JAVA_RE_JDK/1.6.0/latest/binaries/${PF}
+    $JAVA_RE_JDK/1.5.0/latest/binaries/${PF}
+    $JAVA_RE_JDK/1.4.2/latest/binaries/${PF}
 "
 
 SMALL="