test/compiler/6857159/Test6857159.sh

Thu, 17 Apr 2014 16:09:08 -0700

author
amurillo
date
Thu, 17 Apr 2014 16:09:08 -0700
changeset 6635
49b5160951dd
parent 6198
55fb97c4c58d
child 6876
710a3c8b516e
permissions
-rw-r--r--

Added tag hs25.20-b11 for changeset b6a2ba7d3ea7

never@1290 1 #!/bin/sh
never@1290 2 #
mikael@6198 3 # Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
never@1290 4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
never@1290 5 #
never@1290 6 # This code is free software; you can redistribute it and/or modify it
never@1290 7 # under the terms of the GNU General Public License version 2 only, as
never@1290 8 # published by the Free Software Foundation.
never@1290 9 #
never@1290 10 # This code is distributed in the hope that it will be useful, but WITHOUT
never@1290 11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
never@1290 12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
never@1290 13 # version 2 for more details (a copy is included in the LICENSE file that
never@1290 14 # accompanied this code).
never@1290 15 #
never@1290 16 # You should have received a copy of the GNU General Public License version
never@1290 17 # 2 along with this work; if not, write to the Free Software Foundation,
never@1290 18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
never@1290 19 #
trims@1907 20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 21 # or visit www.oracle.com if you need additional information or have any
trims@1907 22 # questions.
never@1290 23 #
never@1290 24 #
collins@4831 25 ## some tests require path to find test source dir
never@1290 26 if [ "${TESTSRC}" = "" ]
never@1290 27 then
collins@4831 28 TESTSRC=${PWD}
collins@4831 29 echo "TESTSRC not set. Using "${TESTSRC}" as default"
never@1290 30 fi
never@1290 31 echo "TESTSRC=${TESTSRC}"
collins@4831 32 ## Adding common setup Variables for running shell tests.
collins@4831 33 . ${TESTSRC}/../../test_env.sh
never@1290 34
never@1290 35 set -x
never@1290 36
never@1290 37 cp ${TESTSRC}/Test6857159.java .
never@1290 38 cp ${TESTSRC}/Test6857159.sh .
never@1290 39
collins@4831 40 ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} -d . Test6857159.java
never@1290 41
never@1290 42 ${TESTJAVA}/bin/java ${TESTVMOPTS} -Xbatch -XX:+PrintCompilation -XX:CompileOnly=Test6857159\$ct.run Test6857159 > test.out 2>&1
never@1290 43
never@1290 44 grep "COMPILE SKIPPED" test.out
never@1290 45
never@1290 46 result=$?
never@1290 47 if [ $result -eq 1 ]
never@1290 48 then
never@1290 49 echo "Passed"
never@1290 50 exit 0
never@1290 51 else
never@1290 52 echo "Failed"
never@1290 53 exit 1
never@1290 54 fi

mercurial