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