hotspot/test/compiler/7068051/Test7068051.sh
author kvn
Thu, 08 Sep 2011 12:44:04 -0700
changeset 10541 d6e8b9d3d362
child 15864 2757a5eae916
permissions -rw-r--r--
7087947: Add regression test for 7068051 Summary: Add regression test. Reviewed-by: never
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10541
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
     1
#!/bin/sh
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
     2
# 
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
     3
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
     4
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
     5
# 
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
     6
# This code is free software; you can redistribute it and/or modify it
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
     7
# under the terms of the GNU General Public License version 2 only, as
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
     8
# published by the Free Software Foundation.
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
     9
# 
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    10
# This code is distributed in the hope that it will be useful, but WITHOUT
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    12
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    13
# version 2 for more details (a copy is included in the LICENSE file that
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    14
# accompanied this code).
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    15
# 
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    16
# You should have received a copy of the GNU General Public License version
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    17
# 2 along with this work; if not, write to the Free Software Foundation,
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    18
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    19
# 
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    20
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    21
# or visit www.oracle.com if you need additional information or have any
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    22
# questions.
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    23
# 
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    24
# 
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    25
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    26
if [ "${TESTSRC}" = "" ]
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    27
then
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    28
  echo "TESTSRC not set.  Test cannot execute.  Failed."
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    29
  exit 1
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    30
fi
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    31
echo "TESTSRC=${TESTSRC}"
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    32
if [ "${TESTJAVA}" = "" ]
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    33
then
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    34
  echo "TESTJAVA not set.  Test cannot execute.  Failed."
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    35
  exit 1
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    36
fi
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    37
echo "TESTJAVA=${TESTJAVA}"
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    38
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    39
set -x
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    40
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    41
${TESTJAVA}/bin/jar xf ${TESTJAVA}/jre/lib/javaws.jar
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    42
${TESTJAVA}/bin/jar cf foo.jar *
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    43
cp ${TESTSRC}/Test7068051.java ./
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    44
${TESTJAVA}/bin/jar -uf0 foo.jar Test7068051.java
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    45
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    46
${TESTJAVA}/bin/javac -d . Test7068051.java
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    47
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    48
${TESTJAVA}/bin/java -showversion -Xbatch ${TESTVMOPTS} Test7068051 foo.jar
d6e8b9d3d362 7087947: Add regression test for 7068051
kvn
parents:
diff changeset
    49