2117N/A#
2362N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
2117N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2117N/A#
2117N/A# This code is free software; you can redistribute it and/or modify it
2117N/A# under the terms of the GNU General Public License version 2 only, as
2117N/A# published by the Free Software Foundation.
2117N/A#
2117N/A# This code is distributed in the hope that it will be useful, but WITHOUT
2117N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2117N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2117N/A# version 2 for more details (a copy is included in the LICENSE file that
2117N/A# accompanied this code).
2117N/A#
2117N/A# You should have received a copy of the GNU General Public License version
2117N/A# 2 along with this work; if not, write to the Free Software Foundation,
2117N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2117N/A#
2362N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A# or visit www.oracle.com if you need additional information or have any
2362N/A# questions.
2117N/A#
2117N/A
2117N/A# @test
2117N/A# @bug 6922482
2117N/A# @summary keytool's help on -file always shows 'output file'
2117N/A#
2117N/A
2117N/Aif [ "${TESTJAVA}" = "" ] ; then
2117N/A JAVAC_CMD=`which javac`
2117N/A TESTJAVA=`dirname $JAVAC_CMD`/..
2117N/Afi
2117N/A
2117N/A# set platform-dependent variables
2117N/AOS=`uname -s`
2117N/Acase "$OS" in
2117N/A Windows_* )
2117N/A FS="\\"
2117N/A ;;
2117N/A * )
2117N/A FS="/"
2117N/A ;;
2117N/Aesac
2117N/A
2117N/ALANG=C
2117N/A$TESTJAVA${FS}bin${FS}keytool -printcertreq -help 2> h1 || exit 1
2117N/A$TESTJAVA${FS}bin${FS}keytool -exportcert -help 2> h2 || exit 2
2117N/A
2117N/Agrep "input file" h1 || exit 3
2117N/Agrep "output file" h2 || exit 4
2117N/A
2117N/Aexit 0
2117N/A