test/compiler/5091921/Test6890943.sh

changeset 4831
04d6d4322c6a
parent 4619
a2bc322ca273
child 6876
710a3c8b516e
equal deleted inserted replaced
4830:7ca101eef24a 4831:04d6d4322c6a
20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 # or visit www.oracle.com if you need additional information or have any 21 # or visit www.oracle.com if you need additional information or have any
22 # questions. 22 # questions.
23 # 23 #
24 # 24 #
25 25 ## some tests require path to find test source dir
26 if [ "${TESTSRC}" = "" ] 26 if [ "${TESTSRC}" = "" ]
27 then 27 then
28 echo "TESTSRC not set. Test cannot execute. Failed." 28 TESTSRC=${PWD}
29 exit 1 29 echo "TESTSRC not set. Using "${TESTSRC}" as default"
30 fi 30 fi
31 echo "TESTSRC=${TESTSRC}" 31 echo "TESTSRC=${TESTSRC}"
32 if [ "${TESTJAVA}" = "" ] 32 ## Adding common setup Variables for running shell tests.
33 then 33 . ${TESTSRC}/../../test_env.sh
34 echo "TESTJAVA not set. Test cannot execute. Failed." 34
35 exit 1
36 fi
37 echo "TESTJAVA=${TESTJAVA}"
38 if [ "${TESTCLASSES}" = "" ]
39 then
40 echo "TESTCLASSES not set. Test cannot execute. Failed."
41 exit 1
42 fi
43 echo "TESTCLASSES=${TESTCLASSES}"
44 echo "CLASSPATH=${CLASSPATH}"
45 35
46 set -x 36 set -x
47 37
48 cp ${TESTSRC}/Test6890943.java . 38 cp ${TESTSRC}/Test6890943.java .
49 cp ${TESTSRC}/input6890943.txt . 39 cp ${TESTSRC}/input6890943.txt .
50 cp ${TESTSRC}/output6890943.txt . 40 cp ${TESTSRC}/output6890943.txt .
51 cp ${TESTSRC}/Test6890943.sh . 41 cp ${TESTSRC}/Test6890943.sh .
52 42
53 ${TESTJAVA}/bin/javac -d . Test6890943.java 43 ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} -d . Test6890943.java
54 44
55 ${TESTJAVA}/bin/java -XX:-PrintVMOptions -XX:+IgnoreUnrecognizedVMOptions ${TESTVMOPTS} Test6890943 < input6890943.txt > pretest.out 2>&1 45 ${TESTJAVA}/bin/java -XX:-PrintVMOptions -XX:+IgnoreUnrecognizedVMOptions ${TESTVMOPTS} Test6890943 < input6890943.txt > pretest.out 2>&1
56 46
57 # This test sometimes tickles an unrelated performance warning that interferes with diff. 47 # This test sometimes tickles an unrelated performance warning that interferes with diff.
58 grep -v 'warning: Performance bug: SystemDictionary' pretest.out > test.out 48 grep -v 'warning: Performance bug: SystemDictionary' pretest.out > test.out

mercurial