2766N/A#!/bin/sh
2766N/A#
2766N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2766N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2766N/A#
2766N/A# This code is free software; you can redistribute it and/or modify it
2766N/A# under the terms of the GNU General Public License version 2 only, as
2766N/A# published by the Free Software Foundation.
2766N/A#
2766N/A# This code is distributed in the hope that it will be useful, but WITHOUT
2766N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2766N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2766N/A# version 2 for more details (a copy is included in the LICENSE file that
2766N/A# accompanied this code).
2766N/A#
2766N/A# You should have received a copy of the GNU General Public License version
2766N/A# 2 along with this work; if not, write to the Free Software Foundation,
2766N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2766N/A#
2766N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2766N/A# or visit www.oracle.com if you need additional information or have any
2766N/A# questions.
2766N/A#
2766N/A#
4503N/A## some tests require path to find test source dir
2766N/Aif [ "${TESTSRC}" = "" ]
2766N/Athen
4503N/A TESTSRC=${PWD}
4503N/A echo "TESTSRC not set. Using "${TESTSRC}" as default"
2766N/Afi
2766N/Aecho "TESTSRC=${TESTSRC}"
4503N/A## Adding common setup Variables for running shell tests.
4503N/A. ${TESTSRC}/../../test_env.sh
2766N/A
2766N/Aset -x
2766N/A
4503N/A${COMPILEJAVA}/bin/jar xf ${COMPILEJAVA}/jre/lib/javaws.jar
4503N/A${COMPILEJAVA}/bin/jar cf foo.jar *
2766N/Acp ${TESTSRC}/Test7068051.java ./
4503N/A${COMPILEJAVA}/bin/jar -uf0 foo.jar Test7068051.java
2766N/A
4503N/A${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} -d . Test7068051.java
2766N/A
4502N/A${TESTJAVA}/bin/java ${TESTVMOPTS} -showversion -Xbatch Test7068051 foo.jar
2766N/A