summaryrefslogtreecommitdiff
path: root/openjdk8-aarch64-port-snapshot/hotspot/test/compiler/6857159/Test6857159.sh
diff options
context:
space:
mode:
Diffstat (limited to 'openjdk8-aarch64-port-snapshot/hotspot/test/compiler/6857159/Test6857159.sh')
-rw-r--r--openjdk8-aarch64-port-snapshot/hotspot/test/compiler/6857159/Test6857159.sh23
1 files changed, 6 insertions, 17 deletions
diff --git a/openjdk8-aarch64-port-snapshot/hotspot/test/compiler/6857159/Test6857159.sh b/openjdk8-aarch64-port-snapshot/hotspot/test/compiler/6857159/Test6857159.sh
index 341130e7..b73f1e2a 100644
--- a/openjdk8-aarch64-port-snapshot/hotspot/test/compiler/6857159/Test6857159.sh
+++ b/openjdk8-aarch64-port-snapshot/hotspot/test/compiler/6857159/Test6857159.sh
@@ -22,33 +22,22 @@
# questions.
#
#
-
+## some tests require path to find test source dir
if [ "${TESTSRC}" = "" ]
then
- echo "TESTSRC not set. Test cannot execute. Failed."
- exit 1
+ TESTSRC=${PWD}
+ echo "TESTSRC not set. Using "${TESTSRC}" as default"
fi
echo "TESTSRC=${TESTSRC}"
-if [ "${TESTJAVA}" = "" ]
-then
- echo "TESTJAVA not set. Test cannot execute. Failed."
- exit 1
-fi
-echo "TESTJAVA=${TESTJAVA}"
-if [ "${TESTCLASSES}" = "" ]
-then
- echo "TESTCLASSES not set. Test cannot execute. Failed."
- exit 1
-fi
-echo "TESTCLASSES=${TESTCLASSES}"
-echo "CLASSPATH=${CLASSPATH}"
+## Adding common setup Variables for running shell tests.
+. ${TESTSRC}/../../test_env.sh
set -x
cp ${TESTSRC}/Test6857159.java .
cp ${TESTSRC}/Test6857159.sh .
-${TESTJAVA}/bin/javac -d . Test6857159.java
+${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} -d . Test6857159.java
${TESTJAVA}/bin/java ${TESTVMOPTS} -Xbatch -XX:+PrintCompilation -XX:CompileOnly=Test6857159\$ct.run Test6857159 > test.out 2>&1