TestInputArgument.sh revision 0
1138N/A#
2204N/A# Copyright 2003-2006 Sun Microsystems, Inc. All Rights Reserved.
1138N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1138N/A#
1138N/A# This code is free software; you can redistribute it and/or modify it
1138N/A# under the terms of the GNU General Public License version 2 only, as
1138N/A# published by the Free Software Foundation.
1138N/A#
1138N/A# This code is distributed in the hope that it will be useful, but WITHOUT
1138N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1138N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1138N/A# version 2 for more details (a copy is included in the LICENSE file that
1138N/A# accompanied this code).
1138N/A#
1138N/A# You should have received a copy of the GNU General Public License version
1138N/A# 2 along with this work; if not, write to the Free Software Foundation,
1138N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1138N/A#
1472N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
1472N/A# CA 95054 USA or visit www.sun.com if you need additional information or
1472N/A# have any questions.
1138N/A#
1138N/A
1138N/A#
1879N/A# @test
1879N/A# @bug 4530538
1879N/A# @summary
1879N/A# @author Mandy Chung
1879N/A#
1138N/A# @run compile -source 1.5 InputArgument.java
1138N/A# @run shell TestInputArgument.sh
2204N/A#
1138N/A
1138N/A#Set appropriate jdk
1138N/A
1138N/Aif [ ! -z "${TESTJAVA}" ] ; then
1138N/A jdk="$TESTJAVA"
1138N/Aelse
1138N/A echo "--Error: TESTJAVA must be defined as the pathname of a jdk to test."
2677N/A exit 1
2677N/Afi
2677N/A
2677N/ArunOne()
1138N/A{
1138N/A echo "runOne $@"
1138N/A $TESTJAVA/bin/java $TESTVMOPTS -classpath $TESTCLASSES "$@" || exit 2
1138N/A}
1138N/A
1879N/ArunOne InputArgument
1879N/A
runOne -XX:+UseParallelGC -XX:+PrintGCDetails InputArgument -XX:+PrintGCDetails
runOne -XX:+UseParallelGC -XX:+PrintGCDetails InputArgument -XX:+UseParallelGC
runOne "-Dprops=one two three" InputArgument "-Dprops=one two three"
exit 0