summaryrefslogtreecommitdiff
path: root/openjdk8-aarch64-port-snapshot/hotspot/test/runtime/7051189/Xchecksig.sh
diff options
context:
space:
mode:
Diffstat (limited to 'openjdk8-aarch64-port-snapshot/hotspot/test/runtime/7051189/Xchecksig.sh')
-rw-r--r--openjdk8-aarch64-port-snapshot/hotspot/test/runtime/7051189/Xchecksig.sh24
1 files changed, 6 insertions, 18 deletions
diff --git a/openjdk8-aarch64-port-snapshot/hotspot/test/runtime/7051189/Xchecksig.sh b/openjdk8-aarch64-port-snapshot/hotspot/test/runtime/7051189/Xchecksig.sh
index f3eabce5..143e1445 100644
--- a/openjdk8-aarch64-port-snapshot/hotspot/test/runtime/7051189/Xchecksig.sh
+++ b/openjdk8-aarch64-port-snapshot/hotspot/test/runtime/7051189/Xchecksig.sh
@@ -29,34 +29,22 @@
#
if [ "${TESTSRC}" = "" ]
- then TESTSRC=.
-fi
-
-if [ "${TESTJAVA}" = "" ]
then
- PARENT=`dirname \`which java\``
- TESTJAVA=`dirname ${PARENT}`
- printf "TESTJAVA not set, selecting " ${TESTJAVA}
- printf " If this is incorrect, try setting the variable manually.\n"
+ TESTSRC=${PWD}
+ echo "TESTSRC not set. Using "${TESTSRC}" as default"
fi
-
+echo "TESTSRC=${TESTSRC}"
+## Adding common setup Variables for running shell tests.
+. ${TESTSRC}/../../test_env.sh
OS=`uname -s`
case "$OS" in
- SunOS | Linux | Darwin )
- FS="/"
- ;;
Windows_* | CYGWIN_* )
printf "Not testing libjsig.so on Windows. PASSED.\n "
exit 0
;;
- * )
- printf "Not testing libjsig.so on unrecognised system. PASSED.\n "
- exit 0
- ;;
esac
-
JAVA=${TESTJAVA}${FS}bin${FS}java
# LD_PRELOAD arch needs to match the binary we run, so run the java
@@ -97,7 +85,7 @@ case $ARCH in
;;
esac
-LIBJSIG=${TESTJAVA}${FS}jre${FS}lib${FS}${ARCH}${FS}libjsig.so
+LIBJSIG=${COMPILEJAVA}${FS}jre${FS}lib${FS}${ARCH}${FS}libjsig.so
# If libjsig and binary do not match, skip test.