Help.sh revision 961
e6d733e9ab4fb48cb611637528e5694d1e092de0Christian Maeder# Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
98890889ffb2e8f6f722b00e265a211f13b5a861Corneliu-Claudiu Prodescu# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3f69b6948966979163bdfe8331c38833d5d90ecdChristian Maeder# This code is free software; you can redistribute it and/or modify it
e6d733e9ab4fb48cb611637528e5694d1e092de0Christian Maeder# under the terms of the GNU General Public License version 2 only, as
e6d733e9ab4fb48cb611637528e5694d1e092de0Christian Maeder# published by the Free Software Foundation.
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder# This code is distributed in the hope that it will be useful, but WITHOUT
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder# version 2 for more details (a copy is included in the LICENSE file that
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder# accompanied this code).
08971280553faf84234bbb17091a3608d466b9dbChristian Maeder# You should have received a copy of the GNU General Public License version
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder# 2 along with this work; if not, write to the Free Software Foundation,
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
08971280553faf84234bbb17091a3608d466b9dbChristian Maeder# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder# or visit www.oracle.com if you need additional information or have any
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder# @bug 4940642
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder# @summary Check for -help and -X flags
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder# @author Martin Buchholz
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder# To run this test manually, simply do ./MineField.sh
08971280553faf84234bbb17091a3608d466b9dbChristian MaederHELP="`\"$javac\" ${TESTTOOLVMOPTS} -help 2>&1`"
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian MaederXHELP="`\"$javac\" ${TESTTOOLVMOPTS} -X 2>&1`"
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder#----------------------------------------------------------------
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder# Standard options
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder#----------------------------------------------------------------
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder "-classpath " \
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder "-bootclasspath " \
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder "-sourcepath ";
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder case "$HELP" in *"$opt"*) ;; *) Fail "Bad help output" ;; esac
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder#----------------------------------------------------------------
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder# Non-standard options
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder#----------------------------------------------------------------
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder "-Xbootclasspath/p:";
8e4d284b9578b300b3b93dba75143a6b6640fda8Christian Maeder case "$XHELP" in *"$opt"*) ;; *) Fail "Bad help output" ;; esac